⬆️ Updates eslint-plugin-unicorn to v47 - autoclosed #1030
Closed
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:
^42.0.0
->^47.0.0
Release Notes
sindresorhus/eslint-plugin-unicorn
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
v45.0.2
Compare Source
prefer-string-replace-all
: Don't crash on invalid pattern (#2011)3bbe027
prevent-abbreviations
: Skip fix for variables used in Vue template (#2012)8cd1ded
v45.0.1
Compare Source
no-useless-spread
: Remove unsafe fix (#1996)6756cbd
v45.0.0
Compare Source
New rules
no-typeof-undefined
(#1966)d7f7341
no-negated-condition
(#1963)e4aaa42
prefer-set-size
(#1952)5f23c98
Improvements
prefer-at
: Support private fields (#1929)60bb455
no-useless-undefined
: IgnoreArray#includes()
andSet#has()
(#1951)8dfd5a7
no-useless-spread
: Check cloning inline arrays (#1980)5d90d73
prefer-top-level-await
: Ignore expressions in class (#1976)b90a3aa
prefer-string-replace-all
: Improve RegExp to string fix (#1971)b844dbc
prefer-string-replace-all
: Check pattern even if it's already using.replaceAll
(#1981)e8c5156
prefer-string-replace-all
: Report allString#replace()
when the pattern hasg
flag (#1965)6316f05
prefer-string-replace-all
: Ignore regex with pipe (#1962)76deaa3
prefer-regexp-test
: Use suggestions if not sure regexp withoutg
flag (#1954)505a203
no-array-for-each
: Skip fix for some edge cases (#1979)48efc7a
prefer-add-event-listener
: Only fixExpressionStatement
, checkoperator
(#1955)aca21f2
prevent-abbreviations
: Improve fix forretVal
(#1953)25cd810
Fixes
prefer-top-level-await
: Fix crash onfor..of
loop (#1950)00a29c8
v44.0.2
Compare Source
no-array-method-this-argument
: Ignorelodash.findLast
andlodash.findLastIndex
(#1927)86e8add
v44.0.1
Compare Source
prefer-array-index-of
: Add missing message (#1924)a981a13
v44.0.0
Compare Source
New rules
no-unnecessary-await
(#1904)412fc6f
switch-case-braces
(#1902)690ed8c
Improvements
prefer-array-find
: Add option to also prefer.findLast()
(#1900)02252c7
template-indent
: Preserve trailing spaces (#1872)e4071f5
no-document-cookie
: Checkwindow.document.cookie
(#1833)0886544
prefer-array-index-of
: Prefer.lastIndexOf()
over.findLastIndex()
(#1896)70e5bdd
prefer-array-some
: Check.findLast()
(#1897)3e6ae43
prefer-native-coercion-functions
: Check.findLast
and.findLastIndex
(#1893)f2c6acc
no-array-method-this-argument
: Check.findLast
and.findLastIndex
(#1890)3bc28ad
no-array-callback-reference
: Check.findLast
and.findLastIndex
(#1889)37a5cda
prefer-negative-index
: RemoveArrayBuffer#at
(#1899)a10e3f6
prefer-at
: Improve fix (#1901)1c457bb
Fixes
no-await-expression-member
: Fix crash on TypeScript parser (#1910)b002e75
prevent-abbreviations
: Skip fix when variable is JSX component (#1907)9ed08ab
better-regexp
: Don't fix if.source
or.toString()
is used (#1903)8ad592b
v43.0.2
Compare Source
prefer-spread
: IgnoreArray#join().concat()
and(a + b).concat()
(#1859)ab71971
v43.0.1
Compare Source
prefer-event-target
from the recommended preset4d2faac
EventTarget
requires 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.0
Compare Source
New rules
prefer-logical-operator-over-ternary
(#1830)5d7e622
prefer-event-target
(#1792)166524a
Breaking
Improvements
prefer-top-level-await
rule to recommended preset (#1803)6f5ecf5
import-index
rule (#1787)0034e69
4b96057
text-encoding-identifier-case
: Ignore JSXmeta[charset="utf-8"]
(#1817)c67a70f
prefer-number-properties
: Check any use of global functions (#1834)51d7e06
prefer-number-properties
: Detect usage via global object (#1832)80c4af2
no-array-for-each
: Check reassign infor..in
andfor..of
(#1824)d3b2548
no-useless-undefined
: Ignoreref(undefined)
in Vue project (#1828)e7306e5
prefer-node-protocol
: Always checkrequire()
(#1827)2c914d4
no-array-for-each
: Improve parameter reassign detection (#1823)56df468
no-array-for-each
: Add fix for arrow function body (#1785)59218e3
Fixes
no-array-for-each
: Fix auto-fix causing SyntaxError (#1813)47c8337
Configuration
📅 Schedule: Branch creation - "after 10pm every weekday,before 5am every weekday,every weekend" in timezone Europe/Moscow, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ 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 has been generated by Mend Renovate. View repository job log here.