Skip to content

Commit

Permalink
Auto merge of #4684 - rust-lang:renovate/eslint-plugin-unicorn-42.x, …
Browse files Browse the repository at this point in the history
…r=Turbo87

Update dependency eslint-plugin-unicorn to v42

[![WhiteSource 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) | [`41.0.1` -> `42.0.0`](https://renovatebot.com/diffs/npm/eslint-plugin-unicorn/41.0.1/42.0.0) | [![age](https://badges.renovateapi.com/packages/npm/eslint-plugin-unicorn/42.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/eslint-plugin-unicorn/42.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/eslint-plugin-unicorn/42.0.0/compatibility-slim/41.0.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/eslint-plugin-unicorn/42.0.0/confidence-slim/41.0.1)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

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

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

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

##### The project has passed 100 lint rules 🎉

Thanks to everyone that has contributed so far.

And special thanks to our team member [`@&#8203;fisker](https://togithub.com/fisker)` for doing most of the work on this project. We could not have gotten this far without him.

##### New rules

-   [`no-useless-switch-case`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-switch-case.md) ([#&#8203;1779](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1779))  [`a8fb966`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/a8fb966)
-   [`prefer-modern-math-apis`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-modern-math-apis.md) ([#&#8203;1780](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1780))  [`6dfdeb0`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/6dfdeb0)
-   [`no-unreadable-iife`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unreadable-iife.md) ([#&#8203;1765](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1765))  [`ce8a4b7`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/ce8a4b7)
-   [`prefer-native-coercion-functions`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-native-coercion-functions.md) ([#&#8203;1767](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1767))  [`51166f4`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/51166f4)

##### Improvements

-   `template-indent`: Set the rule `error` instead of `warn` in `recommended` preset ([#&#8203;1781](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1781))  [`09923af`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/09923af)
-   `prefer-json-parse-buffer`: Remove from `recommended` preset ([#&#8203;1750](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1750))  [`93f49f2`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/93f49f2)
-   `no-array-for-each`: Add fixer for parenthesized call ([#&#8203;1784](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1784))  [`5f39c37`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/5f39c37)
-   `no-array-for-each`: Handle optional chaining ([#&#8203;1753](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1753))  [`1d32db4`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/1d32db4)
-   `prefer-object-from-entries`: Stop checking unknown cases ([#&#8203;1771](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1771))  [`309771d`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/309771d)
-   `prefer-string-trim-start-end`: Check optional chaining ([#&#8203;1768](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1768))  [`1920597`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/1920597)
-   `no-useless-undefined`: Ignore arguments in `Function#bind()` ([#&#8203;1762](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1762))  [`c501243`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/c501243)
-   `prefer-ternary`: Skip fix if there are comments ([#&#8203;1763](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1763))  [`3013565`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/3013565)
-   `text-encoding-identifier-case`: Auto-fix encoding in `fs.{readFile,readFileSync}()` ([#&#8203;1755](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1755))  [`5e1c932`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/5e1c932)
-   Add `dist` and `dst` abbreviations ([#&#8203;1756](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1756))  [`dffcea8`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/dffcea8)

##### Fixes

-   `no-array-for-each`: Handle `ChainExpression` correctly ([#&#8203;1772](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1772))  [`e615a37`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/e615a37)

</details>

---

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

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/rust-lang/crates.io).
  • Loading branch information
bors committed Apr 3, 2022
2 parents 353638c + 11aad9a commit c1de105
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
"eslint-plugin-import-helpers": "1.2.1",
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-qunit-dom": "0.2.0",
"eslint-plugin-unicorn": "41.0.1",
"eslint-plugin-unicorn": "42.0.0",
"loader.js": "4.7.0",
"match-json": "1.3.4",
"miragejs": "0.1.43",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7223,10 +7223,10 @@ [email protected]:
resolved "https://registry.yarnpkg.com/eslint-plugin-qunit-dom/-/eslint-plugin-qunit-dom-0.2.0.tgz#681ea7fbce81d8548b6cc68dc17448e1a4d38d87"
integrity sha512-uqqkzj3k5ee36XOkr6Y9DfTC/6uXq/aWuuo14o79Bky+SmQy3NzK+Vee7UBICDEHhi7SDsFPxdsBFm9cjNAuvg==

eslint-plugin-unicorn@41.0.1:
version "41.0.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-unicorn/-/eslint-plugin-unicorn-41.0.1.tgz#b49205b38e71e227d21fb5776f8d078a1dc637ca"
integrity sha512-gF5vo2dIj0YdNMQ/IMegiBkQdQ22GBFFVpdkJP+0og3w7XD4ypea0xQVRv6iofkLVR2w0phAdikcnU01ybd4Ow==
eslint-plugin-unicorn@42.0.0:
version "42.0.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-unicorn/-/eslint-plugin-unicorn-42.0.0.tgz#47d60c00c263ad743403b052db689e39acbacff1"
integrity sha512-ixBsbhgWuxVaNlPTT8AyfJMlhyC5flCJFjyK3oKE8TRrwBnaHvUbuIkCM1lqg8ryYrFStL/T557zfKzX4GKSlg==
dependencies:
"@babel/helper-validator-identifier" "^7.15.7"
ci-info "^3.3.0"
Expand Down

0 comments on commit c1de105

Please sign in to comment.