Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency eslint-plugin-unicorn to v34 #1162

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 28, 2021

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
eslint-plugin-unicorn 18.0.1 -> 34.0.0 age adoption passing confidence

Release Notes

sindresorhus/eslint-plugin-unicorn

v34.0.0

Compare Source

New rules
Improvements
Fixes
  • prefer-array-find and prefer-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
Improvements
  • no-array-for-each: Handle only return statement inside if or else (#​1319) 298a104
  • new-for-builtins & no-new-buffer: Handle line breaks after new 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: Ignore this.{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, check Array.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
New rules
Improvements
Fixes
  • prevent-abbreviations: Fix shorthand import/export detection (#​1215) a669e31

v31.0.0

Compare Source

New rules

v30.0.0

Compare Source

New rules
Breaking
Improvements
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 has g flag (#​1173) 8d97beb
  • no-array-for-each: Do not fix if callback parameter has type annotation (#​1167) 0d4fc8b
  • no-useless-undefined: Do not report return undefined if function has returnType (#​1165) 4ff39e0
  • prefer-set-has: Use suggestions if node has type annotation (#​1158) 1221185
  • no-null: Exclude second argument of Node.insertBefore() (#​1157) b16c316
  • prefer-add-event-listener: Fix crash on parenthesized cases (#​1153) c95e854
  • Fix optional MemberExpression check when using ecmaVersion: 2019 (#​1151) 56d5d9a
  • prefer-regexp-test: Do not fix if argument of String#match() is known not RegExp (#​1152) 0abc394

v29.0.0

Compare Source

New rules
Improvements
  • no-array-for-each: Use let if parameters are reassigned (#​1139) a13ad3c
  • no-array-push-push and prefer-ternary: Improve same reference detection (#​1123) c2c28a6
  • prefer-spread: Add Array#slice() check (#​1117) 8bdb52d

v28.0.2

Compare Source

v28.0.1

Compare Source

v28.0.0

Compare Source

Improvements
Fixes
  • no-unreadable-array-destructuring: Fix crash on destructuring in for…of loop (#​1076) 11ce1bc
  • no-array-for-each: Ignore React.Children.forEach (#​1088) 5a931dd
  • prefer-string-slice: Keep optional chaining in autofix (#​1085) acaf197
  • prefer-spread: Ignore Buffer.concat() (#​1069) da685f7
  • Ignore unexpected case in catch-error-name and prefer-set-has (#​1077) 79a64b1
  • prefer-default-parameters: Fix non-iterable visitorKeys (#​1013) d707e83
  • consistent-destructuring: Add ExperimentalRestProperty check (#​1060) aca2ec5

v27.0.0

Compare Source

New rules
Improvements
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 for x | 0 (#​1014) 74b1b2d

v26.0.0

Compare Source

New rules
Improvements
  • Remove import-index rule from recommended preset (#​977) ff1cd2e
  • prefer-string-starts-ends-with: Remove check on String#match() (#​1002) c9fa8b1
  • no-array-callback-reference: Ignore AwaitExpression except reduce and reduceRight (#​814) 4c2b00b
Fixes
  • prefer-string-starts-ends-with: Fix missing parentheses for some cases (#​976) e2f94fe
  • Don't consider ?? operator LogicExpression as a boolean value node (#​986) dc7f79b

v25.0.1

Compare Source

v25.0.0

Compare Source

New rules
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-iteratorno-array-callback-reference
  • no-array-instanceofno-instanceof-array
  • no-reduceno-array-reduce
  • prefer-datasetprefer-dom-node-dataset
  • prefer-flat-mapprefer-array-flat-map
  • prefer-replace-allprefer-string-replace-all
  • prefer-starts-ends-withprefer-string-starts-ends-with
  • prefer-text-contentprefer-dom-node-text-content
  • prefer-trim-start-endprefer-string-trim-start-end
  • prefer-event-keyprefer-keyboard-event-key
  • prefer-node-appendprefer-dom-node-append
  • prefer-node-removeprefer-dom-node-remove

20c6341

Improvements

v24.0.0

Compare Source

New rules
Improvements
Fixes
  • Fix false import styles seen in reported problem messages (#​910) d669707
  • import-style: Fix crash on babel-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 for new String, new Boolean(), and new Number() (#​907) dfc1ce0

v23.0.0

Compare Source

New rules
Improvements
  • explicit-length-check: Use 'non-zero': 'greater-than' by default (#​850) 7c5df5f
  • prevent-abbreviations: Add fn/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
  • Track JSX presence per-function, fixing some false negatives (#​830) 85d424c
Fixes
  • prefer-flat-map: Exclude .flat() where depth is not 1 (#​859) 61d9851

v22.0.0

Compare Source

New rules
Improvements
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

v21.0.0

Compare Source

New rules
Improvements
  • Add ev to event default replacement to prevent-abbreviations rule (#​793) a0b4aba
  • Ignore more types in no-fn-reference-in-iterator and no-reduce rule (#​756) 5159c24
  • Make unicorn/prefer-flat-map not enabled by default in the recommended config 655220a
  • Improve consistent-function-scoping report location (#​778) df218a2
  • Improve consistent-function-scoping message (#​773) 4ed2adf
Fixes
  • consistent-function-scoping: Fix wrong detect of IIFE (#​772) f7127da
  • prefer-starts-ends-with: Fix pipe in regex (#​783) 1dca2f3
  • prevent-abbreviations: Fix optional parameter (#​764) 7781c3f
  • no-useless-undefined: Ignore undefined use in compare functions (#​758) 6d36407

v20.1.0

Compare Source

  • Use singular array element variable name in autofix for no-for-loop rule (#​745) 2002093
  • Avoid naming collision with default array element variable in autofix for no-for-loop rule (#​749) 48bd5c8

v20.0.0

Compare Source

Breaking
New rules
Improvements
Fixes

v19.0.1

Compare Source

  • no-fn-reference-in-iterator: Ignore this. and Vue.filter (#​699) b02a9c6
  • no-fn-reference-in-iterator: Ignore cases obviously not a function reference (#​697) dae5107

v19.0.0

Compare Source

New rules
Breaking
Improvements
Fixes

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled due to failing status checks.

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.


  • If you want to rebase/retry this PR, check this box.

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/eslint-plugin-unicorn-34.x branch 5 times, most recently from 81b4b2e to e615185 Compare June 29, 2021 15:25
@renovate renovate bot force-pushed the renovate/eslint-plugin-unicorn-34.x branch from e615185 to 3928c4e Compare June 29, 2021 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant