Open renovate[bot] opened 1 month ago
This PR contains the following updates:
^52.0.0
^56.0.0
📅 Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - "before 4am on Monday" (UTC).
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.
This PR contains the following updates:
^52.0.0
->^56.0.0
Release Notes
sindresorhus/eslint-plugin-unicorn (eslint-plugin-unicorn)
### [`v56.0.0`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v56.0.0) [Compare Source](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/compare/v55.0.0...v56.0.0) ##### New rules - [`prefer-global-this`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-global-this.md) ([#2410](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2410)) [`1558cbe`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/1558cbe) - [`prefer-math-min-max`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-math-min-max.md) ([#2432](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2432)) [`7369077`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/7369077) - [`consistent-existence-index-check`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-existence-index-check.md) ([#2425](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2425)) [`d3e4b80`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/d3e4b80) ##### Breaking - Remove `better-regex` from recommended rules ([#2443](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2443)) [`461b01c`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/461b01c) - [Reason](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2409) ##### Improvements - `no-useless-undefined`: Ignore React 19 `useRef` calls ([#2463](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2463)) [`5f744e8`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/5f744e8) - `prefer-query-selector`: Add support for `getElementsByName` ([#2398](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2398)) [`e511ffd`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/e511ffd) - `prefer-string-slice`: Remove unsafe autofix for `String#substr()` ([#2427](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2427)) [`891842d`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/891842d) - `no-for-loop`: Remove invalid fix for TypeScript ([#2426](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2426)) [`1e367bb`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/1e367bb) ### [`v55.0.0`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v55.0.0) [Compare Source](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/compare/v54.0.0...v55.0.0) ##### New rules - [`no-length-as-slice-end`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-length-as-slice-end.md) ([#2400](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2400)) [`3c33820`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/3c33820) ##### Improvements - Add TypeScript types ([#2382](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2382)) [`68e0f13`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/68e0f13) ##### Fixes - `no-single-promise-in-promise-methods`: Remove broken autofix for `Promise.all()` ([#2386](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2386)) [`8d28b6e`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/8d28b6e) - `prefer-node-protocol`: Ignore Bun modules ([#2384](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2384)) [`a45b24a`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/a45b24a) - `no-negation-in-equality-check`: Ignore boolean type casting ([#2379](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2379)) [`37e00dd`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/37e00dd) ### [`v54.0.0`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v54.0.0) [Compare Source](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/compare/v53.0.0...v54.0.0) ##### New rules - [`no-negation-in-equality-check`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-negation-in-equality-check.md) ([#2353](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2353)) [`8957a03`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/8957a03) ##### Breaking - `prefer-array-find`: Change [`checkFromLast`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-find.md#checkfromlast) default value to `true` ([#2367](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2367)) [`a449af9`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/a449af9) ##### Improvements - Add name to flat configs ([#2377](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2377)) [`ac8536e`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/ac8536e) - `prefer-array-some`: Check `Array#{findIndex,findLastIndex}()` ([#2370](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2370)) [`10568ab`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/10568ab) - `prefer-includes`: Check `.lastIndexOf()` ([#2368](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2368)) [`d812ad1`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/d812ad1) - `prefer-string-raw`: Ignore strings in Enums ([#2354](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2354)) [`175ea04`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/175ea04) ##### Fixes - Fix edge cases when add `new` to calls ([#2352](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2352)) [`d8f8161`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/d8f8161) ### [`v53.0.0`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v53.0.0) [Compare Source](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/compare/v52.0.0...v53.0.0) ##### New rules - [`consistent-empty-array-spread`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-empty-array-spread.md) ([#2349](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2349)) [`8d7954c`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/8d7954c) - [`prefer-string-raw`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-string-raw.md) ([#2339](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2339)) [`4f1400a`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/4f1400a) - [`no-invalid-fetch-options`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-invalid-fetch-options.md) ([#2338](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2338)) [`342aafb`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/342aafb) - [`no-magic-array-flat-depth`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-magic-array-flat-depth.md) ([#2335](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2335)) [`bc17428`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/bc17428) - [`prefer-structured-clone`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-structured-clone.md) ([#2329](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2329)) [`497519e`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/497519e) ##### Breaking - Require Node.js 18.18 ([#2250](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2250)) [`598f57b`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/598f57b) ##### Meta - You can now [sponsor @fisker](https://redirect.github.com/sponsors/fisker) for his work on this project ([#2348](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2348)) [`b82542d`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/b82542d) ##### Improvements - Support ESLint 9 ([#2250](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2250)) [`598f57b`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/598f57b) - `no-array-method-this-argument`: Check `Array.fromAsync()` ([#2330](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2330)) [`99489b9`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/99489b9) - `prefer-number-properties`: Add `checkNaN` option ([#2315](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2315)) [`d30de50`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/d30de50) - `template-indent`: Support member expression paths in `tags` and `functions` ([#2346](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2346)) [`aabcf1d`](https://redirect.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` ([#2312](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2312)) [`e0dfed2`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/e0dfed2) - `escape-case`: Ignore `String.raw` ([#2342](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2342)) [`45bd444`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/45bd444) - `no-hex-escape`: Ignore `String.raw` ([#2343](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2343)) [`cc02a7f`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/cc02a7f) - `prefer-dom-node-dataset`: Ignore `await`ed `getAttribute` call ([#2334](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2334)) [`45f23d5`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/45f23d5) - `prevent-abbreviations`: Support non-ASCII filenames ([#2308](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2308)) [`28762c8`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/28762c8) - `throw-new-error`: Check all call expressions instead of just argument of `ThrowStatement` ([#2332](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2332)) [`1626852`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/1626852)Configuration
📅 Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - "before 4am on Monday" (UTC).
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.