diff --git a/eslint.config.js b/eslint.config.js index fd3a1d5f1..626ceacc3 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -277,8 +277,6 @@ const configs = [ "unicorn/no-for-loop": "off", "unicorn/no-global-object-property-assignment": "off", "unicorn/no-hex-escape": "off", - // https://github.com/sindresorhus/eslint-plugin-unicorn/issues/3700 - "unicorn/no-immediate-mutation": "off", // Bug on `"\u{3000}"` "unicorn/no-incorrect-template-string-interpolation": "off", "unicorn/no-invalid-argument-count": "off", @@ -292,6 +290,8 @@ const configs = [ "unicorn/no-top-level-side-effects": "off", "unicorn/no-undeclared-class-members": "off", "unicorn/no-unnecessary-boolean-comparison": "off", + // Too slow and not useful + "unicorn/no-unnecessary-polyfills": "off", "unicorn/no-unreadable-array-destructuring": "off", "unicorn/no-unreadable-for-of-expression": "off", "unicorn/no-unreadable-new-expression": "off", @@ -341,6 +341,7 @@ const configs = [ // TODO: Enable "unicorn/prefer-else-if": "off", "unicorn/prefer-includes-over-repeated-comparisons": "off", + "unicorn/prefer-logical-operator-over-ternary": "off", "unicorn/prefer-minimal-ternary": "off", "unicorn/prefer-number-properties": [ "error", diff --git a/package.json b/package.json index 399a7ff2b..951676b4b 100644 --- a/package.json +++ b/package.json @@ -159,7 +159,7 @@ "eslint-plugin-n": "18.3.0", "eslint-plugin-regexp": "3.3.0", "eslint-plugin-simple-import-sort": "14.0.0", - "eslint-plugin-unicorn": "75.0.0", + "eslint-plugin-unicorn": "76.0.0", "esm-utils": "4.4.2", "flow-estree": "0.332.0", "get-port": "7.2.0", diff --git a/yarn.lock b/yarn.lock index 4811930b8..f467c72f4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4605,9 +4605,9 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-unicorn@npm:75.0.0": - version: 75.0.0 - resolution: "eslint-plugin-unicorn@npm:75.0.0" +"eslint-plugin-unicorn@npm:76.0.0": + version: 76.0.0 + resolution: "eslint-plugin-unicorn@npm:76.0.0" dependencies: "@eslint-community/eslint-utils": "npm:^4.10.1" "@eslint/css-tree": "npm:^4.0.5" @@ -4631,7 +4631,7 @@ __metadata: yaml: "npm:^2.9.0" peerDependencies: eslint: ">=10.4" - checksum: 10/18abcefeaef437eaa3a87af5379af25ffa490fa9d831b12185c662ed8dd7ded204e2accaee6fd0b5c662fb83f513474bd3432e800cd2a1a22a840509d4c6be57 + checksum: 10/f87f21bf0d52396d07d23e2c7f8593f76bb3450e548769e273897ed3715df1fb38216dd206dcddcfb70ca12a8a08fb773366dfa16ef95b8e789c381366fc5b69 languageName: node linkType: hard @@ -8077,7 +8077,7 @@ __metadata: eslint-plugin-n: "npm:18.3.0" eslint-plugin-regexp: "npm:3.3.0" eslint-plugin-simple-import-sort: "npm:14.0.0" - eslint-plugin-unicorn: "npm:75.0.0" + eslint-plugin-unicorn: "npm:76.0.0" esm-utils: "npm:4.4.2" espree: "npm:11.2.0" fast-glob: "npm:3.3.3"