@@ -51,6 +51,7 @@ module.exports = {
51
51
'no-caller' : 'error' ,
52
52
'no-cond-assign' : 'error' ,
53
53
'no-console' : 'off' ,
54
+ 'no-constant-condition' : [ 'error' , { checkLoops : false } ] ,
54
55
'no-debugger' : 'error' ,
55
56
'no-duplicate-imports' : 'error' ,
56
57
'no-empty' : 'error' ,
@@ -140,12 +141,15 @@ module.exports = {
140
141
'react/no-this-in-sfc' : 'error' ,
141
142
'react/no-typos' : 'error' ,
142
143
'react/no-unescaped-entities' : [ 'error' , { forbid : [ '>' , '}' ] } ] ,
143
- 'react/no-unsafe' : 'error' ,
144
+ 'react/no-unsafe' : [ 'error' , { checkAliases : true } ] ,
144
145
'react/no-unused-state' : 'error' ,
145
- 'react/prefer-stateless-function' : 'error' ,
146
+ 'react/prefer-stateless-function' : [ 'error' , { ignorePureComponents : true } ] ,
146
147
'react/require-render-return' : 'error' ,
147
148
'react/void-dom-elements-no-children' : 'error' ,
148
149
'react/prop-types' : 'off' , // Not needed with TypeScript
150
+
151
+ // Only in TS
152
+ '@typescript-eslint/no-var-requires' : 'off' ,
149
153
} ,
150
154
overrides : [
151
155
{
@@ -204,12 +208,21 @@ module.exports = {
204
208
'import/default' : 'off' ,
205
209
'import/named' : 'off' ,
206
210
'no-undef' : 'off' ,
211
+ 'no-dupe-class-members' : 'off' ,
207
212
} ,
208
213
} ,
209
214
{
210
215
files : '*.d.ts' ,
211
216
rules : {
212
217
'no-var' : 'off' ,
218
+ '@typescript-eslint/explicit-member-accessibility' : 'off' ,
219
+ '@typescript-eslint/no-use-before-define' : 'off' ,
220
+ } ,
221
+ } ,
222
+ {
223
+ files : '*.test.ts?(x)' ,
224
+ rules : {
225
+ 'react/jsx-no-bind' : 'off' ,
213
226
} ,
214
227
} ,
215
228
] ,
0 commit comments