Skip to content

Commit 327f91d

Browse files
chore: use includeIgnoreFile internally (#20876)
1 parent f0dc4bd commit 327f91d

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

eslint.config.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ const eslintPluginYml = require("eslint-plugin-yml");
1919
const json = require("@eslint/json").default;
2020
const expectType = require("eslint-plugin-expect-type");
2121
const tsParser = require("@typescript-eslint/parser");
22-
const { defineConfig, globalIgnores } = require("./lib/config-api.js");
22+
const {
23+
defineConfig,
24+
globalIgnores,
25+
includeIgnoreFile,
26+
} = require("./lib/config-api.js");
2327

2428
//-----------------------------------------------------------------------------
2529
// Helpers
@@ -81,22 +85,18 @@ module.exports = defineConfig([
8185
files: [ALL_JS_FILES],
8286
extends: [eslintConfigESLintCJS],
8387
},
88+
includeIgnoreFile(path.join(__dirname, ".gitignore"), {
89+
gitignoreResolution: true,
90+
}),
8491
globalIgnores(
8592
[
86-
"build/**",
87-
"coverage/**",
8893
"docs/!(src|tools)/",
8994
"docs/src/!(_data)",
90-
"ecosystem/**",
91-
"jsdoc/**",
9295
"lib/types/**/*.ts",
9396
"templates/**",
9497
"tests/bench/**",
9598
"tests/fixtures/**",
9699
"tests/performance/**",
97-
"tmp/**",
98-
"**/test.js",
99-
".vscode",
100100
],
101101
"eslint/global-ignores",
102102
),

0 commit comments

Comments
 (0)