From f9a054f6716ec42b3baf54c8679f703d3849b070 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 17 Jun 2026 05:37:42 +0800 Subject: [PATCH] Update eslint-plugin-unicorn to v67 (#19389) Co-authored-by: fisker --- eslint.config.js | 7 +++++++ package.json | 2 +- yarn.lock | 10 +++++----- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index 07aec990c..6eeb3c57a 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -241,6 +241,7 @@ const configs = [ "unicorn/catch-error-name": "off", // Doesn't work for code and JSDoc in comments "unicorn/comment-content": "off", + "unicorn/consistent-boolean-name": "off", "unicorn/consistent-class-member-order": "off", "unicorn/consistent-compound-words": "off", "unicorn/consistent-destructuring": "off", @@ -249,12 +250,14 @@ const configs = [ "unicorn/escape-case": "off", "unicorn/filename-case": ["error", { checkDirectories: false }], "unicorn/import-style": "off", + "unicorn/logical-assignment-operators": "off", "unicorn/max-nested-calls": "off", "unicorn/no-array-callback-reference": "off", "unicorn/no-array-method-this-argument": "off", "unicorn/no-array-reduce": "off", "unicorn/no-array-reverse": "off", "unicorn/no-array-sort": "off", + "unicorn/no-array-splice": "off", "unicorn/no-await-expression-member": "off", "unicorn/no-break-in-nested-loop": "off", "unicorn/no-computed-property-existence-check": "off", @@ -272,9 +275,11 @@ const configs = [ "unicorn/no-process-exit": "off", "unicorn/no-thenable": "off", "unicorn/no-this-outside-of-class": "off", + "unicorn/no-top-level-assignment-in-function": "off", "unicorn/no-top-level-side-effects": "off", "unicorn/no-undeclared-class-members": "off", "unicorn/no-unreadable-array-destructuring": "off", + "unicorn/no-unreadable-for-of-expression": "off", "unicorn/no-unreadable-new-expression": "off", "unicorn/no-unreadable-object-destructuring": "off", "unicorn/no-unsafe-string-replacement": "off", @@ -290,6 +295,7 @@ const configs = [ ], "unicorn/number-literal-case": "off", "unicorn/numeric-separators-style": "off", + "unicorn/operator-assignment": "off", "unicorn/prefer-array-flat": [ "error", { @@ -317,6 +323,7 @@ const configs = [ "unicorn/prefer-global-number-constants": "off", "unicorn/prefer-global-this": "off", "unicorn/prefer-https": "off", + "unicorn/prefer-else-if": "off", "unicorn/prefer-includes-over-repeated-comparisons": "off", "unicorn/prefer-minimal-ternary": "off", "unicorn/prefer-query-selector": "off", diff --git a/package.json b/package.json index 3ffae6448..ad6a36f94 100644 --- a/package.json +++ b/package.json @@ -160,7 +160,7 @@ "eslint-plugin-n": "18.1.0", "eslint-plugin-regexp": "3.1.0", "eslint-plugin-simple-import-sort": "13.0.0", - "eslint-plugin-unicorn": "66.0.0", + "eslint-plugin-unicorn": "67.0.0", "esm-utils": "4.4.2", "get-port": "7.2.0", "gfm-test-suite": "0.0.2", diff --git a/yarn.lock b/yarn.lock index aacc94be4..0299f7b63 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4509,9 +4509,9 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-unicorn@npm:66.0.0": - version: 66.0.0 - resolution: "eslint-plugin-unicorn@npm:66.0.0" +"eslint-plugin-unicorn@npm:67.0.0": + version: 67.0.0 + resolution: "eslint-plugin-unicorn@npm:67.0.0" dependencies: "@babel/helper-validator-identifier": "npm:^7.29.7" "@eslint-community/eslint-utils": "npm:^4.9.1" @@ -4531,7 +4531,7 @@ __metadata: strip-indent: "npm:^4.1.1" peerDependencies: eslint: ">=10.4" - checksum: 10/7cc02b67616d2f5415792b7c20178513d01ab857ae2a8794ff3b85ebb0ae3b3b85a344426910b8345fd52371c96d2986ab0469a6859bef7ce3f1e19dad0187f8 + checksum: 10/71d786c328c24fd06e622930c80b3e4bd80da4b3367bb2ee087cd8ecfcb740a699ec0ba71cb259a65e515f83117bb9710836941d07f05ae9a1719ecad6bfe50b languageName: node linkType: hard @@ -8151,7 +8151,7 @@ __metadata: eslint-plugin-n: "npm:18.1.0" eslint-plugin-regexp: "npm:3.1.0" eslint-plugin-simple-import-sort: "npm:13.0.0" - eslint-plugin-unicorn: "npm:66.0.0" + eslint-plugin-unicorn: "npm:67.0.0" esm-utils: "npm:4.4.2" espree: "npm:11.2.0" fast-glob: "npm:3.3.3"