Skip to content

Commit 0301d41

Browse files
authored
chore: update ESLint config to use defineConfig (#669)
1 parent 5bd12e3 commit 0301d41

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ npm-debug.log
77
_test.js
88
.idea
99
.vscode
10+
*.code-workspace
1011
.nyc_output
1112
.eslint-release-info.json
1213
yarn.lock

eslint.config.js

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
1+
import { defineConfig, globalIgnores } from "eslint/config";
12
import eslintConfigESLint from "eslint-config-eslint";
23
import eslintConfigESLintFormatting from "eslint-config-eslint/formatting";
34
import eslintPluginChaiFriendly from "eslint-plugin-chai-friendly";
45
import globals from "globals";
56

6-
export default [
7-
{
8-
ignores: [
9-
"**/tests/fixtures/",
10-
"**/dist/",
11-
"**/coverage/",
12-
"packages/espree/tools/create-test-example.js"
13-
]
14-
},
15-
...eslintConfigESLint,
7+
export default defineConfig([
8+
globalIgnores([
9+
"**/tests/fixtures/",
10+
"**/dist/",
11+
"**/coverage/",
12+
"packages/espree/tools/create-test-example.js"
13+
]),
14+
eslintConfigESLint,
1615
eslintConfigESLintFormatting,
1716
{
1817
files: ["packages/*/tests/lib/**"],
@@ -76,4 +75,4 @@ export default [
7675
"n/no-process-exit": "off"
7776
}
7877
}
79-
];
78+
]);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"devDependencies": {
2525
"c8": "^10.1.3",
26-
"eslint": "^9.11.1",
26+
"eslint": "^9.31.0",
2727
"eslint-config-eslint": "^11.0.0",
2828
"eslint-plugin-chai-friendly": "^1.0.0",
2929
"globals": "^15.1.0",

0 commit comments

Comments
 (0)