We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
defineConfig
1 parent 584be43 commit da9fd22Copy full SHA for da9fd22
eslint.config.js
@@ -1,14 +1,13 @@
1
"use strict";
2
3
+const { defineConfig, globalIgnores } = require("eslint/config");
4
const eslintConfigESLintCJS = require("eslint-config-eslint/cjs");
5
const eslintConfigESLintFormatting = require("eslint-config-eslint/formatting");
6
const globals = require("globals");
7
-module.exports = [
8
- {
9
- ignores: ["tests/fixtures/"]
10
- },
11
- ...eslintConfigESLintCJS,
+module.exports = defineConfig([
+ globalIgnores(["tests/fixtures/"]),
+ eslintConfigESLintCJS,
12
eslintConfigESLintFormatting,
13
{
14
files: ["tests/**/*"],
@@ -18,4 +17,4 @@ module.exports = [
18
17
}
19
20
21
-];
+]);
0 commit comments