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";
1313/* -------------------------------------------------------------------------- */
1414
1515const compat = new FlatCompat ( ) ,
16- ignores = [ "index.js" , "index.d.ts" ] ,
16+ ignores = [ "**/ index.js" , "**/ index.d.ts" ] ,
1717 projectService = true ,
1818 tsconfigRootDir = import . meta. dirname ,
1919 parserOptions = { projectService, tsconfigRootDir } ,
2020 languageOptions = { parserOptions } ,
2121 rules : FlatConfig . Rules = {
2222 "@typescript-eslint/no-shadow" : "error" ,
2323 "@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+ ] ,
2431 "no-shadow" : "off" ,
2532 "no-use-before-define" : "off" ,
2633 } ;
You can’t perform that action at this time.
0 commit comments