@@ -33,9 +33,28 @@ module.exports = {
33
33
}
34
34
} ,
35
35
rules : {
36
+ "@typescript-eslint/ban-types" : [
37
+ "error" ,
38
+ {
39
+ "extendDefaults" : true ,
40
+ "types" : {
41
+ "{}" : false
42
+ }
43
+ }
44
+ ] ,
36
45
'@typescript-eslint/explicit-function-return-type' : 'off' ,
46
+ '@typescript-eslint/no-explicit-any' : 'error' ,
37
47
'@typescript-eslint/no-inferrable-types' : 'off' ,
38
48
'@typescript-eslint/no-shadow' : 'error' ,
49
+ '@typescript-eslint/strict-boolean-expressions' : [
50
+ 'error' ,
51
+ {
52
+ allowNullableBoolean : true ,
53
+ allowNullableObject : true ,
54
+ allowNullableNumber : true ,
55
+ allowNullableString : true
56
+ }
57
+ ] ,
39
58
'import/extensions' : 'off' ,
40
59
'import/prefer-default-export' : 'off' ,
41
60
'indent' : [
@@ -45,17 +64,46 @@ module.exports = {
45
64
SwitchCase : 1 ,
46
65
} ,
47
66
] ,
67
+ 'jsx-a11y/tabindex-no-positive' : [
68
+ 'warn'
69
+ ] ,
70
+ 'no-extra-boolean-cast' : "off" ,
71
+ 'no-plusplus' : [
72
+ 'error' ,
73
+ {
74
+ allowForLoopAfterthoughts : true
75
+ }
76
+ ] ,
77
+ 'no-restricted-syntax' : [
78
+ 'error' ,
79
+ 'ForIfStatement' ,
80
+ 'LabeledStatement' ,
81
+ 'WithStatement'
82
+ ] ,
48
83
'no-shadow' : 'off' ,
49
84
'no-use-before-define' : [
50
85
'error' ,
51
- { functions : false }
86
+ {
87
+ functions : false ,
88
+ }
52
89
] ,
53
- 'padded-blocks' : [
90
+ "padding-line-between-statements" : [
54
91
'error' ,
55
- { }
92
+ { blankLine : 'always' , prev : 'directive' , next : '*' } ,
93
+ { blankLine : 'any' , prev : 'directive' , next : 'directive' } ,
94
+ { blankLine : 'always' , prev : 'cjs-import' , next : '*' } ,
95
+ { blankLine : 'any' , prev : 'cjs-import' , next : 'cjs-import' } ,
96
+ { blankLine : 'always' , prev : 'cjs-export' , next : '*' } ,
97
+ { blankLine : 'always' , prev : 'multiline-block-like' , next : '*' } ,
98
+ { blankLine : 'always' , prev : 'class' , next : '*' }
56
99
] ,
100
+ 'prefer-destructuring' : 'off' ,
57
101
'react-hooks/exhaustive-deps' : 'warn' ,
58
102
'react-hooks/rules-of-hooks' : 'error' ,
103
+ 'react/destructuring-assignment' : [
104
+ 2 ,
105
+ 'never'
106
+ ] ,
59
107
'react/function-component-definition' : [
60
108
2 ,
61
109
{
@@ -79,9 +127,11 @@ module.exports = {
79
127
2 ,
80
128
4 ,
81
129
] ,
130
+ 'react/jsx-no-useless-fragment' : [
131
+ 0
132
+ ] ,
82
133
'react/jsx-props-no-spreading' : [
83
- 2 ,
84
- { html : 'ignore' } ,
134
+ 0
85
135
] ,
86
136
'react/react-in-jsx-scope' : 'off' ,
87
137
'react/require-default-props' : 'off' ,
0 commit comments