File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -393,6 +393,10 @@ const base = {
393
393
'unicorn/no-unsafe-regex' : 'error' ,
394
394
// disallow unused object properties
395
395
'unicorn/no-unused-properties' : 'error' ,
396
+ // disallow useless array length check
397
+ 'unicorn/no-useless-length-check' : 'error' ,
398
+ // disallow useless spread
399
+ 'unicorn/no-useless-spread' : 'error' ,
396
400
// enforce lowercase identifier and uppercase value for number literals
397
401
'unicorn/number-literal-case' : 'error' ,
398
402
// prefer `Array#indexOf` over `Array#findIndex`` when looking for the index of an item
Original file line number Diff line number Diff line change 46
46
"eslint-plugin-qunit" : " ^6.2.0" ,
47
47
"eslint-plugin-regexp" : " ~0.13.2" ,
48
48
"eslint-plugin-sonarjs" : " ~0.9.1" ,
49
- "eslint-plugin-unicorn" : " ^34 .0.1 " ,
49
+ "eslint-plugin-unicorn" : " ^35 .0.0 " ,
50
50
"globby" : " ^12.0.0" ,
51
51
"jsonc-eslint-parser" : " ^1.1.0" ,
52
52
"karma" : " ^6.3.4" ,
You can’t perform that action at this time.
0 commit comments