File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,21 @@ import eslintrc from "./.eslintrc.json";
13
13
/* -------------------------------------------------------------------------- */
14
14
15
15
const compat = new FlatCompat ( ) ,
16
- ignores = [ "index.js" , "index.d.ts" ] ,
16
+ ignores = [ "**/ index.js" , "**/ index.d.ts" ] ,
17
17
projectService = true ,
18
18
tsconfigRootDir = import . meta. dirname ,
19
19
parserOptions = { projectService, tsconfigRootDir } ,
20
20
languageOptions = { parserOptions } ,
21
21
rules : FlatConfig . Rules = {
22
22
"@typescript-eslint/no-shadow" : "error" ,
23
23
"@typescript-eslint/no-use-before-define" : "error" ,
24
+ "import-x/no-extraneous-dependencies" : [
25
+ "error" ,
26
+ {
27
+ devDependencies : [ "**/eslint.config.ts" , "**/build.ts" ] ,
28
+ optionalDependencies : false ,
29
+ } ,
30
+ ] ,
24
31
"no-shadow" : "off" ,
25
32
"no-use-before-define" : "off" ,
26
33
} ;
You can’t perform that action at this time.
0 commit comments