prettierx: Update eslint-plugin-unicorn -> 29.0.0 - devDependency #510
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:
21.0.0
->29.0.0
Release Notes
sindresorhus/eslint-plugin-unicorn
v29.0.0
Compare Source
New rules
no-static-only-class
(#1120)f3b2441
prefer-array-flat
(#1126)2397d94
Improvements
no-array-for-each
: Uselet
if parameters are reassigned (#1139)a13ad3c
no-array-push-push
andprefer-ternary
: Improve same reference detection (#1123)c2c28a6
prefer-spread
: AddArray#slice()
check (#1117)8bdb52d
v28.0.2
Compare Source
prevent-abbreviations
: Do not rename exported types when using @babel/eslint-parser (#1104)9a91a3d
prevent-abbreviations
: Do not rename exported TypeScript types (#1103)5c08932
v28.0.1
Compare Source
eslint-visitor-keys
dependency (#1100)5c1ff2e
v28.0.0
Compare Source
Improvements
no-lonely-if
: Keep all comments (#1047)da94ca9
prefer-includes
: AddArray#some()
check (#1097)ee3a2e5
prefer-includes
: Improve report location (#1061)83575a8
prefer-spread
: Improve auto-fix (#1080)e54dc66
prefer-spread
: Add more suggestions for.concat
fix (#1054)673c440
Fixes
no-unreadable-array-destructuring
: Fix crash on destructuring infor…of
loop (#1076)11ce1bc
no-array-for-each
: IgnoreReact.Children.forEach
(#1088)5a931dd
prefer-string-slice
: Keep optional chaining in autofix (#1085)acaf197
prefer-spread
: IgnoreBuffer.concat()
(#1069)da685f7
catch-error-name
andprefer-set-has
(#1077)79a64b1
prefer-default-parameters
: Fix non-iterablevisitorKeys
(#1013)d707e83
consistent-destructuring
: AddExperimentalRestProperty
check (#1060)aca2ec5
v27.0.0
Compare Source
New rules
no-array-for-each
(#1017)719cd00
no-array-push-push
(#1015)21537d7
no-this-assignment
(#1018)62a2f92
Improvements
prefer-ternary
: Addonly-single-line
option (#1025)306c9e7
numeric-separators-style
: AddonlyIfContainsSeparator
option (#916)8d32574
prefer-spread
: Prefer...
overArray#concat()
(#1029)cda72bd
prefer-spread
: Fix more.concat
cases (#1042)c3c7ba3
no-array-callback-reference
: Improve suggestions forArray#forEach()
(#1049)77bcdc6
no-new-buffer
: Use suggestion for unknown arguments (#1037)88a724c
no-unreadable-array-destructuring
: Add auto-fix (#1010)27bc3c3
new-for-builtins
: Better auto-fix (#1022)5ba0f83
no-instanceof-array
: Better auto-fix (#1020)0520f31
Fixes
prefer-query-selector
: Fix crash on unexpected selector (#1034)88018ca
v26.0.1
Compare Source
prefer-math-trunc
: Use suggestion instead of auto-fix forx | 0
(#1014)74b1b2d
v26.0.0
Compare Source
New rules
no-new-array
(#992)48390c1
prefer-array-index-of
(#920)517a782
prefer-regexp-test
(#970)7b74b40
consistent-destructuring
(#325)32bd31c
Improvements
import-index
rule from recommended preset (#977)ff1cd2e
prefer-string-starts-ends-with
: Remove check onString#match()
(#1002)c9fa8b1
no-array-callback-reference
: IgnoreAwaitExpression
exceptreduce
andreduceRight
(#814)4c2b00b
Fixes
prefer-string-starts-ends-with
: Fix missing parentheses for some cases (#976)e2f94fe
??
operator LogicExpression as aboolean
value node (#986)dc7f79b
v25.0.1
Compare Source
9921acc
v25.0.0
Compare Source
New rules
prefer-array-some
(#887)b6a5a50
prefer-default-parameters
(#632)8015768
Renamed rules
We improved the naming and name consistency of some rules. Sorry about the churn.
If you use the recommended preset and you're not overriding any rules, you don't need to do anything.
no-fn-reference-in-iterator
→no-array-callback-reference
no-array-instanceof
→no-instanceof-array
no-reduce
→no-array-reduce
prefer-dataset
→prefer-dom-node-dataset
prefer-flat-map
→prefer-array-flat-map
prefer-replace-all
→prefer-string-replace-all
prefer-starts-ends-with
→prefer-string-starts-ends-with
prefer-text-content
→prefer-dom-node-text-content
prefer-trim-start-end
→prefer-string-trim-start-end
prefer-event-key
→prefer-keyboard-event-key
prefer-node-append
→prefer-dom-node-append
prefer-node-remove
→prefer-dom-node-remove
20c6341
Improvements
explicit-length-check
: Make rule work in many more cases (#943)f3bc798
explicit-length-check
: Check unsafeLogicalExpression
s (#952)a1b60ad
explicit-length-check
: CheckBoolean(foo.length)
(#951)f4577f7
explicit-length-check
: Check more cases (#941)83a6453
new-for-builtins
: IgnoreObject(x) === x
andObject(x) !== x
(#944)5c7ea92
explicit-length-check
: Rewrite rule (#938)94ae87a
v24.0.0
Compare Source
New rules
no-lonely-if
(#936)485dbf9
empty-brace-spaces
(#933)c137daa
prefer-date-now
(#935)d0c4826
Improvements
prevent-abbreviations
: Addignore
option (#891)898fcb4
no-useless-undefined
: AddcheckArguments
option (#877)a1617b9
consistent-function-scoping
: Allow ignoring arrow functions (#932)17bf27c
error-message
rule (#922)877bef9
prefer-query-selector
rule (#908)635601d
prevent-abbreviations
: Addvar
/vars
replacements (#894)07dadf5
prevent-abbreviations
: Addver
→version
replacement (#870)e755cdd
prefer-number-properties
: Supportcomputed
key ofClassProperty
MethodDefinition
Property
(#886)769ac35
prefer-optional-catch-binding
: Improve output (#884)375d11a
no-null
: ExcludeuseRef(null)
andReact.useRef(null)
(#890)7a4dbf4
prefer-number-properties
: AddInfinity
support (#874)643169b
no-console-spaces
: Improve report location (#866)190cbac
no-useless-undefined
: IgnoretoHaveBeenCalledWith
method (#876)d10a641
prefer-replace-all
: Handleu
flag (#879)d98d867
no-for-loop
: Improve output when using the TypeScript parser (#883)52edd3b
no-for-loop
: Respect declaration kind (#878)df3f7bd
no-for-loop
: Only report on the for loop head part (#885)e9c6963
Fixes
false
import styles seen in reported problem messages (#910)d669707
import-style
: Fix crash onbabel-eslint
parser (#927)9f5f721
prevent-abbreviations
: Fix crash with TypeScript parser (#913)9d5eca6
prefer-query-selector
: Fix crash on calling without argument (#906)36908da
import-style
: Fix crash on destructing require (#904)8335d41
new-for-builtins
: Remove auto-fix fornew String
,new Boolean()
, andnew Number()
(#907)dfc1ce0
v23.0.0
Compare Source
New rules
prefer-math-trunc
rule (#851)5ee2432
numeric-separators-style
rule (#833)6c9b531
prefer-ternary
rule (#514)d59cf95
Improvements
explicit-length-check
: Use'non-zero': 'greater-than'
by default (#850)7c5df5f
prevent-abbreviations
: Addfn
/func
->function
,i
/idx
/j
->index
replacements (#836)e502f42
consistent-function-scoping
: Check anonymous functions (#835)29ecbf6
no-console-spaces
: Make space position more specific (#838)e17a63f
no-nested-ternary
: Improve report location & message (#844)ca1afa6
85d424c
Fixes
prefer-flat-map
: Exclude.flat()
where depth is not1
(#859)61d9851
v22.0.0
Compare Source
New rules
import-style
rule (#789)0c7a199
Improvements
Children
inno-fn-reference-in-iterator
(#809)036e440
filename-case
: Ignore more index files (#826)64d03a5
ecmaVersion
to2021
(#820)a78cea3
Fixes
prefer-trim-start-end
: Fix error message, improve report location (#823)b35c261
number-literal-case
: Fix false positive on@typescript-eslint/parser
(#815)33a1268
no-unused-properties
: Fix error thrown when using rest in object destructuring (#811)1475f39
Configuration
📅 Schedule: 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 WhiteSource Renovate. View repository job log here.