chore(deps): update dependency eslint-plugin-unicorn to v49 - abandoned#42
Open
danielhammerl wants to merge 1 commit into
Open
chore(deps): update dependency eslint-plugin-unicorn to v49 - abandoned#42danielhammerl wants to merge 1 commit into
danielhammerl wants to merge 1 commit into
Conversation
Member
Author
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. ⚠ Warning: custom changes will be lost. |
Member
Author
Autoclosing SkippedThis PR has been flagged for autoclosing. However, it is being skipped due to the branch being already modified. Please close/delete it manually or report a bug if you think this is in error. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
^40.0.0->^49.0.0Release Notes
sindresorhus/eslint-plugin-unicorn (eslint-plugin-unicorn)
v49.0.0Compare Source
Improvements
expiring-todo-comments: Support monorepos (#2159)ac51d40prefer-module: Allowmoduleas TSIndexSignature names or TSTypeAliasDeclaration ids (#2209)ea94b3bvflag (#2195)28e7498prefer-event-target: IgnoreEventEmitterfrom@angular/coreandeventemitter3(#2197)1629ebev48.0.1Compare Source
no-empty-file: Fix directive check for TypeScript parser (#2180)1bb9ce8v48.0.0Compare Source
Improvements
no-unsafe-regexrule (#2135)7b473aaprefer-top-level-await: Ignore promises insidePromise.{all,allSettled,any,race}()(#2139)d3f6b60no-process-exit: Ignore when usingnode:worker_threadsmodule (#2136)2907805prefer-array-some: Ignore filter calls with literal argument (#2097)7a32edbprefer-modern-math-api: Check cases thatMath.hypot()should be preferred (#2080)9bbc948explicit-length-check: Ignore.length || number(#1977)b9b8794Fixes
f10f1a6prefer-dom-node-dataset: Fix edge cases (#2171)b2d7378prefer-dom-node-dataset: Remove broken fix forelement.setAttribute(#2169)61234afno-lonely-if: Fix an edge case (#2168)ca837a8no-useless-undefined: Turn parameter withundefineddefault value into optional parameter (#2138)4aa7d60no-thenable: FixObject.fromEntries()check (#2130)f3265b9prefer-dom-node-remove: Fix incorrect auto-fix (#2084)74bb36dv47.0.0Compare Source
Breaking
a3bc120eslint@>=8.38.0(#2066)04af765prefer-at,prefer-event-target, andprefer-string-replace-allin recommended config (#2073)a3bc120New rules
prefer-blob-reading-methods(#2065)2bb1a04Improvements
prefer-top-level-await: Ignore.cjsfiles (#2072)0c3ccb1prefer-spread: Stop checkingArray.fromcall with map function (#2064)f5beccbprefer-dom-node-text-content: Check optional chaining (#2062)8d6d007prefer-dom-node-{append,remove}: Check optional chaining (#2061)443999bFixes
prefer-number-properties: Fix false positives (#2050)124bfa7v46.0.1Compare Source
expiring-todo-comments(#2077)7a6861av46.0.0Compare Source
Improvements
elemsto abbreviations (#2040)2a9c840no-useless-spread: CheckArray#{toReversed,toSorted,toSpliced,with}(#2030)55469e5prefer-set-has: SupportArray#{toReversed,toSorted,toSpliced,with}(#2032)fea5b42prefer-spread: Forbid use ofArray#toSpliced()to copy array (#2034)4ada50eprefer-negative-index: Check.toSpliced()and.with()(#2031)7ed738ano-empty-file: Support.jsxand.tsxextensions (#2002)ba1a00eFixes
expiring-todo-comments: Do not normalize package.json (#1871) (#2020)fcd8934v45.0.2Compare Source
prefer-string-replace-all: Don't crash on invalid pattern (#2011)3bbe027prevent-abbreviations: Skip fix for variables used in Vue template (#2012)8cd1dedv45.0.1Compare Source
no-useless-spread: Remove unsafe fix (#1996)6756cbdv45.0.0Compare Source
New rules
no-typeof-undefined(#1966)d7f7341no-negated-condition(#1963)e4aaa42prefer-set-size(#1952)5f23c98Improvements
prefer-at: Support private fields (#1929)60bb455no-useless-undefined: IgnoreArray#includes()andSet#has()(#1951)8dfd5a7no-useless-spread: Check cloning inline arrays (#1980)5d90d73prefer-top-level-await: Ignore expressions in class (#1976)b90a3aaprefer-string-replace-all: Improve RegExp to string fix (#1971)b844dbcprefer-string-replace-all: Check pattern even if it's already using.replaceAll(#1981)e8c5156prefer-string-replace-all: Report allString#replace()when the pattern hasgflag (#1965)6316f05prefer-string-replace-all: Ignore regex with pipe (#1962)76deaa3prefer-regexp-test: Use suggestions if not sure regexp withoutgflag (#1954)505a203no-array-for-each: Skip fix for some edge cases (#1979)48efc7aprefer-add-event-listener: Only fixExpressionStatement, checkoperator(#1955)aca21f2prevent-abbreviations: Improve fix forretVal(#1953)25cd810Fixes
prefer-top-level-await: Fix crash onfor..ofloop (#1950)00a29c8v44.0.2Compare Source
no-array-method-this-argument: Ignorelodash.findLastandlodash.findLastIndex(#1927)86e8addv44.0.1Compare Source
prefer-array-index-of: Add missing message (#1924)a981a13v44.0.0Compare Source
New rules
no-unnecessary-await(#1904)412fc6fswitch-case-braces(#1902)690ed8cImprovements
prefer-array-find: Add option to also prefer.findLast()(#1900)02252c7template-indent: Preserve trailing spaces (#1872)e4071f5no-document-cookie: Checkwindow.document.cookie(#1833)0886544prefer-array-index-of: Prefer.lastIndexOf()over.findLastIndex()(#1896)70e5bddprefer-array-some: Check.findLast()(#1897)3e6ae43prefer-native-coercion-functions: Check.findLastand.findLastIndex(#1893)f2c6accno-array-method-this-argument: Check.findLastand.findLastIndex(#1890)3bc28adno-array-callback-reference: Check.findLastand.findLastIndex(#1889)37a5cdaprefer-negative-index: RemoveArrayBuffer#at(#1899)a10e3f6prefer-at: Improve fix (#1901)1c457bbFixes
no-await-expression-member: Fix crash on TypeScript parser (#1910)b002e75prevent-abbreviations: Skip fix when variable is JSX component (#1907)9ed08abbetter-regexp: Don't fix if.sourceor.toString()is used (#1903)8ad592bv43.0.2Compare Source
prefer-spread: IgnoreArray#join().concat()and(a + b).concat()(#1859)ab71971v43.0.1Compare Source
prefer-event-targetfrom the recommended preset4d2faacEventTargetrequires Node.js 16 and we target Node.js 14. We'll enable it again in a year when we can target Node.js 16.v43.0.0Compare Source
New rules
prefer-logical-operator-over-ternary(#1830)5d7e622prefer-event-target(#1792)166524aBreaking
Improvements
prefer-top-level-awaitrule to recommended preset (#1803)6f5ecf5import-indexrule (#1787)0034e694b96057text-encoding-identifier-case: Ignore JSXmeta[charset="utf-8"](#1817)c67a70fprefer-number-properties: Check any use of global functions (#1834)51d7e06prefer-number-properties: Detect usage via global object (#1832)80c4af2no-array-for-each: Check reassign infor..inandfor..of(#1824)d3b2548no-useless-undefined: Ignoreref(undefined)in Vue project (#1828)e7306e5prefer-node-protocol: Always checkrequire()(#1827)2c914d4no-array-for-each: Improve parameter reassign detection (#1823)56df468no-array-for-each: Add fix for arrow function body (#1785)59218e3Fixes
no-array-for-each: Fix auto-fix causing SyntaxError (#1813)47c8337v42.0.0Compare Source
The project has passed 100 lint rules 🎉
Thanks to everyone that has contributed so far.
And special thanks to our team member @fisker for doing most of the work on this project. We could not have gotten this far without him.
New rules
no-useless-switch-case(#1779)a8fb966prefer-modern-math-apis(#1780)6dfdeb0no-unreadable-iife(#1765)ce8a4b7prefer-native-coercion-functions(#1767)51166f4Improvements
template-indent: Set the ruleerrorinstead ofwarninrecommendedpreset (#1781)09923afprefer-json-parse-buffer: Remove fromrecommendedpreset (#1750)93f49f2no-array-for-each: Add fixer for parenthesized call (#1784)5f39c37no-array-for-each: Handle optional chaining (#1753)1d32db4prefer-object-from-entries: Stop checking unknown cases (#1771)309771dprefer-string-trim-start-end: Check optional chaining (#1768)1920597no-useless-undefined: Ignore arguments inFunction#bind()(#1762)c501243prefer-ternary: Skip fix if there are comments (#1763)3013565text-encoding-identifier-case: Auto-fix encoding infs.{readFile,readFileSync}()(#1755)5e1c932distanddstabbreviations (#1756)dffcea8Fixes
no-array-for-each: HandleChainExpressioncorrectly (#1772)e615a37v41.0.1Compare Source
relative-url-style: Improve fix (#1748)f406795v41.0.0Compare Source
New rules
text-encoding-identifier-case(#1718)4370602Breaking
608a90cFixes
prefer-export-from: Fix TypeScript compatibility (#1728)f14aa95prefer-at: Remove auto-fix forarguments(#1705)bba518ev40.1.0Compare Source
expiring-todo-comments: Adddateoption (#1683)16bc33aconsistent-function-scoping: AllowReact.useHook(#1691)e910633no-useless-undefined: AllowReact.createContext(undefined)(#1688)40bc603Configuration
📅 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 has been generated by Renovate Bot.