Update eslint-plugin-unicorn to v66 (#19356)

Co-authored-by: fisker <lionkay@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2026-06-16 01:33:59 +08:00
1 parent a322035f4d
commit 7e4be2e1eb
6 files changed
+62 -22

No files matched your search

+40
View File
@@ -240,6 +240,7 @@ const configs = [
/* eslint-plugin-unicorn */
"unicorn/better-dom-traversing": "off",
"unicorn/catch-error-name": "off",
"unicorn/consistent-class-member-order": "off",
"unicorn/consistent-compound-words": "off",
"unicorn/consistent-destructuring": "off",
"unicorn/consistent-function-scoping": "off",
@@ -262,6 +263,7 @@ const configs = [
"unicorn/no-thenable": "off",
"unicorn/no-this-outside-of-class": "off",
"unicorn/no-unreadable-array-destructuring": "off",
"unicorn/no-unsafe-string-replacement": "off",
"unicorn/no-useless-switch-case": "off",
"unicorn/no-useless-undefined": [
"error",
@@ -293,6 +295,7 @@ const configs = [
checkUsedVariables: false,
},
],
"unicorn/prefer-global-number-constants": "off",
"unicorn/prefer-global-this": "off",
"unicorn/prefer-https": "off",
"unicorn/prefer-includes-over-repeated-comparisons": "off",
@@ -300,8 +303,45 @@ const configs = [
"unicorn/prefer-ternary": "off",
"unicorn/prevent-abbreviations": "off",
"unicorn/relative-url-style": "off",
"unicorn/require-array-sort-compare": "off",
"unicorn/switch-case-braces": ["error", "avoid"],
"unicorn/template-indent": "error",
// TODO: Enable the followings
"unicorn/comment-content": "off",
"unicorn/prefer-short-arrow-method": "off",
"unicorn/no-useless-concat": "off",
"unicorn/no-computed-property-existence-check": "off",
"unicorn/no-useless-recursion": "off",
"unicorn/prefer-minimal-ternary": "off",
"unicorn/max-nested-calls": "off",
"unicorn/no-invalid-argument-count": "off",
"unicorn/no-useless-else": "off",
"unicorn/no-unreadable-object-destructuring": "off",
"unicorn/no-unreadable-new-expression": "off",
"unicorn/prefer-unicode-code-point-escapes": "off",
"unicorn/no-negated-array-predicate": "off",
"unicorn/no-break-in-nested-loop": "off",
"unicorn/no-duplicate-loops": "off",
"unicorn/no-declarations-before-early-exit": "off",
"unicorn/no-negated-comparison": "off",
"unicorn/prefer-early-return": "off",
"unicorn/prefer-number-is-safe-integer": "off",
"unicorn/no-undeclared-class-members": "off",
"unicorn/no-useless-boolean-cast": "off",
"unicorn/no-useless-fallback-in-spread": "off",
"unicorn/no-unnecessary-splice": "off",
"unicorn/no-useless-template-literals": "off",
"unicorn/no-global-object-property-assignment": "off",
"unicorn/prefer-await": "off",
"unicorn/prefer-number-coercion": "off",
"unicorn/no-top-level-side-effects": "off",
"unicorn/no-return-array-push": "off",
"unicorn/prefer-array-from-map": "off",
"unicorn/no-error-property-assignment": "off",
"unicorn/prefer-iterator-to-array": "off",
// Bug on `"\u{3000}"`
"unicorn/no-incorrect-template-string-interpolation": "off",
},
linterOptions: {