@@ -21,12 +21,13 @@ module.exports = {
21
21
} ,
22
22
rules : {
23
23
// Enabled rules
24
- "accessor-pairs" : "error" ,
24
+ "accessor-pairs" : [ "error" , { enforceForClassMembers : true } ] ,
25
25
"array-callback-return" : "error" ,
26
26
camelcase : "error" ,
27
27
"consistent-return" : "error" ,
28
28
curly : "error" ,
29
29
"default-case" : "error" ,
30
+ "default-param-last" : "error" ,
30
31
"dot-notation" : "error" ,
31
32
eqeqeq : [ "error" , "always" , { null : "ignore" } ] ,
32
33
"for-direction" : "error" ,
@@ -70,6 +71,7 @@ module.exports = {
70
71
"no-implicit-coercion" : "error" ,
71
72
"no-implicit-globals" : "error" ,
72
73
"no-implied-eval" : "error" ,
74
+ "no-import-assign" : "error" ,
73
75
"no-inner-declarations" : [ "error" , "functions" ] ,
74
76
"no-invalid-regexp" : "error" ,
75
77
"no-invalid-this" : "error" ,
@@ -137,7 +139,7 @@ module.exports = {
137
139
"no-unneeded-ternary" : "error" ,
138
140
"no-unreachable" : "error" ,
139
141
"no-unsafe-finally" : "error" ,
140
- "no-unsafe-negation" : "error" ,
142
+ "no-unsafe-negation" : [ "error" , { enforceForOrderingRelations : true } ] ,
141
143
"no-unused-expressions" : "error" ,
142
144
"no-unused-labels" : "error" ,
143
145
"no-unused-vars" : [
@@ -206,7 +208,10 @@ module.exports = {
206
208
} ,
207
209
] ,
208
210
strict : [ "error" , "global" ] ,
209
- "use-isnan" : "error" ,
211
+ "use-isnan" : [
212
+ "error" ,
213
+ { enforceForIndexOf : true , enforceForSwitchCase : true } ,
214
+ ] ,
210
215
"valid-typeof" : [ "error" , { requireStringLiterals : true } ] ,
211
216
yoda : [ "error" , "never" , { exceptRange : true } ] ,
212
217
@@ -283,7 +288,6 @@ module.exports = {
283
288
"class-methods-use-this" : "off" ,
284
289
"consistent-this" : "off" ,
285
290
"constructor-super" : "off" ,
286
- "default-param-last" : "off" ,
287
291
"func-name-matching" : "off" ,
288
292
"func-names" : "off" ,
289
293
"global-require" : "off" ,
@@ -310,7 +314,6 @@ module.exports = {
310
314
"no-dupe-class-members" : "off" ,
311
315
"no-duplicate-imports" : "off" ,
312
316
"no-eq-null" : "off" ,
313
- "no-import-assign" : "off" ,
314
317
"no-inline-comments" : "off" ,
315
318
"no-labels" : "off" ,
316
319
"no-magic-numbers" : "off" ,
0 commit comments