11import  react  from  "@eslint-react/eslint-plugin" ; 
2+ import  {  includeIgnoreFile  }  from  "@eslint/compat" ; 
23import  markdown  from  "@eslint/markdown" ; 
34import  {  disableTypeChecked ,  strictTypeChecked  }  from  "@local/configs/eslint" ; 
4- import  gitignore  from  "eslint-config-flat-gitignore" ; 
55import  {  recommended  as  fastImportRecommended  }  from  "eslint-plugin-fast-import" ; 
66import  pluginReactHooks  from  "eslint-plugin-react-hooks" ; 
77import  pluginReactRefresh  from  "eslint-plugin-react-refresh" ; 
88import  {  globalIgnores  }  from  "eslint/config" ; 
99import  {  defineConfig  }  from  "eslint/config" ; 
10- import  url  from  "node:url" ; 
10+ import  {   fileURLToPath   }  from  "node:url" ; 
1111import  tseslint  from  "typescript-eslint" ; 
1212
1313import  TSCONFIG  from  "./tsconfig.json"  with  {  type : "json"  } ; 
@@ -25,10 +25,11 @@ const GLOB_IGNORES = [
2525  "eslint.config.ts" , 
2626] ; 
2727
28- const  dirname  =  url . fileURLToPath ( new  URL ( "." ,  import . meta. url ) ) ; 
28+ const  dirname  =  fileURLToPath ( new  URL ( "." ,  import . meta. url ) ) ; 
29+ const  gitignore  =  fileURLToPath ( new  URL ( ".gitignore" ,  import . meta. url ) ) ; 
2930
3031export  default  defineConfig ( [ 
31-   gitignore ( ) , 
32+   includeIgnoreFile ( gitignore ,   "Imported .gitignore patterns" ) , 
3233  globalIgnores ( GLOB_IGNORES ) , 
3334  { 
3435    extends : [ 
@@ -49,7 +50,8 @@ export default defineConfig([
4950  } , 
5051  { 
5152    extends : [ 
52-       strictTypeChecked ,  // @ts -expect-error - types issue 
53+       strictTypeChecked , 
54+       // @ts -expect-error - types issue 
5355      fastImportRecommended ( {  rootDir : dirname  } ) , 
5456    ] , 
5557    files : GLOB_TS , 
0 commit comments