@@ -2,6 +2,8 @@ const jest = {
2
2
files : [ 'src/**/*.test.{ts,tsx}' ] ,
3
3
env : {
4
4
jest : true ,
5
+ node : true ,
6
+ browser : false ,
5
7
} ,
6
8
}
7
9
@@ -23,16 +25,16 @@ module.exports = {
23
25
} ,
24
26
parser : '@typescript-eslint/parser' ,
25
27
extends : [
28
+ 'prettier' ,
29
+ 'prettier/@typescript-eslint' ,
30
+ 'prettier/react' ,
31
+
26
32
'eslint:recommended' ,
27
33
'plugin:@typescript-eslint/recommended' ,
28
34
'plugin:react/recommended' ,
29
35
30
36
'plugin:import/errors' ,
31
37
'plugin:import/warnings' ,
32
-
33
- 'prettier' ,
34
- 'prettier/@typescript-eslint' ,
35
- 'prettier/react' ,
36
38
] ,
37
39
plugins : [ 'react-hooks' ] ,
38
40
parserOptions : {
@@ -54,13 +56,24 @@ module.exports = {
54
56
} ,
55
57
} ,
56
58
rules : {
57
- 'react-hooks/rules-of-hooks' : 2 ,
58
59
'no-console' : 0 ,
60
+ 'no-var' : 2 ,
61
+ 'no-void' : 2 ,
62
+ 'no-with' : 2 ,
63
+ 'object-shorthand' : 1 ,
64
+ 'prefer-arrow-callback' : 2 ,
65
+ 'prefer-const' : 2 ,
66
+ 'prefer-rest-params' : 2 ,
67
+ 'prefer-spread' : 2 ,
68
+
69
+ 'react-hooks/rules-of-hooks' : 2 ,
70
+
59
71
'@typescript-eslint/explicit-function-return-type' : 0 ,
60
72
'@typescript-eslint/member-delimiter-style' : 0 ,
61
73
'@typescript-eslint/indent' : [ 2 , 2 ] ,
62
74
'@typescript-eslint/member-ordering' : 2 ,
63
75
'@typescript-eslint/explicit-member-accessibility' : 0 ,
76
+
64
77
'import/first' : 2 ,
65
78
'import/newline-after-import' : 2 ,
66
79
} ,
0 commit comments