diff --git a/js/src/dom/event-handler.js b/js/src/dom/event-handler.js index 087afde07d..0fcbe96408 100644 --- a/js/src/dom/event-handler.js +++ b/js/src/dom/event-handler.js @@ -113,7 +113,6 @@ function bootstrapDelegationHandler(element, selector, fn) { event.delegateTarget = target if (handler.oneOff) { - // eslint-disable-next-line unicorn/consistent-destructuring EventHandler.off(element, event.type, selector, fn) } diff --git a/package-lock.json b/package-lock.json index f21e4406b9..35e31bb3f1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3988,11 +3988,12 @@ } }, "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", @@ -4002,7 +4003,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" }, @@ -8901,12 +8901,6 @@ "integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=", "dev": true }, - "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.20.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.20.0.tgz", diff --git a/package.json b/package.json index a7909de8dc..dcf2136eee 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "docs-serve": "hugo server --port 9001 --disableFastRender", "docs-serve-only": "npx sirv-cli _site --port 9001", "lockfile-lint": "lockfile-lint --allowed-hosts npm --allowed-schemes https: --empty-hostname false --type npm --path package-lock.json", - "update-deps": "ncu -u -x eslint-plugin-unicorn,globby,karma-browserstack-launcher,terser && npm update && echo Manually update site/assets/js/vendor", + "update-deps": "ncu -u -x globby,karma-browserstack-launcher,terser && npm update && echo Manually update site/assets/js/vendor", "release": "npm-run-all dist release-sri docs-build release-zip*", "release-sri": "node build/generate-sri.js", "release-version": "node build/change-version.js", @@ -115,7 +115,7 @@ "eslint": "^7.32.0", "eslint-config-xo": "^0.38.0", "eslint-plugin-import": "^2.24.2", - "eslint-plugin-unicorn": "^34.0.1", + "eslint-plugin-unicorn": "^35.0.0", "find-unused-sass-variables": "^3.1.0", "glob": "^7.1.7", "globby": "^11.0.4",