@@ -6,13 +6,24 @@ import pluginReactHooks from 'eslint-plugin-react-hooks'
66
77/** @type {import('eslint').Linter.Config[] } */
88export default [
9- pluginJs . configs . recommended ,
9+ { name : 'globalIgnore' , ignores : [ 'dist/' , 'android/' , 'eslint.config.js' ] } ,
10+ { name : 'pluginJs.configs.recommended' , ...pluginJs . configs . recommended } ,
1011 ...tseslint . configs . recommendedTypeChecked ,
11- pluginReact . configs . flat . recommended ,
12- pluginReact . configs . flat [ 'jsx-runtime' ] ,
13- { plugins : { 'react-hooks' : pluginReactHooks } } ,
14- { rules : pluginReactHooks . configs . recommended . rules } ,
1512 {
13+ name : 'pluginReact.configs.flat.recommended' ,
14+ ...pluginReact . configs . flat . recommended ,
15+ } ,
16+ {
17+ name : "pluginReact.configs.flat['jsx-runtime']" ,
18+ ...pluginReact . configs . flat [ 'jsx-runtime' ] ,
19+ } ,
20+ {
21+ name : 'pluginReactHooks' ,
22+ plugins : { 'react-hooks' : pluginReactHooks } ,
23+ rules : pluginReactHooks . configs . recommended . rules ,
24+ } ,
25+ {
26+ name : 'customConfig' ,
1627 settings : { react : { version : 'detect' } } ,
1728 languageOptions : {
1829 globals : globals . browser ,
@@ -21,8 +32,6 @@ export default [
2132 tsconfigRootDir : import . meta. dirname ,
2233 } ,
2334 } ,
24- } ,
25- {
26- ignores : [ 'dist/' , 'android/' , 'eslint.config.js' ] ,
35+ rules : { eqeqeq : [ 'error' , 'always' ] } ,
2736 } ,
2837]
0 commit comments