chore(deps): update dependency eslint-plugin-unicorn to v72 - autoclosed #14
Reference in New Issue
Block a user
Delete Branch "renovate/eslint-plugin-unicorn-72.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
^67.0.0→^72.0.0Release Notes
sindresorhus/eslint-plugin-unicorn (eslint-plugin-unicorn)
v72.0.0Compare Source
Breaking
prefer-minimal-ternary: RenamecheckVaryingCalleeoption tocheckVaryingBase(#3508)825b7b9New rules
no-missing-local-resource(#3528)12a33c6no-multiple-promise-resolver-calls(#3523)81ab092no-shorthand-property-overrides(#3527)91a4c4dno-transition-all(#3529)5ef2fcfno-unnecessary-string-trim(#3517)a651672no-useless-re-export(#3540)96afe55prefer-explicit-viewport-units(#3532)449e636prefer-then-catch(#3526)a17e5a2require-frontmatter-fields(#3525)dfd91cdImprovements
8233f95consistent-boolean-name: Support Vue refs (#3555)79e79d5no-incorrect-template-string-interpolation: Ignore Unicode code point escapes (#3513)36fdf1ano-negated-comparison: Ignore relational comparisons with optional chaining (#3512)7b7e28ano-top-level-side-effects: Ignore<script setup>(#3542)af8fd60no-unnecessary-array-flat-map: Handle TypeScript Vue files (#3545)b6d01a0no-unsafe-property-key: Use type information for narrowed property keys (#3515)69a6002no-unused-array-method-return: Ignore expect assertions (#3552)110cc58no-useless-promise-resolve-reject: Handleawaited calls (#3504)9b8a144no-useless-template-literals: Ignore const assertions (#3543)4367228prefer-await: Add async IIFE suggestion (#3550)305fb4bprefer-dom-node-html-methods: Add options and add torecommendedpreset (#3541)581ef47prefer-export-from: Preserve JSDoc comments on single-const re-exports (#3544)e273ab6prefer-short-arrow-method: Addconsistent-as-neededoption (#3514)c068745prefer-simple-condition-first: Fix logic (#3530)a339abeprefer-split-limit: Support array destructuring (#3554)b23f959prefer-string-starts-ends-with: Detect slice comparisons (#3518)98730deprefer-minimal-ternary: Don't report object-varying member access by default (#3508)825b7b9v71.1.0Compare Source
consistent-boolean-name: Allow async boolean predicates (#3502)dafc7c9consistent-boolean-name: Allow boolean-like React refs withRefsuffix (#3501)064d890v71.0.0Compare Source
Improvements
consistent-boolean-name: Ignore destructured variables (#3485)0de22c5consistent-boolean-name: Skip React hooks by default (#3487)fab07e2isolated-functions: Respect configured globals in isolated functions (#3495)1af1d1ano-unnecessary-array-flat-map: Ignore conditional flatMap fixes in TypeScript (#3499)5eb6d87prefer-boolean-return: Ignore repeated boolean guard clauses (#3494)fdb3d89prefer-top-level-await: Ignore Svelte files (#3489)58670ffprefer-uint8array-base64: Remove from presets (#3493)3f4c31ev70.0.0Compare Source
New rules
no-async-promise-finally(#3450)5aa9ea1no-unnecessary-fetch-options(#3476)db4e852no-unsafe-promise-all-settled-values(#3449)f66e080prefer-abort-signal-any(#3447)f044cefprefer-array-flat-map(#3457)7d48a41prefer-array-from-range(#3451)f3e12e9prefer-block-statement-over-iife(#3452)44a63daprefer-group-by(#3443)b3071b3prefer-iterator-helpers(#3446)18d9362prefer-simplified-conditions(#3474)93ee487Improvements
consistent-boolean-name: Add inverse boolean name support (#3478)d379e13expiring-todo-comments: Report unsupported catalog versions (#3455)26f11daisolated-functions: Add defaults for workerize and common evaluate APIs (#3467)30c7570isolated-functions: Support methods (#3470)c615523no-collection-bracket-access: Handle conditional member keys (#3462)cd01d0bno-manually-wrapped-comments: Handle more cases (#3460)c09d4c7no-non-function-verb-prefix: Addignoreoption (#3475)f9a422eno-return-array-push: Fix false-positives (#3448)5f4dd3ano-useless-else: Recognizeprocess.exit()as an exiting branch (#3482)46714a6prefer-continue: Ignore empty statements (#3473)df904a7prefer-early-return: Ignore empty statements (#3473)df904a7prefer-object-iterable-methods: Catch more callback methods (#3481)a076cbcv69.0.0Compare Source
New rules
consistent-tuple-labels(#3389)fb89880no-invalid-well-known-symbol-methods(#3433)a81ab49no-late-event-control(#3440)898d9c5prefer-abort-signal-timeout(#3441)5a59e19prefer-aggregate-error(#3436)e11cb92prefer-dom-node-replace-children(#3399)5c83834prefer-error-is-error(#3438)d50d876prefer-observer-apis(#3398)9c62a05prefer-promise-try(#3435)704d141prefer-set-methods(#3439)75c2bb3prefer-toggle-attribute(#3396)da04c21prefer-url-search-parameters(#3395)b410701Improvements
comment-content: Don't mutate commented-out multi-line code (#3413)bef80c8consistent-boolean-name: Addignoreoption and plural prefixes (#3423)7cc1d9econsistent-boolean-name: Don't crash on Svelte{#each}bindings (#3417)effc0e1consistent-conditional-object-spread: Treatundefined/nullfallback as an empty branch (#3401)38eebbdcustom-error-definition: Allow no-substitution template literal forname(#3383)594e050custom-error-definition: Don't requireoptionsparameter when forwarded tosuper()inline (#3377)e931467name-replacements: Exclude Vite type declaration (#3375)396c2edno-computed-property-existence-check: Allow dynamic access to a known boolean value (#3420)add50ffno-incorrect-template-string-interpolation: Ignore braces inside block comments (#3429)2676b5dno-nonstandard-builtin-properties: AllowstackonErrorinstances (#3416)b4a3527no-return-array-push: Allowvoidoperator to opt out (#3384)046dc75no-return-array-push: Don't report custompushmethods that don't return arrays (#3427)ed1b57eno-top-level-side-effects: Allow type-only exports (#3421)c896024no-unnecessary-boolean-comparison: Fix false positive for destructured parameters and yield expressions (#3392)26f37f8no-unnecessary-global-this: Don't report existence checks (#3426)668ec36no-unreadable-object-destructuring: Allow computed keys when a rest element is present (#3400)3d3b654no-unsafe-string-replacement: Ignore non-string receivers (#3442)05c7c25no-unused-array-method-return: Restrictvalues()reporting to arrays (#3434)9e12972no-useless-boolean-cast: KeepBoolean()around possibly-undefinedvalues (#3397)d35e538no-useless-concat: Skip concats that form a${…}placeholder (#3428)a39fe66no-useless-else: Autofixelsebodies containing JSX (#3419)3c17b69no-useless-iterator-to-array: Improve fixes (#3432)3bc8c69prefer-at: Only check positive string index access withcheckAllIndexAccess(#3415)68d0d25prefer-code-point: Don't suggest the swap when the result feeds arithmetic (#3430)9083ae7prefer-continue: Don't report when theifbody exits the loop (#3414)2187122prefer-minimal-ternary: AddcheckVaryingCalleeoption (#3381)c397f87v68.0.0Compare Source
Breaking
prevent-abbreviationsrule toname-replacements(#3362)af0158dAwesome
Now 300+ rules 🎉
New rules
consistent-conditional-object-spread(#3326)8aa1e0ddefault-export-style(#3364)0015e81no-accidental-bitwise-operator(#3318)af2661eno-array-concat-in-loop(#3350)4a1f65cno-array-front-mutation(#3323)d8302bdno-array-sort-for-min-max(#3351)e4b6666no-boolean-sort-comparator(#3368)3be859cno-chained-comparison(#3310)c29e211no-collection-bracket-access(#3286)6ccd694no-constant-zero-expression(#3311)134eea2no-double-comparison(#3329)ae4d7d7no-duplicate-if-branches(#3346)94b8c3bno-duplicate-logical-operands(#3348)af07fd8no-impossible-length-comparison(#3342)84dfd8bno-invalid-character-comparison(#3333)b2e9191no-loop-iterable-mutation(#3357)b961432no-misrefactored-assignment(#3315)063a798no-nonstandard-builtin-properties(#3337)14cc4dbno-selector-as-dom-name(#3328)6d9b14fno-unnecessary-boolean-comparison(#3349)00d90d4no-useless-compound-assignment(#3355)ddf347ano-useless-delete-check(#3359)2712e16no-useless-logical-operand(#3352)8689080no-xor-as-exponentiation(#3356)5b1952bprefer-array-from-async(#3370)b2bf08fprefer-array-iterable-methods(#3358)e32a7c3prefer-boolean-return(#3340)084bb9eprefer-continue(#3347)c374e14prefer-flat-math-min-max(#3341)3f0a2ceprefer-hoisting-branch-code(#3369)00d8a9bprefer-math-constants(#3309)6ee7dd8prefer-promise-with-resolvers(#3322)e880d29prefer-regexp-escape(#3367)dec6c31prefer-single-replace(#3353)9117778prefer-unary-minus(#3354)98c6f38prefer-url-can-parse(#3366)ba55624prefer-while-loop-condition(#3344)ce538b7Improvements
42abe7434ca8f6d7ce07eprefer-short-arrow-method: Remove fromrecommendedpreset (#3345)0cfd77aprefer-type-literal-last: Remove fromunopinionatedpreset and stop checking intersection types (#3320)447c665consistent-boolean-name: Do not check destructured bindings (#3324)fb0cfe0logical-assignment-operators: Do not assume the base rule'sdefaultOptionsexist (#3321)253e25flogical-assignment-operators: Improve error message (#3302)3ec8fecname-replacements: Add more default replacements (#3365)f968bf3new-for-builtins: Cover more builtins (#3361)e04ac43no-array-splice: Only report fresh, non-escaping local arrays (#3301)babb873no-break-in-nested-loop: Handle unlabeledcontinuein nestedswitchstatements (#3335)ca893bano-declarations-before-early-exit: Ignore initializers containingawaitoryield(#3303)6d98190no-incorrect-template-string-interpolation: Remove fromunopinionatedpreset and fix false-positive (#3319)39dc546no-manually-wrapped-comments: Ignore some more comments (#3292)a545dfeno-named-default: Don't drop comments in autofix (#3306)44e7361no-unsafe-property-key: Allow intrinsic string-mapping types as keys (#3343)ba6020fno-useless-coercion: Flag+value,value + '', andvalue.toString()idioms (#3338)23a52f6no-useless-undefined: Flagreturn undefinedforvoidreturn type (#3334)488d5e3prefer-array-find: Add.filter(…).slice(-1)support (#3360)b6ea1e2prefer-early-return: Fix lexical declaration autofixes (#3325)e7771bdprefer-identifier-import-export-specifiers: Check import attribute keys (#3287)fec43d2prefer-includes-over-repeated-comparisons: Ignore distinct expressions compared againstundefined(#3308)78858ecprefer-minimal-ternary: Report dynamic computed-key swaps (#3300)72879c4prefer-number-properties: AddparseFloatsupport (#3307)4b891d3prefer-object-iterable-methods: Preserve TypeScript casts on value access (#3327)d3a4d39Configuration
📅 Schedule: (UTC)
🚦 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 has been generated by Mend Renovate.
chore(deps): update dependency eslint-plugin-unicorn to v72to chore(deps): update dependency eslint-plugin-unicorn to v72 - autoclosedPull request closed