Skip to content

Commit 0171c09

Browse files
committed
update eslint-plugin-unicorn
1 parent c064b7e commit 0171c09

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.eslintrc.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,10 @@ const base = {
393393
'unicorn/no-unsafe-regex': 'error',
394394
// disallow unused object properties
395395
'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',
396400
// enforce lowercase identifier and uppercase value for number literals
397401
'unicorn/number-literal-case': 'error',
398402
// prefer `Array#indexOf` over `Array#findIndex`` when looking for the index of an item

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"eslint-plugin-qunit": "^6.2.0",
4747
"eslint-plugin-regexp": "~0.13.2",
4848
"eslint-plugin-sonarjs": "~0.9.1",
49-
"eslint-plugin-unicorn": "^34.0.1",
49+
"eslint-plugin-unicorn": "^35.0.0",
5050
"globby": "^12.0.0",
5151
"jsonc-eslint-parser": "^1.1.0",
5252
"karma": "^6.3.4",

0 commit comments

Comments
 (0)