Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #4684 - rust-lang:renovate/eslint-plugin-unicorn-42.x, …
…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 [`@​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) ([#​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) ([#​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) ([#​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) ([#​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 ([#​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 ([#​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 ([#​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 ([#​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 ([#​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 ([#​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()` ([#​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 ([#​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}()` ([#​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 ([#​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 ([#​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