@@ -4,23 +4,25 @@ import reactHooks from 'eslint-plugin-react-hooks'
44import reactRefresh from 'eslint-plugin-react-refresh'
55import tseslint from 'typescript-eslint'
66
7- export default tseslint . config ( {
8- extends : [ js . configs . recommended , ...tseslint . configs . recommended ] ,
9- files : [ '**/*.{ts,tsx}' ] ,
10- ignores : [ 'dist' ] ,
11- languageOptions : {
12- ecmaVersion : 2020 ,
13- globals : globals . browser ,
7+ export default tseslint . config (
8+ { ignores : [ 'dist' ] } ,
9+ {
10+ extends : [ js . configs . recommended , ...tseslint . configs . recommended ] ,
11+ files : [ '**/*.{ts,tsx}' ] ,
12+ languageOptions : {
13+ ecmaVersion : 2020 ,
14+ globals : globals . browser ,
15+ } ,
16+ plugins : {
17+ 'react-hooks' : reactHooks ,
18+ 'react-refresh' : reactRefresh ,
19+ } ,
20+ rules : {
21+ ...reactHooks . configs . recommended . rules ,
22+ 'react-refresh/only-export-components' : [
23+ 'warn' ,
24+ { allowConstantExport : true } ,
25+ ] ,
26+ } ,
1427 } ,
15- plugins : {
16- 'react-hooks' : reactHooks ,
17- 'react-refresh' : reactRefresh ,
18- } ,
19- rules : {
20- ...reactHooks . configs . recommended . rules ,
21- 'react-refresh/only-export-components' : [
22- 'warn' ,
23- { allowConstantExport : true } ,
24- ] ,
25- } ,
26- } )
28+ )
0 commit comments