-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Update dependency eslint-plugin-unicorn to v57 #31
base: master
Are you sure you want to change the base?
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
This PR contains the following updates:
45.0.2
->57.0.0
Release Notes
sindresorhus/eslint-plugin-unicorn (eslint-plugin-unicorn)
v57.0.0
Compare Source
Breaking
c44ea26
c44ea26
New rules
consistent-date-clone
(#2544)8cebcf4
no-named-default
(#2538)ed8da1b
consistent-assert
(#2535)f3fc973
no-instanceof-builtins
8197574
41548c4
no-accessor-recursion
(#2525)92b5671
Improvements
no-instanceof-array
(#2534)c9c056c
no-instanceof-builtin-object
which covers more cases.prefer-includes
: Support Vue template (#2526)4e539b4
prevent-abbreviations
: Addutil
andutils
to abbreviations (#2507)5ba9f0a
prefer-math-min-max
: Ignore BigInt (#2467)8b7c5fc
prefer-global-this
: Also excludeouterWidth
andouterHeight
(#2549)8f00f76
prefer-at
: Remove unsafe autofix for.slice
with 1 argument (#2476)2985ecc
prefer-math-min-max
: Reduce false positives in TypeScript (#2527)1cbc561
prefer-string-raw
: IgnoreImportAttribute
(#2551)d963ccd
Fixes
new-for-builtins
: Correct fix forDate()
(#2543)e5e17f8
prefer-global-this
: Fix auto-fix fortypeof window
(#2501)b95dc12
v56.0.1
Compare Source
expiring-todo-comments
: Fix compatibility with ESLint 9.15 (#2497)16b09d3
v56.0.0
Compare Source
New rules
prefer-global-this
(#2410)1558cbe
prefer-math-min-max
(#2432)7369077
consistent-existence-index-check
(#2425)d3e4b80
Breaking
better-regex
from recommended rules (#2443)461b01c
Improvements
no-useless-undefined
: Ignore React 19useRef
calls (#2463)5f744e8
prefer-query-selector
: Add support forgetElementsByName
(#2398)e511ffd
prefer-string-slice
: Remove unsafe autofix forString#substr()
(#2427)891842d
no-for-loop
: Remove invalid fix for TypeScript (#2426)1e367bb
v55.0.0
Compare Source
New rules
no-length-as-slice-end
(#2400)3c33820
Improvements
68e0f13
Fixes
no-single-promise-in-promise-methods
: Remove broken autofix forPromise.all()
(#2386)8d28b6e
prefer-node-protocol
: Ignore Bun modules (#2384)a45b24a
no-negation-in-equality-check
: Ignore boolean type casting (#2379)37e00dd
v54.0.0
Compare Source
New rules
no-negation-in-equality-check
(#2353)8957a03
Breaking
prefer-array-find
: ChangecheckFromLast
default value totrue
(#2367)a449af9
Improvements
ac8536e
prefer-array-some
: CheckArray#{findIndex,findLastIndex}()
(#2370)10568ab
prefer-includes
: Check.lastIndexOf()
(#2368)d812ad1
prefer-string-raw
: Ignore strings in Enums (#2354)175ea04
Fixes
new
to calls (#2352)d8f8161
v53.0.0
Compare Source
New rules
consistent-empty-array-spread
(#2349)8d7954c
prefer-string-raw
(#2339)4f1400a
no-invalid-fetch-options
(#2338)342aafb
no-magic-array-flat-depth
(#2335)bc17428
prefer-structured-clone
(#2329)497519e
Breaking
598f57b
Meta
b82542d
Improvements
598f57b
no-array-method-this-argument
: CheckArray.fromAsync()
(#2330)99489b9
prefer-number-properties
: AddcheckNaN
option (#2315)d30de50
template-indent
: Support member expression paths intags
andfunctions
(#2346)aabcf1d
prefer-number-properties
: Don't require by default forInfinity
/-Infinity
to be written asNumber.POSITIVE_INFINITY
/Number.NEGATIVE_INFINITY
(#2312)e0dfed2
escape-case
: IgnoreString.raw
(#2342)45bd444
no-hex-escape
: IgnoreString.raw
(#2343)cc02a7f
prefer-dom-node-dataset
: Ignoreawait
edgetAttribute
call (#2334)45f23d5
prevent-abbreviations
: Support non-ASCII filenames (#2308)28762c8
throw-new-error
: Check all call expressions instead of just argument ofThrowStatement
(#2332)1626852
v52.0.0
Compare Source
New rules
no-single-promise-in-promise-methods
(#2258)8f0ee89
no-await-in-promise-methods
(#2259)a3be554
no-anonymous-default-export
(#2273)c035216
Improvements
filename-case
: Add option for multiple file extensions (#2186)4594020
import-style
: Supportnode:
protocol (#2297)c28a086
prefer-array-find
: Checkarray.filter().at(0)
(#2284)e6074fe
prefer-prototype-methods
: CheckObject.prototype
methods fromglobalThis
(#2286)1792d33
no-array-callback-reference
: Check logical expressions and check ternaries deeply (#2289)231529a
Fixes
prefer-spread
: Fix it to not report on optional chaining (#2304)df1ff1c
no-anonymous-default-export
: Uppercase class name (#2282)5ce4169
v51.0.1
Compare Source
prefer-node-protocol
: Fix false positive onbun:*
modules (#2272)43fc638
v51.0.0
Compare Source
Breaking
consistent-destructuring
: Remove fromrecommended
preset (#2260)702d51b
Improvements
no-array-method-this-argument
: CheckArray.from()
(#2262)797caee
Fixes
no-thenable
: Fix crash on{[Symbol.prototype]: 0}
(#2248)3c7d7c0
prefer-prototype-methods
: Fix argument ofisMethodCall
(#2247)3b504fa
v50.0.1
Compare Source
Fixes
no-unnecessary-polyfills
: Fix missing dependency error (#2242)3df1606
v50.0.0
Compare Source
New rules
no-unnecessary-polyfills
(#1717)6788d86
Improvements
65711f9
no-useless-undefined
: AddcheckArrowFunctionBody
option (#2232)9d7048c
prefer-negative-index
: CheckTypedArray#subarray()
(#2237)6708a30
no-useless-undefined
: Ignore React state setters (#2223)42881ba
prefer-module
: Allowmodule
as TSTypeParameter name (#2213)8f61f7c
Fixes
string-content
: Fix JSX autofix for newlines, etc. (#2222)b95e75e
v49.0.0
Compare Source
Improvements
expiring-todo-comments
: Support monorepos (#2159)ac51d40
prefer-module
: Allowmodule
as TSIndexSignature names or TSTypeAliasDeclaration ids (#2209)ea94b3b
v
flag (#2195)28e7498
prefer-event-target
: IgnoreEventEmitter
from@angular/core
andeventemitter3
(#2197)1629ebe
v48.0.1
Compare Source
no-empty-file
: Fix directive check for TypeScript parser (#2180)1bb9ce8
v48.0.0
Compare Source
Improvements
no-unsafe-regex
rule (#2135)7b473aa
prefer-top-level-await
: Ignore promises insidePromise.{all,allSettled,any,race}()
(#2139)d3f6b60
no-process-exit
: Ignore when usingnode:worker_threads
module (#2136)2907805
prefer-array-some
: Ignore filter calls with literal argument (#2097)7a32edb
prefer-modern-math-api
: Check cases thatMath.hypot()
should be preferred (#2080)9bbc948
explicit-length-check
: Ignore.length || number
(#1977)b9b8794
Fixes
f10f1a6
prefer-dom-node-dataset
: Fix edge cases (#2171)b2d7378
prefer-dom-node-dataset
: Remove broken fix forelement.setAttribute
(#2169)61234af
no-lonely-if
: Fix an edge case (#2168)ca837a8
no-useless-undefined
: Turn parameter withundefined
default value into optional parameter (#2138)4aa7d60
no-thenable
: FixObject.fromEntries()
check (#2130)f3265b9
prefer-dom-node-remove
: Fix incorrect auto-fix (#2084)74bb36d
v47.0.0
Compare Source
Breaking
a3bc120
eslint@>=8.38.0
(#2066)04af765
prefer-at
,prefer-event-target
, andprefer-string-replace-all
in recommended config (#2073)a3bc120
New rules
prefer-blob-reading-methods
(#2065)2bb1a04
Improvements
prefer-top-level-await
: Ignore.cjs
files (#2072)0c3ccb1
prefer-spread
: Stop checkingArray.from
call with map function (#2064)f5beccb
prefer-dom-node-text-content
: Check optional chaining (#2062)8d6d007
prefer-dom-node-{append,remove}
: Check optional chaining (#2061)443999b
Fixes
prefer-number-properties
: Fix false positives (#2050)124bfa7
v46.0.1
Compare Source
expiring-todo-comments
(#2077)7a6861a
v46.0.0
Compare Source
Improvements
elems
to abbreviations (#2040)2a9c840
no-useless-spread
: CheckArray#{toReversed,toSorted,toSpliced,with}
(#2030)55469e5
prefer-set-has
: SupportArray#{toReversed,toSorted,toSpliced,with}
(#2032)fea5b42
prefer-spread
: Forbid use ofArray#toSpliced()
to copy array (#2034)4ada50e
prefer-negative-index
: Check.toSpliced()
and.with()
(#2031)7ed738a
no-empty-file
: Support.jsx
and.tsx
extensions (#2002)ba1a00e
Fixes
expiring-todo-comments
: Do not normalize package.json (#1871) (#2020)fcd8934
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, 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.