Update the eslint-plugin-unicorn package to the latest version

Also enables the `no-useless-spread` rule, see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-spread.md, which didn't require any code changes.
This commit is contained in:
Jonas Jenwald 2021-08-08 10:49:57 +02:00
parent 014d00e4fb
commit d0c87e13ce
3 changed files with 6 additions and 11 deletions

View File

@ -47,6 +47,7 @@
"unicorn/no-abusive-eslint-disable": "error",
"unicorn/no-array-push-push": "error",
"unicorn/no-instanceof-array": "error",
"unicorn/no-useless-spread": "error",
"unicorn/prefer-string-starts-ends-with": "error",
// Possible errors

14
package-lock.json generated
View File

@ -5001,11 +5001,12 @@
"dev": true
},
"eslint-plugin-unicorn": {
"version": "34.0.1",
"resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-34.0.1.tgz",
"integrity": "sha512-GUBtRYRhPVOW/GDu6QtOjrneSZxY/MulOT8puJU+47VKCzNmMgS/iHO2gZqoQ7KPMrpNYlebUlvCWy3IR1USVQ==",
"version": "35.0.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-35.0.0.tgz",
"integrity": "sha512-FHsaO68tDPQILfs/mGF8eSISJp8RswR4FpUuBDnueK2wyEHC6zmsc9WxjYyldXoIsBuVmru6jQyFCbCWPoW/KQ==",
"dev": true,
"requires": {
"@babel/helper-validator-identifier": "^7.14.9",
"ci-info": "^3.2.0",
"clean-regexp": "^1.0.0",
"eslint-template-visitor": "^2.3.2",
@ -5015,7 +5016,6 @@
"pluralize": "^8.0.0",
"read-pkg-up": "^7.0.1",
"regexp-tree": "^0.1.23",
"reserved-words": "^0.1.2",
"safe-regex": "^2.1.1",
"semver": "^7.3.5"
},
@ -14333,12 +14333,6 @@
"lodash": "^4.17.14"
}
},
"reserved-words": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/reserved-words/-/reserved-words-0.1.2.tgz",
"integrity": "sha1-AKCUD5jNUBrqqsMWQR2a3FKzGrE=",
"dev": true
},
"resolve": {
"version": "1.7.1",
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.7.1.tgz",

View File

@ -26,7 +26,7 @@
"eslint-plugin-no-unsanitized": "^3.1.5",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-sort-exports": "^0.4.0",
"eslint-plugin-unicorn": "^34.0.1",
"eslint-plugin-unicorn": "^35.0.0",
"globals": "^13.10.0",
"gulp": "^4.0.2",
"gulp-postcss": "^9.0.0",