Skip to content

New eslint config #1433

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Changes from all 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 [
{ ignores: ["/coverage/"] },
js.configs.recommended,
eslintConfigPrettier,
{
languageOptions: {
ecmaVersion: 2020,
sourceType: "module",
globals: {
node: "readonly",
jest: "readonly"
}
},
rules: {
"no-undef": "off"
}
}
];
18 changes: 1 addition & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
2 changes: 1 addition & 1 deletion src/plugin.js
Original file line number Diff line number Diff line change
@@ -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.
}
});
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
@@ -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==
Loading