diff --git a/.eslintrc b/.eslintrc index 2d6e91587..29c8a7204 100644 --- a/.eslintrc +++ b/.eslintrc @@ -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 diff --git a/package-lock.json b/package-lock.json index cc11a9e9c..7049fcbd7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", diff --git a/package.json b/package.json index a02177b13..fe8c187bf 100644 --- a/package.json +++ b/package.json @@ -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",