@@ -8,19 +8,29 @@ export const reactTsConfig: Config = {
8
8
'eslint-plugin-beautiful-sort' ,
9
9
'eslint-config-airbnb' ,
10
10
'eslint-config-airbnb-typescript' ,
11
+ 'eslint-plugin-react-refresh' ,
12
+ 'eslint-plugin-react-hooks' ,
11
13
] ,
12
14
eslintConfig : {
13
15
parser : '@typescript-eslint/parser' ,
14
16
parserOptions : {
15
17
project : 'tsconfig.json' ,
18
+ ecmaVersion : 'latest' ,
16
19
sourceType : 'module' ,
17
20
} ,
18
- plugins : [ '@typescript-eslint/eslint-plugin' , 'beautiful-sort' ] ,
19
- extends : [ 'plugin:@typescript-eslint/recommended' , 'airbnb' , 'airbnb-typescript' ] ,
21
+ plugins : [ '@typescript-eslint/eslint-plugin' , 'beautiful-sort' , 'react-refresh' ] ,
22
+ extends : [
23
+ 'eslint:recommended' ,
24
+ 'plugin:@typescript-eslint/recommended' ,
25
+ 'plugin:react-hooks/recommended' ,
26
+ 'airbnb' ,
27
+ 'airbnb-typescript' ,
28
+ ] ,
20
29
root : true ,
21
30
env : {
22
31
es6 : true ,
23
32
browser : true ,
33
+ es2020 : true ,
24
34
node : true ,
25
35
} ,
26
36
ignorePatterns : [ '.eslintrc.js' ] ,
@@ -50,6 +60,8 @@ export const reactTsConfig: Config = {
50
60
order : [ 'special' , 'namespace' , 'default' , 'defaultObj' , 'obj' , 'none' ] ,
51
61
} ,
52
62
] ,
63
+
64
+ 'react-refresh/only-export-components' : 'warn' ,
53
65
} ,
54
66
} ,
55
67
ignore : [ 'node_modules' , 'dist' ] ,
0 commit comments