fix(deps): update dependency eslint-plugin-unicorn to v34 #40
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:
^29.0.0
->^34.0.0
Release Notes
sindresorhus/eslint-plugin-unicorn
v34.0.1
Compare Source
no-array-method-this-argument
: Fix false positives (#1386)d364d67
v34.0.0
Compare Source
New rules
no-array-method-this-argument
(#1357)96587f2
require-post-message-target-origin
(#1326)03c540b
prefer-top-level-await
(#1325)05722a1
prefer-at
(#1331)8ca5b46
Improvements
prefer-module
: Ignore.cjs
files (#1355)ebdc3c2
error-message
: SupportAggregateError
(#1351)e7b4300
filename-case
: Enforce lowercased file extension (#1336)119615b
expiring-todo-comments
: More helpful error when no conditions (#1375)914a996
prefer-array-some
andprefer-regexp-test
: Support Vue SFC (#1364)a46050e
explicit-length-check
: Supportv-show
directive (#1363)f163c4a
explicit-length-check
: Support Vue SFC files (#1360)9199611
prefer-type-error
: Improve report location (#1354)bc3d58b
no-useless-undefined
: IgnoreSet#add()
Map#set()
Array#{push,unshift}()
(#1353)c6359c3
prefer-prototype-methods
: Only check methods from[]
and{}
(#1347)29a4e75
prefer-array-some
: Report non-zero check onarray.filter().length
(#1337)f8aaac2
context.getPhysicalFilename()
(#1344)e2540cb
Fixes
prefer-array-find
andprefer-at
: Fix crash on LHS zero index access (#1373)da1f6d8
prefer-prototype-methods
: Fix a missing condition on object literal check (#1332)cec7f11
v33.0.1
Compare Source
prefer-prototype-methods
: Ignore known object literal methods (#1330)639e7af
v33.0.0
Compare Source
New rules
require-array-join-separator
(#1284)36e7103
require-number-to-fixed-digits-argument
(#1288)4a30863
prefer-prototype-methods
(#1247)7bde733
prefer-object-has-own
(#1322)ca34b40
recommended
preset.Improvements
no-array-for-each
: Handle only return statement insideif
orelse
(#1319)298a104
new-for-builtins
&no-new-buffer
: Handle line breaks afternew
keyword (#1301)d37439f
prefer-array-flat-map
: Remove check on[].concat(...array.map(…))
(#1299)128b5aa
prefer-spread
: Ignore{arrayBuffer,blob,buffer,file,this}.slice()
(#1287)e18d5f2
prefer-string-starts-ends-with
: Add suggestions for safely handling non-strings (#1277)f14a9d1
explicit-length-check
: Ignorethis.{size,length}
(#1289)ed85d00
prefer-string-starts-ends-with-rule
: Don't autofix known non-string values (#1281)a1c8984
explicit-length-check
: Ignore known, non-number length properties (#1264)42f6487
empty-brace-spaces
: Support experimental syntax (#1276)fa68b6f
prefer-dom-node-remove
: Improve parentheses handling (#1254)74e4d39
Fixes
prefer-array-flat
: Fix incorrect fix, checkArray.prototype.concat.call
(#1317)f6a939c
v32.0.1
Compare Source
prevent-abbreviations
: Fix shorthand import/export detection (#1252)4367479
v32.0.0
Compare Source
Breaking
a8e9f26
babel-eslint
(#1211)a8e9f26
You should migrate to
@babel/eslint-parser
New rules
no-document-cookie
(#1244)866c4a3
numeric-separators-style
- Was previously disabled.prefer-array-flat
- Was previously disabled.prefer-array-flat-map
- Was previously disabled.Improvements
no-for-loop
: Ignore known non-array loop variables (#1242)29f6b45
prefer-array-find
: Singularize variable name in autofix (#1243)6b340a3
prefer-switch
: Do not add braces to the default case (#1235)c241782
no-zero-fractions
: Handle numeric separators, fix missing parentheses, improve report location (#1238)2724afa
no-array-for-each
: Better error message (#1239)2e82dc8
prefer-switch
: Avoid conflict withno-unreachable
rule (#1234)1c78d0c
prefer-optional-catch-binding
: Support checking destructured errors (#1229)a0b2f4f
no-array-for-each
: Support autofixing complicated parameters (#1228)d84143f
prefer-negative-index
: SupportArray#at()
(#1217)6443ee3
explicit-length-check
: CheckSet#size
(#1226)6a745a0
filename-case
: Improve report position (#1227)3d4ac1b
Fixes
prevent-abbreviations
: Fix shorthand import/export detection (#1215)a669e31
v31.0.0
Compare Source
New rules
prefer-node-protocol
(#1203)b1a5f53
prefer-module
(#1141)a7e393c
v30.0.0
Compare Source
New rules
prefer-switch
(#1181)10e7a0c
Breaking
prevent-abbreviations
: Rename options (#1164)cf42cc5
no-keyword-prefix
: Renameblacklist
option todisallowedPrefixes
(#1180)91e60d0
Improvements
no-array-push-push
: Addignore
option (#1168)f9262d9
prefer-spread
: Reportarray.slice(0)
(#1182)92bebe1
no-useless-undefined
: Handle parenthesizedundefined
(#1178)c88882e
no-array-for-each
: Improve fixable parameter detection (#1177)18d1ac2
prefer-array-flat-map
: ExcludeReact.Children.map().flat()
(#1159)3e6b6fb
better-regex
: Report parsing errors (#1133)51ee030
filename-case
: Uniquify suggestion filenames (#1160)a87238f
PropertyDefinition
(#1127)75c4d78
Fixes
prefer-number-properties
: Fix some edge cases (#1170)e7e25b8
prefer-number-properties
: Fix some edge cases (part 2) (#1176)3a58802
prefer-regexp-test
: Do not fix if regexp hasg
flag (#1173)8d97beb
no-array-for-each
: Do not fix if callback parameter has type annotation (#1167)0d4fc8b
no-useless-undefined
: Do not reportreturn undefined
if function hasreturnType
(#1165)4ff39e0
prefer-set-has
: Use suggestions if node has type annotation (#1158)1221185
no-null
: Exclude second argument ofNode.insertBefore()
(#1157)b16c316
prefer-add-event-listener
: Fix crash on parenthesized cases (#1153)c95e854
MemberExpression
check when usingecmaVersion: 2019
(#1151)56d5d9a
prefer-regexp-test
: Do not fix if argument ofString#match()
is known notRegExp
(#1152)0abc394
Configuration
📅 Schedule: "before 3am on Monday" in timezone Asia/Tokyo.
🚦 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.