Update dependency eslint-plugin-unicorn to v54 #129

Open
renovate wants to merge 1 commits from renovate/eslint-plugin-unicorn-54.x into master
Collaborator

This PR contains the following updates:

Package Type Update Change
eslint-plugin-unicorn devDependencies major 49.0.0 -> 54.0.0

Release Notes

sindresorhus/eslint-plugin-unicorn (eslint-plugin-unicorn)

v54.0.0

Compare Source

New rules
Breaking
Improvements
Fixes

v53.0.0

Compare Source

New rules
Breaking
Meta
Improvements
  • Support ESLint 9 (#​2250) 598f57b
  • no-array-method-this-argument: Check Array.fromAsync() (#​2330) 99489b9
  • prefer-number-properties: Add checkNaN option (#​2315) d30de50
  • template-indent: Support member expression paths in tags and functions (#​2346) aabcf1d
  • prefer-number-properties: Don't require by default for Infinity/-Infinity to be written as Number.POSITIVE_INFINITY/Number.NEGATIVE_INFINITY (#​2312) e0dfed2
  • escape-case: Ignore String.raw (#​2342) 45bd444
  • no-hex-escape: Ignore String.raw (#​2343) cc02a7f
  • prefer-dom-node-dataset: Ignore awaited getAttribute call (#​2334) 45f23d5
  • prevent-abbreviations: Support non-ASCII filenames (#​2308) 28762c8
  • throw-new-error: Check all call expressions instead of just argument of ThrowStatement (#​2332) 1626852

v52.0.0

Compare Source

New rules
Improvements
  • filename-case: Add option for multiple file extensions (#​2186) 4594020
  • import-style: Support node: protocol (#​2297) c28a086
  • prefer-array-find: Check array.filter().at(0) (#​2284) e6074fe
  • prefer-prototype-methods: Check Object.prototype methods from globalThis (#​2286) 1792d33
  • no-array-callback-reference: Check logical expressions and check ternaries deeply (#​2289) 231529a
Fixes

v51.0.1

Compare Source

  • prefer-node-protocol: Fix false positive on bun:* modules (#​2272) 43fc638

v51.0.0

Compare Source

Breaking
  • consistent-destructuring: Remove from recommended preset (#​2260) 702d51b
Improvements
Fixes

v50.0.1

Compare Source

Fixes
  • no-unnecessary-polyfills: Fix missing dependency error (#​2242) 3df1606

v50.0.0

Compare Source

New rules
Improvements
Fixes

Configuration

📅 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.


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

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) | devDependencies | major | [`49.0.0` -> `54.0.0`](https://renovatebot.com/diffs/npm/eslint-plugin-unicorn/49.0.0/54.0.0) | --- ### Release Notes <details> <summary>sindresorhus/eslint-plugin-unicorn (eslint-plugin-unicorn)</summary> ### [`v54.0.0`](https://github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v54.0.0) [Compare Source](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v53.0.0...v54.0.0) ##### New rules - [`no-negation-in-equality-check`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-negation-in-equality-check.md) ([#&#8203;2353](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2353)) [`8957a03`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/8957a03) ##### Breaking - `prefer-array-find`: Change [`checkFromLast`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-find.md#checkfromlast) default value to `true` ([#&#8203;2367](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2367)) [`a449af9`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/a449af9) ##### Improvements - Add name to flat configs ([#&#8203;2377](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2377)) [`ac8536e`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/ac8536e) - `prefer-array-some`: Check `Array#{findIndex,findLastIndex}()` ([#&#8203;2370](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2370)) [`10568ab`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/10568ab) - `prefer-includes`: Check `.lastIndexOf()` ([#&#8203;2368](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2368)) [`d812ad1`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/d812ad1) - `prefer-string-raw`: Ignore strings in Enums ([#&#8203;2354](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2354)) [`175ea04`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/175ea04) ##### Fixes - Fix edge cases when add `new` to calls ([#&#8203;2352](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2352)) [`d8f8161`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/d8f8161) ### [`v53.0.0`](https://github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v53.0.0) [Compare Source](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v52.0.0...v53.0.0) ##### New rules - [`consistent-empty-array-spread`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-empty-array-spread.md) ([#&#8203;2349](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2349)) [`8d7954c`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/8d7954c) - [`prefer-string-raw`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-string-raw.md) ([#&#8203;2339](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2339)) [`4f1400a`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/4f1400a) - [`no-invalid-fetch-options`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-invalid-fetch-options.md) ([#&#8203;2338](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2338)) [`342aafb`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/342aafb) - [`no-magic-array-flat-depth`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-magic-array-flat-depth.md) ([#&#8203;2335](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2335)) [`bc17428`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/bc17428) - [`prefer-structured-clone`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-structured-clone.md) ([#&#8203;2329](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2329)) [`497519e`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/497519e) ##### Breaking - Require Node.js 18.18 ([#&#8203;2250](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2250)) [`598f57b`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/598f57b) ##### Meta - You can now [sponsor @&#8203;fisker](https://github.com/sponsors/fisker) for his work on this project ([#&#8203;2348](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2348)) [`b82542d`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/b82542d) ##### Improvements - Support ESLint 9 ([#&#8203;2250](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2250)) [`598f57b`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/598f57b) - `no-array-method-this-argument`: Check `Array.fromAsync()` ([#&#8203;2330](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2330)) [`99489b9`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/99489b9) - `prefer-number-properties`: Add `checkNaN` option ([#&#8203;2315](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2315)) [`d30de50`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/d30de50) - `template-indent`: Support member expression paths in `tags` and `functions` ([#&#8203;2346](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2346)) [`aabcf1d`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/aabcf1d) - `prefer-number-properties`: Don't require by default for `Infinity`/`-Infinity` to be written as `Number.POSITIVE_INFINITY`/`Number.NEGATIVE_INFINITY` ([#&#8203;2312](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2312)) [`e0dfed2`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/e0dfed2) - `escape-case`: Ignore `String.raw` ([#&#8203;2342](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2342)) [`45bd444`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/45bd444) - `no-hex-escape`: Ignore `String.raw` ([#&#8203;2343](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2343)) [`cc02a7f`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/cc02a7f) - `prefer-dom-node-dataset`: Ignore `await`ed `getAttribute` call ([#&#8203;2334](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2334)) [`45f23d5`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/45f23d5) - `prevent-abbreviations`: Support non-ASCII filenames ([#&#8203;2308](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2308)) [`28762c8`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/28762c8) - `throw-new-error`: Check all call expressions instead of just argument of `ThrowStatement` ([#&#8203;2332](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2332)) [`1626852`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/1626852) ### [`v52.0.0`](https://github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v52.0.0) [Compare Source](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v51.0.1...v52.0.0) ##### New rules - [`no-single-promise-in-promise-methods`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-single-promise-in-promise-methods.md) ([#&#8203;2258](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2258)) [`8f0ee89`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/8f0ee89) - [`no-await-in-promise-methods`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-await-in-promise-methods.md) ([#&#8203;2259](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2259)) [`a3be554`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/a3be554) - [`no-anonymous-default-export`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-anonymous-default-export.md) ([#&#8203;2273](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2273)) [`c035216`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/c035216) ##### Improvements - `filename-case`: Add option for multiple file extensions ([#&#8203;2186](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2186)) [`4594020`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/4594020) - `import-style`: Support `node:` protocol ([#&#8203;2297](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2297)) [`c28a086`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/c28a086) - `prefer-array-find`: Check `array.filter().at(0)` ([#&#8203;2284](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2284)) [`e6074fe`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/e6074fe) - `prefer-prototype-methods`: Check `Object.prototype` methods from `globalThis` ([#&#8203;2286](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2286)) [`1792d33`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/1792d33) - `no-array-callback-reference`: Check logical expressions and check ternaries deeply ([#&#8203;2289](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2289)) [`231529a`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/231529a) ##### Fixes - `prefer-spread`: Fix it to not report on optional chaining ([#&#8203;2304](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2304)) [`df1ff1c`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/df1ff1c) - `no-anonymous-default-export`: Uppercase class name ([#&#8203;2282](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2282)) [`5ce4169`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/5ce4169) ### [`v51.0.1`](https://github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v51.0.1) [Compare Source](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v51.0.0...v51.0.1) - `prefer-node-protocol`: Fix false positive on `bun:*` modules ([#&#8203;2272](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2272)) [`43fc638`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/43fc638) ### [`v51.0.0`](https://github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v51.0.0) [Compare Source](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v50.0.1...v51.0.0) ##### Breaking - `consistent-destructuring`: Remove from `recommended` preset ([#&#8203;2260](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2260)) [`702d51b`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/702d51b) ##### Improvements - `no-array-method-this-argument`: Check `Array.from()` ([#&#8203;2262](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2262)) [`797caee`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/797caee) ##### Fixes - `no-thenable`: Fix crash on `{[Symbol.prototype]: 0}` ([#&#8203;2248](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2248)) [`3c7d7c0`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/3c7d7c0) - `prefer-prototype-methods`: Fix argument of `isMethodCall` ([#&#8203;2247](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2247)) [`3b504fa`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/3b504fa) ### [`v50.0.1`](https://github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v50.0.1) [Compare Source](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v50.0.0...v50.0.1) ##### Fixes - `no-unnecessary-polyfills`: Fix missing dependency error ([#&#8203;2242](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2242)) [`3df1606`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/3df16068) ### [`v50.0.0`](https://github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v50.0.0) [Compare Source](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v49.0.0...v50.0.0) ##### New rules - [`no-unnecessary-polyfills`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-polyfills.md) ([#&#8203;1717](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/1717)) [`6788d86`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/6788d86) ##### Improvements - Support ESLint's new config system ([#&#8203;1886](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/1886)) [`65711f9`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/65711f9) - `no-useless-undefined`: Add `checkArrowFunctionBody` option ([#&#8203;2232](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2232)) [`9d7048c`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/9d7048c) - `prefer-negative-index`: Check `TypedArray#subarray()` ([#&#8203;2237](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2237)) [`6708a30`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/6708a30) - `no-useless-undefined`: Ignore React state setters ([#&#8203;2223](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2223)) [`42881ba`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/42881ba) - `prefer-module`: Allow `module` as TSTypeParameter name ([#&#8203;2213](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2213)) [`8f61f7c`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/8f61f7c) ##### Fixes - `string-content`: Fix JSX autofix for newlines, etc. ([#&#8203;2222](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2222)) [`b95e75e`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/b95e75e) </details> --- ### Configuration 📅 **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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MDAuMCIsInVwZGF0ZWRJblZlciI6IjM3LjQwMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->
renovate added 1 commit 2024-06-14 16:04:42 +01:00
Update dependency eslint-plugin-unicorn to v54
Some checks failed
renovate/artifacts Artifact file update failure
62ec8a0efc
Author
Collaborator

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: package-lock.json
time="2024-06-14T15:04:39Z" level=error msg="error waiting for container: unexpected EOF"
docker: Error response from daemon: <html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
<hr><center>nginx</center>
</body>
</html>.

### ⚠️ Artifact update problem Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens: - any of the package files in this branch needs updating, or - the branch becomes conflicted, or - you click the rebase/retry checkbox if found above, or - you rename this PR's title to start with "rebase!" to trigger it manually The artifact failure details are included below: ##### File name: package-lock.json ``` time="2024-06-14T15:04:39Z" level=error msg="error waiting for container: unexpected EOF" docker: Error response from daemon: <html> <head><title>403 Forbidden</title></head> <body> <center><h1>403 Forbidden</h1></center> <hr><center>nginx</center> </body> </html>. ```
Some checks failed
renovate/artifacts Artifact file update failure
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/eslint-plugin-unicorn-54.x:renovate/eslint-plugin-unicorn-54.x
git checkout renovate/eslint-plugin-unicorn-54.x

Merge

Merge the changes and update on Gitea.
git checkout master
git merge --no-ff renovate/eslint-plugin-unicorn-54.x
git checkout master
git merge --ff-only renovate/eslint-plugin-unicorn-54.x
git checkout renovate/eslint-plugin-unicorn-54.x
git rebase master
git checkout master
git merge --no-ff renovate/eslint-plugin-unicorn-54.x
git checkout master
git merge --squash renovate/eslint-plugin-unicorn-54.x
git checkout master
git merge --ff-only renovate/eslint-plugin-unicorn-54.x
git checkout master
git merge renovate/eslint-plugin-unicorn-54.x
git push origin master
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: repos/website#129
No description provided.