diff --git a/.eslintrc.js b/.eslintrc.js index 8c4c791b0..e7f17d88b 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -128,16 +128,19 @@ module.exports = { 'unicorn/filename-case': 'off', 'unicorn/no-null': 'off', 'unicorn/no-array-callback-reference': 'off', // doesn't work well with TypeScript's custom type guards + 'unicorn/no-negated-condition': 'off', // remove when there are few pull requests (ref: #2146) 'unicorn/no-useless-undefined': 'off', 'unicorn/prefer-optional-catch-binding': 'off', // not supported by current ESLint parser version 'unicorn/prefer-module': 'off', 'unicorn/prevent-abbreviations': 'off', + 'unicorn/prefer-at': 'off', // turn off to prevent make breaking changes (ref: #2146) + 'unicorn/prefer-node-protocol': 'off', // turn off to prevent make breaking changes (ref: #2146) + 'unicorn/prefer-string-replace-all': 'off', // turn off to prevent make breaking changes (ref: #2146) + 'unicorn/prefer-ternary': 'off', // remove when there are few pull requests (ref: #2146) + 'unicorn/prefer-top-level-await': 'off', // turn off to prevent make breaking changes (ref: #2146) + 'unicorn/switch-case-braces': 'off', // remove when there are few pull requests (ref: #2146) - 'require-eslint-community': ['error'], - - // FIXME: The version we are currently using is not compatible. - // May be removed in #2146. https://github.com/vuejs/eslint-plugin-vue/pull/2146 - 'unicorn/expiring-todo-comments': 'off' + 'require-eslint-community': ['error'] }, overrides: [ { diff --git a/package.json b/package.json index 3449d4740..1848a5f4d 100644 --- a/package.json +++ b/package.json @@ -81,7 +81,7 @@ "eslint-plugin-jsonc": "^2.2.1", "eslint-plugin-node-dependencies": ">=0.5.0 <1.0.0", "eslint-plugin-prettier": "^4.0.0", - "eslint-plugin-unicorn": "^42.0.0", + "eslint-plugin-unicorn": "^47.0.0", "eslint-plugin-vue": "file:.", "espree": "^9.3.2", "events": "^3.3.0",