chore(deps): update dependency eslint-plugin-unicorn to v65 - autoclosed #55
Reference in New Issue
Block a user
Delete Branch "renovate/eslint-plugin-unicorn-65.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:
61.0.2→65.0.1Release Notes
sindresorhus/eslint-plugin-unicorn (eslint-plugin-unicorn)
v65.0.1Compare Source
no-unused-array-method-return: Fix false positive on type assertions (#3065)4939b00prefer-https: Fix false positive on XML namespace URIs (#3063)5184262v65.0.0Compare Source
Breaking
better-regexrule (#2968)89dc5dcignore*boolean options tocheck*for consistency (#3045)8acfea1expiring-todo-comments:ignoreDates→checkDatesexpiring-todo-comments:ignoreDatesOnPullRequests→checkDatesOnPullRequestsprefer-export-from:ignoreUsedVariables→checkUsedVariablesprefer-dom-node-datasetrule todom-node-dataset3f51bc6expiring-todo-comments: MakecheckDatesoptiontrueby default (#3044)5e31bbaprefer-global-this: Remove exemption for WebWorker-specific APIs (#2926)add2138New rules
better-dom-traversing(#3052)df50ceeconsistent-compound-words(#3061)fcacf46consistent-json-file-read(#2987)d9d3862no-array-fill-with-reference-type(#3039)47356fano-array-from-fill(#3007)57324cbno-blob-to-file(#2993)7302833no-canvas-to-image(#2985)b4a5af1no-confusing-array-splice(#2978)01ae1d2no-duplicate-set-values(#2995)f29a382no-exports-in-scripts(#3015)4cbb529no-incorrect-query-selector(#3059)150b5f1no-invalid-file-input-accept(#3047)2c8d77bno-late-current-target-access(#2974)db86086no-manually-wrapped-comments(#3036)87fe35bno-this-outside-of-class(#3030)21fc369no-unnecessary-nested-ternary(#3023)cc1ced2no-unused-array-method-return(#2940)a7d8a6cprefer-array-last-methods(#3029)108d7a1prefer-get-or-insert-computed(#2979)f48f380prefer-https(#3014)838695eprefer-includes-over-repeated-comparisons(#3056)3c5880eprefer-iterator-concat(#2998)5c52d0cprefer-iterator-to-array-at-end(#3041)6b341b6prefer-math-abs(#2996)7df5b48prefer-queue-microtask(#3050)3fc8b03prefer-split-limit(#3019)6308c1dprefer-string-match-all(#3057)c9b5ec8prefer-string-pad-start-end(#3002)3736c66prefer-string-repeat(#2988)e52c455require-css-escape(#3037)55ff804require-passive-events(#3004)4c17568try-complexity(#3055)e7a1999Improvements
prefer-dom-node-dataset: AddpreferAttributesoption (#2918)3f51bc6consistent-function-scoping: Ignore functions in Jest mock factories (#3032)8711c4acustom-error-definition: Handle custom error message accessors (#2980)1b82067expiring-todo-comments: Add CSS support (#2972)4fd8dd5explicit-length-check: Ignore nullable property guards (#3006)8b96ae0filename-case: Check directories too (#3038)a85e9e8filename-case: Allow$-prefixed filenames (#3012)b9cbbedimport-style: Warn about misuse when all styles are set tofalse(#3043)f446f98no-array-callback-reference: Addignoreoption (#3042)8d33cafno-array-callback-reference: Use singular callback parameter names (#3035)ced1210no-array-for-each: Ignorestrict-callbag-basicsnamespaces (#3010)d3a643eno-array-reduce: Add autofix (#3058)b0248a6no-empty-file: AddallowCommentsoption (#2984)3908ccdno-null: AddcheckArgumentsoption (#3049)ff658c5no-useless-spread: Report spreading into collection constructors (#3025)0dbd8d7no-useless-undefined: IgnorePromise.resolve(undefined)in TS (#3031)3310c37numeric-separators-style: AddfractionGroupLengthoption (#3051)0074463prefer-array-some: Detect assigned find results (#3028)f34565dprefer-at: Ignorearguments(#2976)24e6575prefer-query-selector: AddallowWithVariablesoption (#2953)2d51e30prefer-set-has: Allow compatible extra usages (#3060)49535b0prefer-set-has: AddminimumItemsoption (#3024)cbf5e88prefer-set-has: Improve TypeScript autofix (#2983)63f87d9prefer-single-call: Addunshift()support (#3034)b207989prefer-string-raw: Forbid unnecessaryString.raw(#2695)1fdace0prefer-string-replace-all: EnforcereplaceAlloversplit().join()(#3048)9ad4657prefer-string-slice: Improve autofix (#3021)3407bf7prefer-top-level-await: Ignore variable initializers (#3020)53cfc3cprevent-abbreviations: Add suggestions for ambiguous replacements (#3033)c0d638fprevent-abbreviations: Avoid unsafe parameter autofixes (#3054)fc18bd9string-content: AddcaseSensitiveoption (#3053)afbc462string-content: Addselectorsoption (#3026)82a1962c9153caFixes
consistent-destructuring: Fix type guards (#2994)20d3107explicit-length-check: Fix false positive (#2989)04f6883no-array-callback-reference: Fix local callbacks (#3027)9212b9bno-lonely-if: Fix fixer overlap with whole-range fixes0e023e3no-unnecessary-polyfills: Fix false positives for multi-feature imports (#2941)4523856prefer-at: Avoid reporting object index access (#2999)f0509daprefer-dom-node-append: Fix append API label (#3018)aa1e02dprefer-dom-node-remove: Improve fixer (#2991)0c4bac4prefer-keyboard-event-key: Handle more cases (#2992)4bfd377prefer-regexp-test: Fix length checks (#2986)16387c8prefer-regexp-test: Ignore RTK action matchers (#3003)5bc965dprefer-spread: Fix string false positives (#3011)7c630d1prefer-top-level-await: Fix under@typescript-eslint/parser(#2948)93f33ebprefer-top-level-await: Ignore Zod schema catch fallback (#3005)889da5arequire-module-specifiers: Allow bareexport {}as a module marker (#3001)c21bf37template-indent: Fix root indentation detection (#2981)f0e4fadthrow-new-error: Fix decorator false positive (#3000)3ea18cc5ed8490v64.0.0Compare Source
New rules
consistent-template-literal-escape(#2866)55444b4no-useless-iterator-to-array(#2872)641b88cprefer-simple-condition-first(#2902)b0279ddswitch-case-break-position(#2910)8d5d487Improvements
6b41299text-encoding-identifier-case: Support template literals (#2905)9448c8cprefer-math-min-max: Ignore Date objects (#2903)cd53d9eprevent-abbreviations: Handle exported TS interfaces and enums (#2898)6dc01d2no-array-callback-reference: Skip TypeScript type predicate callbacks (#2897)02364c8prefer-spread: Skip autofix when it would drop comments (#2896)6ff1467no-useless-undefined: Flagreturn undefinedfor explicit undefined return types (#2876)41fc9c2no-unnecessary-polyfills: Improve performance (#2874)c88bf29expiring-todo-comments: AddignoreDatesoption (#2892)95a288bprevent-abbreviations: Recognize jQuery42f5364prefer-object-from-entries: Avoid auto-fixing generic reduce (#2878)bea9b20Fixes
expiring-todo-comments: Fix partial version comparison (#2895)51390e9consistent-destructuring: Fix false positive for nested rest destructuring (#2894)1cddfb5consistent-destructuring: Fix false positive after reassignment (#2893)c7f57d0consistent-function-scoping: Fix TypeScript false positives for lexicalthis(#2885)a383657custom-error-definition: Fix class field autofix (#2887)1359726explicit-length-check: Fix||fallback false positives (#2889)84246ecexplicit-length-check: Avoid unsafe autofix in negated comparisons (#2883)73b043bimport-style: Fix false positive for type-only import (#2891)aea9954no-unused-properties: Fix for JSX member access (#2890)0ff698bbetter-regex: Fix empty-pattern autofix (#2881)c201987prefer-global-this: Fix for window-specificinchecks (#2879)6bf7537prefer-native-coercion-functions: Fix false positive for TS type predicates (#2888)4c4b565prefer-set-has: Fix string false positives (#2882)c230c22prefer-top-level-await: Fix false positive withPromise.all(#2884)67faa7av63.0.0Compare Source
New rules
isolated-functions(#2701)4956a6bImprovements
bd0901bprefer-set-size: AddArray.from()support (#2857)e556143prefer-bigint-literals: Support signed numbers and strings (#2784)a332a50prefer-export-from: Fix type-import being removed when using namespace import (#2771)ab4b779prefer-spread: Fix: Skip TypedArray and ArrayBuffer constructor calls (#2871)42a558fno-array-sort: Ignore.sort()calls with non-function arguments (#2862)cbb2377prefer-add-event-listener: Don't autofix non-function assignments (#2865)989ec61explicit-length-check: Ignore||with string fallback value (#2861)4806f7eno-unnecessary-polyfills: Fix false positive for graduatedesnextfeatures (#2864)d6c13abno-for-loop: Skip auto-fix for string types when.entries()would be needed (#2869)08a591aimport-style: Fix crash onexport {x}withoutfromclause (#2868)141c8c5expiring-todo-comments: Should not flag ESLint disable comments (#2828)3568dafno-useless-collection-argument: Use suggestions to remove empty array with comments (#2838)c0d0687prefer-set-has: CheckIterator#toArray()andString#split()(#2829)ab8970eno-useless-spread: Fix false positive onIterator(#2831)994e31cisolated-functions: Ignore TypeScript types (#2822)c3479c0prefer-string-raw: Exclude inline snapshot (#2811)6e7f93cconsistent-assert: Explicitly check specifier node type (#2803)396a8fav62.0.0Compare Source
New rules
no-immediate-mutation(#2787)e1c7d2eno-useless-collection-argument(#2777)2d07c9aprefer-response-static-json(#2778)ffe5943Improvements
text-encoding-identifier-case: AddwithDashoption (#2780)9025386no-useless-undefined: Check oneundefinedat a time (#2792)27f7509prefer-single-call: Check optional chaining (#2788)8a132actext-encoding-identifier-case: Enforce'utf-8'inform[acceptCharset]andTextDecoder(#2785)46b3974prefer-node-protocol: Handle TypeScript import types (#2774)13a37a0no-array-for-each: IgnoreforEachfor Effect library (#2783)2ef6f83prefer-string-raw: Ignore more places that requires a string (#2776)43bc429prefer-string-raw: Add support for template literals (#2691)52723a2prefer-global-this: AddnavigationtowindowSpecificAPIs(#2770)0c93998prefer-code-point: Report cases whereString.fromCharCodeis not called directly (#2766)1d682a1no-useless-spread: Safely remove empty array and object (#2764)7aeababFixes
consistent-function-scoping: Fix inconsistent behavior (#2748)a546444Configuration
📅 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.
b032a65c74tof82251bcb4f82251bcb4to38c5f8ff42chore(deps): update dependency eslint-plugin-unicorn to v65to chore(deps): update dependency eslint-plugin-unicorn to v65 - autoclosed