chore(deps): update dependency eslint-plugin-unicorn to v62 #2016
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
49.0.0->62.0.0Release Notes
sindresorhus/eslint-plugin-unicorn (eslint-plugin-unicorn)
v62.0.0Compare Source
v61.0.2Compare Source
throw-new-error: Fix false positive for Effect library (#2740)0ddf5eano-useless-undefined: IgnoreSet#delete(undefined)(#2739)99acd27prefer-includesandprefer-array-index-of: Prevent crash on Vue files (#2645)a1da518v61.0.1Compare Source
prefer-classlist-toggle: OmitElement#classList.contains()call when fixing (#2732)066f96bv61.0.0Compare Source
New rules
prefer-bigint-literals(#2722)1f4cb8aprefer-classlist-toggle(#2731)5f27ec2require-module-attributes(#2725)5f275e2no-array-sort(#2713)b70d1e8Improvements
unopinionatedconfig (#2715)c13d09b60b2ec5no-array-reduce: Report optional chaining and calling of.reduce()(#2721)caa1f8bprefer-type-error: Ignore error type check (#2729)d12fc01Fixes
prefer-includes: Fix compatibility with Vue SFC (#2704)540a4d4v60.0.0Compare Source
Breaking
2dc27d9New rules
prefer-class-fields(#2512)4c82dc1no-array-reverse(#2677)b051302require-module-specifiers(#2686)2a8e152no-useless-error-capture-stack-trace(#2676)fc900b6Improvements
prefer-string-replace-all: Preserve escape (#2667)2310b50SuppressedError(#2669)f51aeb9Fixes
no-array-callback-reference: Fix optional chaining expressions being ignored (#2694)ad27922no-unnecessary-await: Fix handling of experimental pipeline operator (#2658)2b8ebe5v59.0.1Compare Source
prefer-single-call: Fix crash onCallExpressionfollowed byFunctionDeclaration(#2639)3114dd9v59.0.0Compare Source
Breaking
no-array-push-pushrule toprefer-single-call(#2617)e117783no-length-as-slice-endrule tono-unnecessary-slice-end(#2614)1922df1New rules
prefer-import-meta-properties(#2607)1f6e172no-unnecessary-array-flat-depth(#2618)c63e698no-unnecessary-array-splice-count(#2614)1922df1Improvements
Float16Array(#2622)9e50568prefer-node-protocol: Supportprocess.getBuiltinModule()(#2611)056364dno-unnecessary-slice-end: Support checkingInfinity(#2614)1922df1v58.0.0Compare Source
Potentially breaking
engines.nodein package.json to match real compatibility (#2581)e48a620Improvements
escape-case: Add case option (#2559)0f6048cnumber-literal-case: AddhexadecimalValueoption (#2559)0f6048cprevent-abbreviations: PreserveiOS(#2560)e8798daFixes
no-unnecessary-polyfills: Fix browserslist field name (#2603)1a4c76fno-unnecessary-polyfills: Fix crash on checkinges6-errormodule (#2582)66de41ano-accessor-recursion: Fix exception when used in CommonJS (#2574)ca1e432v57.0.0Compare Source
Breaking
c44ea26c44ea26New rules
consistent-date-clone(#2544)8cebcf4no-named-default(#2538)ed8da1bconsistent-assert(#2535)f3fc973no-instanceof-builtins819757441548c4no-accessor-recursion(#2525)92b5671Improvements
no-instanceof-array(#2534)c9c056cno-instanceof-builtinswhich covers more cases.prefer-includes: Support Vue template (#2526)4e539b4prevent-abbreviations: Addutilandutilsto abbreviations (#2507)5ba9f0aprefer-math-min-max: Ignore BigInt (#2467)8b7c5fcprefer-global-this: Also excludeouterWidthandouterHeight(#2549)8f00f76prefer-at: Remove unsafe autofix for.slicewith 1 argument (#2476)2985eccprefer-math-min-max: Reduce false positives in TypeScript (#2527)1cbc561prefer-string-raw: IgnoreImportAttribute(#2551)d963ccdFixes
new-for-builtins: Correct fix forDate()(#2543)e5e17f8prefer-global-this: Fix auto-fix fortypeof window(#2501)b95dc12v56.0.1Compare Source
expiring-todo-comments: Fix compatibility with ESLint 9.15 (#2497)16b09d3v56.0.0Compare Source
New rules
prefer-global-this(#2410)1558cbeprefer-math-min-max(#2432)7369077consistent-existence-index-check(#2425)d3e4b80Breaking
better-regexfrom recommended rules (#2443)461b01cImprovements
no-useless-undefined: Ignore React 19useRefcalls (#2463)5f744e8prefer-query-selector: Add support forgetElementsByName(#2398)e511ffdprefer-string-slice: Remove unsafe autofix forString#substr()(#2427)891842dno-for-loop: Remove invalid fix for TypeScript (#2426)1e367bbv55.0.0Compare Source
New rules
no-length-as-slice-end(#2400)3c33820Improvements
68e0f13Fixes
no-single-promise-in-promise-methods: Remove broken autofix forPromise.all()(#2386)8d28b6eprefer-node-protocol: Ignore Bun modules (#2384)a45b24ano-negation-in-equality-check: Ignore boolean type casting (#2379)37e00ddv54.0.0Compare Source
New rules
no-negation-in-equality-check(#2353)8957a03Breaking
prefer-array-find: ChangecheckFromLastdefault value totrue(#2367)a449af9Improvements
ac8536eprefer-array-some: CheckArray#{findIndex,findLastIndex}()(#2370)10568abprefer-includes: Check.lastIndexOf()(#2368)d812ad1prefer-string-raw: Ignore strings in Enums (#2354)175ea04Fixes
newto calls (#2352)d8f8161v53.0.0Compare Source
New rules
consistent-empty-array-spread(#2349)8d7954cprefer-string-raw(#2339)4f1400ano-invalid-fetch-options(#2338)342aafbno-magic-array-flat-depth(#2335)bc17428prefer-structured-clone(#2329)497519eBreaking
598f57bMeta
b82542dImprovements
598f57bno-array-method-this-argument: CheckArray.fromAsync()(#2330)99489b9prefer-number-properties: AddcheckNaNoption (#2315)d30de50template-indent: Support member expression paths intagsandfunctions(#2346)aabcf1dprefer-number-properties: Don't require by default forInfinity/-Infinityto be written asNumber.POSITIVE_INFINITY/Number.NEGATIVE_INFINITY(#2312)e0dfed2escape-case: IgnoreString.raw(#2342)45bd444no-hex-escape: IgnoreString.raw(#2343)cc02a7fprefer-dom-node-dataset: IgnoreawaitedgetAttributecall (#2334)45f23d5prevent-abbreviations: Support non-ASCII filenames (#2308)28762c8throw-new-error: Check all call expressions instead of just argument ofThrowStatement(#2332)1626852v52.0.0Compare Source
New rules
no-single-promise-in-promise-methods(#2258)8f0ee89no-await-in-promise-methods(#2259)a3be554no-anonymous-default-export(#2273)c035216Improvements
filename-case: Add option for multiple file extensions (#2186)4594020import-style: Supportnode:protocol (#2297)c28a086prefer-array-find: Checkarray.filter().at(0)(#2284)e6074feprefer-prototype-methods: CheckObject.prototypemethods fromglobalThis(#2286)1792d33no-array-callback-reference: Check logical expressions and check ternaries deeply (#2289)231529aFixes
prefer-spread: Fix it to not report on optional chaining (#2304)df1ff1cno-anonymous-default-export: Uppercase class name (#2282)5ce4169v51.0.1Compare Source
prefer-node-protocol: Fix false positive onbun:*modules (#2272)43fc638v51.0.0Compare Source
Breaking
consistent-destructuring: Remove fromrecommendedpreset (#2260)702d51bImprovements
no-array-method-this-argument: CheckArray.from()(#2262)797caeeFixes
no-thenable: Fix crash on{[Symbol.prototype]: 0}(#2248)3c7d7c0prefer-prototype-methods: Fix argument ofisMethodCall(#2247)3b504fav50.0.1Compare Source
Fixes
no-unnecessary-polyfills: Fix missing dependency error (#2242)3df1606v50.0.0Compare Source
New rules
no-unnecessary-polyfills(#1717)6788d86Improvements
65711f9no-useless-undefined: AddcheckArrowFunctionBodyoption (#2232)9d7048cprefer-negative-index: CheckTypedArray#subarray()(#2237)6708a30no-useless-undefined: Ignore React state setters (#2223)42881baprefer-module: Allowmoduleas TSTypeParameter name (#2213)8f61f7cFixes
string-content: Fix JSX autofix for newlines, etc. (#2222)b95e75eConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.