Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

21 changes: 21 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import js from "@eslint/js";
import eslintConfigPrettier from "eslint-config-prettier";

export default [
js.configs.recommended,
eslintConfigPrettier,
{
languageOptions: {
ecmaVersion: 2020,
sourceType: "module",
globals: {
node: "readonly",
jest: "readonly"
}
},
rules: {
"no-undef": "off"
},
ignores: ["/coverage/"]
Comment thread
rdimartino marked this conversation as resolved.
Outdated
}
];
18 changes: 1 addition & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,14 @@
"prettier": "^3.0.0"
},
"devDependencies": {
"@eslint/js": "^9.1.1",
"eslint": "^9.0.0",
"eslint-config-prettier": "^9.0.0",
"husky": "^9.0.2",
"jest": "^29.5.0",
"prettier": "^3.1.0",
"pretty-quick": "^4.0.0"
},
"eslintConfig": {
"extends": [
"eslint:recommended",
"prettier"
],
"env": {
"jest": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"rules": {
"no-undef": "off"
}
},
"jest": {
"globalSetup": "./test/js/globalSetup.js",
"globalTeardown": "./test/js/globalTeardown.js",
Expand Down
2 changes: 1 addition & 1 deletion src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export async function spawnServer(opts, killOnExit = true) {
const pid = process.platform === "win32" ? server.pid : -server.pid;
process.kill(pid);
}
} catch (error) {
} catch {
// If there's an error killing the process, we're going to ignore it.
}
});
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@
minimatch "^3.1.2"
strip-json-comments "^3.1.1"

"@eslint/js@9.1.1":
"@eslint/js@9.1.1", "@eslint/js@^9.1.1":
version "9.1.1"
resolved "https://registry.yarnpkg.com/@eslint/js/-/js-9.1.1.tgz#eb0f82461d12779bbafc1b5045cde3143d350a8a"
integrity sha512-5WoDz3Y19Bg2BnErkZTp0en+c/i9PvgFS7MBe1+m60HjFr0hrphlAGp4yzI7pxpt4xShln4ZyYp4neJm8hmOkQ==
Expand Down