Skip to content

Commit d3a0fb4

Browse files
authored
chore: use defineConfig and globalIgnores in ESLint config (#175)
1 parent 81ca6e1 commit d3a0fb4

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

eslint.config.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1+
import { defineConfig, globalIgnores } from "eslint/config";
12
import eslintConfigESLint from "eslint-config-eslint";
23
import eslintConfigESLintFormatting from "eslint-config-eslint/formatting";
34

4-
export default [
5-
{
6-
ignores: [
7-
"coverage/",
8-
"tests/fixtures/"
9-
]
10-
},
11-
...eslintConfigESLint,
5+
export default defineConfig([
6+
globalIgnores(["coverage/", "tests/fixtures/"]),
7+
eslintConfigESLint,
128
eslintConfigESLintFormatting
13-
];
9+
]);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
},
4747
"devDependencies": {
4848
"@vitest/coverage-v8": "^1.3.1",
49-
"eslint": "^9.4.0",
49+
"eslint": "^9.27.0",
5050
"eslint-config-eslint": "^11.0.0",
5151
"eslint-release": "^3.2.0",
5252
"lint-staged": "^12.1.2",

0 commit comments

Comments
 (0)