File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,11 @@ const eslintPluginYml = require("eslint-plugin-yml");
1919const json = require ( "@eslint/json" ) . default ;
2020const expectType = require ( "eslint-plugin-expect-type" ) ;
2121const 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 ) ,
You can’t perform that action at this time.
0 commit comments