Skip to content

Commit

Permalink
chore(deps): update dependency eslint-plugin-unicorn to v48 (#244)
Browse files Browse the repository at this point in the history
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[eslint-plugin-unicorn](https://togithub.com/sindresorhus/eslint-plugin-unicorn)
| [`^46.0.0` ->
`^48.0.0`](https://renovatebot.com/diffs/npm/eslint-plugin-unicorn/46.0.1/48.0.1)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/eslint-plugin-unicorn/48.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/eslint-plugin-unicorn/48.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/eslint-plugin-unicorn/46.0.1/48.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/eslint-plugin-unicorn/46.0.1/48.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>sindresorhus/eslint-plugin-unicorn
(eslint-plugin-unicorn)</summary>

###
[`v48.0.1`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v48.0.1)

[Compare
Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v48.0.0...v48.0.1)

- `no-empty-file`: Fix directive check for TypeScript parser
([#&#8203;2180](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2180))
[`1bb9ce8`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/1bb9ce8)

###
[`v48.0.0`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v48.0.0)

[Compare
Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v47.0.0...v48.0.0)

##### Improvements

- Deprecate `no-unsafe-regex` rule
([#&#8203;2135](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2135))
[`7b473aa`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/7b473aa)
- `prefer-top-level-await`: Ignore promises inside
`Promise.{all,allSettled,any,race}()`
([#&#8203;2139](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2139))
[`d3f6b60`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/d3f6b60)
- `no-process-exit`: Ignore when using `node:worker_threads` module
([#&#8203;2136](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2136))
[`2907805`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/2907805)
- `prefer-array-some`: Ignore filter calls with literal argument
([#&#8203;2097](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2097))
[`7a32edb`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/7a32edb)
- `prefer-modern-math-api`: Check cases that `Math.hypot()` should be
preferred
([#&#8203;2080](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2080))
[`9bbc948`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/9bbc948)
- `explicit-length-check`: Ignore `.length || number`
([#&#8203;1977](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1977))
[`b9b8794`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/b9b8794)

##### Fixes

- Fix crash on array holes
([#&#8203;2129](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2129))
[`f10f1a6`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/f10f1a6)
- `prefer-dom-node-dataset`: Fix edge cases
([#&#8203;2171](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2171))
[`b2d7378`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/b2d7378)
- `prefer-dom-node-dataset`: Remove broken fix for
`element.setAttribute`
([#&#8203;2169](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2169))
[`61234af`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/61234af)
- `no-lonely-if`: Fix an edge case
([#&#8203;2168](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2168))
[`ca837a8`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/ca837a8)
- `no-useless-undefined`: Turn parameter with `undefined` default value
into optional parameter
([#&#8203;2138](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2138))
[`4aa7d60`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/4aa7d60)
- `no-thenable`: Fix `Object.fromEntries()` check
([#&#8203;2130](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2130))
[`f3265b9`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/f3265b9)
- `prefer-dom-node-remove`: Fix incorrect auto-fix
([#&#8203;2084](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2084))
[`74bb36d`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/74bb36d)

###
[`v47.0.0`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v47.0.0)

[Compare
Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v46.0.1...v47.0.0)

##### Breaking

- Require Node.js 16
([#&#8203;2073](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2073))
[`a3bc120`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/a3bc120)
- Require `eslint@>=8.38.0`
([#&#8203;2066](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2066))
[`04af765`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/04af765)
- Enable `prefer-at`, `prefer-event-target`, and
`prefer-string-replace-all` in recommended config
([#&#8203;2073](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2073))
[`a3bc120`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/a3bc120)

##### New rules

-
[`prefer-blob-reading-methods`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-blob-reading-methods.md)
([#&#8203;2065](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2065))
[`2bb1a04`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/2bb1a04)

##### Improvements

- `prefer-top-level-await`: Ignore `.cjs` files
([#&#8203;2072](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2072))
[`0c3ccb1`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/0c3ccb1)
- `prefer-spread`: Stop checking `Array.from` call with map function
([#&#8203;2064](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2064))
[`f5beccb`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/f5beccb)
- `prefer-dom-node-text-content`: Check optional chaining
([#&#8203;2062](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2062))
[`8d6d007`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/8d6d007)
- `prefer-dom-node-{append,remove}`: Check optional chaining
([#&#8203;2061](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2061))
[`443999b`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/443999b)

##### Fixes

- `prefer-number-properties`: Fix false positives
([#&#8203;2050](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2050))
[`124bfa7`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/124bfa7)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **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 [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/JoshuaKGoldberg/ts-api-utils).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi44LjExIiwidXBkYXRlZEluVmVyIjoiMzYuMjQuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

---------

Co-authored-by: Josh Goldberg <git@joshuakgoldberg.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] and JoshuaKGoldberg authored Aug 18, 2023
1 parent f039b2b commit 9157e31
Show file tree
Hide file tree
Showing 2 changed files with 127 additions and 136 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@typescript/vfs": "^1.5.0",
"@vitest/coverage-istanbul": "^0.34.0",
"cspell": "^7.0.0",
"eslint": "^8.32.0",
"eslint": "^8.47.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-deprecation": "^1.3.3",
"eslint-plugin-eslint-comments": "^3.2.0",
Expand All @@ -66,7 +66,7 @@
"eslint-plugin-regexp": "^1.12.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-typescript-sort-keys": "^2.1.0",
"eslint-plugin-unicorn": "^46.0.0",
"eslint-plugin-unicorn": "^48.0.0",
"eslint-plugin-vitest": "^0.2.0",
"http-serve": "^1.0.1",
"husky": "^8.0.3",
Expand Down
Loading

0 comments on commit 9157e31

Please sign in to comment.