Skip to content

Commit da9fd22

Browse files
authored
chore: update ESLint config to use defineConfig helper function (#40)
1 parent 584be43 commit da9fd22

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

eslint.config.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
"use strict";
22

3+
const { defineConfig, globalIgnores } = require("eslint/config");
34
const eslintConfigESLintCJS = require("eslint-config-eslint/cjs");
45
const eslintConfigESLintFormatting = require("eslint-config-eslint/formatting");
56
const globals = require("globals");
67

7-
module.exports = [
8-
{
9-
ignores: ["tests/fixtures/"]
10-
},
11-
...eslintConfigESLintCJS,
8+
module.exports = defineConfig([
9+
globalIgnores(["tests/fixtures/"]),
10+
eslintConfigESLintCJS,
1211
eslintConfigESLintFormatting,
1312
{
1413
files: ["tests/**/*"],
@@ -18,4 +17,4 @@ module.exports = [
1817
}
1918
}
2019
}
21-
];
20+
]);

0 commit comments

Comments
 (0)