AlexRogalskiy / charts

๐Ÿ“Š Styled Charts API
https://styled-charts.vercel.app/
GNU General Public License v3.0
1 stars 0 forks source link

:arrow_up: Updates eslint-plugin-unicorn to v56 #1102

Open renovate[bot] opened 1 month ago

renovate[bot] commented 1 month ago

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
eslint-plugin-unicorn ^42.0.0 -> ^56.0.0 age adoption passing confidence

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) ### [`v52.0.0`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v52.0.0) [Compare Source](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/compare/v51.0.1...v52.0.0) ##### New rules - [`no-single-promise-in-promise-methods`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-single-promise-in-promise-methods.md) ([#​2258](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2258)) [`8f0ee89`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/8f0ee89) - [`no-await-in-promise-methods`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-await-in-promise-methods.md) ([#​2259](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2259)) [`a3be554`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/a3be554) - [`no-anonymous-default-export`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-anonymous-default-export.md) ([#​2273](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2273)) [`c035216`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/c035216) ##### Improvements - `filename-case`: Add option for multiple file extensions ([#​2186](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2186)) [`4594020`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/4594020) - `import-style`: Support `node:` protocol ([#​2297](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2297)) [`c28a086`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/c28a086) - `prefer-array-find`: Check `array.filter().at(0)` ([#​2284](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2284)) [`e6074fe`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/e6074fe) - `prefer-prototype-methods`: Check `Object.prototype` methods from `globalThis` ([#​2286](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2286)) [`1792d33`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/1792d33) - `no-array-callback-reference`: Check logical expressions and check ternaries deeply ([#​2289](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2289)) [`231529a`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/231529a) ##### Fixes - `prefer-spread`: Fix it to not report on optional chaining ([#​2304](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2304)) [`df1ff1c`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/df1ff1c) - `no-anonymous-default-export`: Uppercase class name ([#​2282](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2282)) [`5ce4169`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/5ce4169) ### [`v51.0.1`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v51.0.1) [Compare Source](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/compare/v51.0.0...v51.0.1) - `prefer-node-protocol`: Fix false positive on `bun:*` modules ([#​2272](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2272)) [`43fc638`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/43fc638) ### [`v51.0.0`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v51.0.0) [Compare Source](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/compare/v50.0.1...v51.0.0) ##### Breaking - `consistent-destructuring`: Remove from `recommended` preset ([#​2260](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2260)) [`702d51b`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/702d51b) ##### Improvements - `no-array-method-this-argument`: Check `Array.from()` ([#​2262](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2262)) [`797caee`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/797caee) ##### Fixes - `no-thenable`: Fix crash on `{[Symbol.prototype]: 0}` ([#​2248](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2248)) [`3c7d7c0`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/3c7d7c0) - `prefer-prototype-methods`: Fix argument of `isMethodCall` ([#​2247](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2247)) [`3b504fa`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/3b504fa) ### [`v50.0.1`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v50.0.1) [Compare Source](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/compare/v50.0.0...v50.0.1) ##### Fixes - `no-unnecessary-polyfills`: Fix missing dependency error ([#​2242](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2242)) [`3df1606`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/3df16068) ### [`v50.0.0`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v50.0.0) [Compare Source](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/compare/v49.0.0...v50.0.0) ##### New rules - [`no-unnecessary-polyfills`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-polyfills.md) ([#​1717](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1717)) [`6788d86`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/6788d86) ##### Improvements - Support ESLint's new config system ([#​1886](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1886)) [`65711f9`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/65711f9) - `no-useless-undefined`: Add `checkArrowFunctionBody` option ([#​2232](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2232)) [`9d7048c`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/9d7048c) - `prefer-negative-index`: Check `TypedArray#subarray()` ([#​2237](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2237)) [`6708a30`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/6708a30) - `no-useless-undefined`: Ignore React state setters ([#​2223](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2223)) [`42881ba`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/42881ba) - `prefer-module`: Allow `module` as TSTypeParameter name ([#​2213](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2213)) [`8f61f7c`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/8f61f7c) ##### Fixes - `string-content`: Fix JSX autofix for newlines, etc. ([#​2222](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2222)) [`b95e75e`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/b95e75e) ### [`v49.0.0`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v49.0.0) [Compare Source](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/compare/v48.0.1...v49.0.0) ##### Improvements - `expiring-todo-comments`: Support monorepos ([#​2159](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2159)) [`ac51d40`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/ac51d40) - `prefer-module`: Allow `module` as TSIndexSignature names or TSTypeAliasDeclaration ids ([#​2209](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2209)) [`ea94b3b`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/ea94b3b) - Support RegExp `v` flag ([#​2195](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2195)) [`28e7498`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/28e7498) - `prefer-event-target`: Ignore `EventEmitter` from `@angular/core` and `eventemitter3` ([#​2197](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2197)) [`1629ebe`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/1629ebe) ### [`v48.0.1`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v48.0.1) [Compare Source](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/compare/v48.0.0...v48.0.1) - `no-empty-file`: Fix directive check for TypeScript parser ([#​2180](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2180)) [`1bb9ce8`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/1bb9ce8) ### [`v48.0.0`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v48.0.0) [Compare Source](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/compare/v47.0.0...v48.0.0) ##### Improvements - Deprecate `no-unsafe-regex` rule ([#​2135](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2135)) [`7b473aa`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/7b473aa) - `prefer-top-level-await`: Ignore promises inside `Promise.{all,allSettled,any,race}()` ([#​2139](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2139)) [`d3f6b60`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/d3f6b60) - `no-process-exit`: Ignore when using `node:worker_threads` module ([#​2136](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2136)) [`2907805`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/2907805) - `prefer-array-some`: Ignore filter calls with literal argument ([#​2097](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2097)) [`7a32edb`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/7a32edb) - `prefer-modern-math-api`: Check cases that `Math.hypot()` should be preferred ([#​2080](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2080)) [`9bbc948`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/9bbc948) - `explicit-length-check`: Ignore `.length || number` ([#​1977](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1977)) [`b9b8794`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/b9b8794) ##### Fixes - Fix crash on array holes ([#​2129](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2129)) [`f10f1a6`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/f10f1a6) - `prefer-dom-node-dataset`: Fix edge cases ([#​2171](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2171)) [`b2d7378`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/b2d7378) - `prefer-dom-node-dataset`: Remove broken fix for `element.setAttribute` ([#​2169](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2169)) [`61234af`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/61234af) - `no-lonely-if`: Fix an edge case ([#​2168](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2168)) [`ca837a8`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/ca837a8) - `no-useless-undefined`: Turn parameter with `undefined` default value into optional parameter ([#​2138](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2138)) [`4aa7d60`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/4aa7d60) - `no-thenable`: Fix `Object.fromEntries()` check ([#​2130](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2130)) [`f3265b9`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/f3265b9) - `prefer-dom-node-remove`: Fix incorrect auto-fix ([#​2084](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2084)) [`74bb36d`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/74bb36d) ### [`v47.0.0`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v47.0.0) [Compare Source](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/compare/v46.0.1...v47.0.0) ##### Breaking - Require Node.js 16 ([#​2073](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2073)) [`a3bc120`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/a3bc120) - Require `eslint@>=8.38.0` ([#​2066](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2066)) [`04af765`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/04af765) - Enable `prefer-at`, `prefer-event-target`, and `prefer-string-replace-all` in recommended config ([#​2073](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2073)) [`a3bc120`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/a3bc120) ##### New rules - [`prefer-blob-reading-methods`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-blob-reading-methods.md) ([#​2065](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2065)) [`2bb1a04`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/2bb1a04) ##### Improvements - `prefer-top-level-await`: Ignore `.cjs` files ([#​2072](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2072)) [`0c3ccb1`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/0c3ccb1) - `prefer-spread`: Stop checking `Array.from` call with map function ([#​2064](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2064)) [`f5beccb`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/f5beccb) - `prefer-dom-node-text-content`: Check optional chaining ([#​2062](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2062)) [`8d6d007`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/8d6d007) - `prefer-dom-node-{append,remove}`: Check optional chaining ([#​2061](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2061)) [`443999b`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/443999b) ##### Fixes - `prefer-number-properties`: Fix false positives ([#​2050](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2050)) [`124bfa7`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/124bfa7) ### [`v46.0.1`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v46.0.1) [Compare Source](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/compare/v46.0.0...v46.0.1) - Fix `expiring-todo-comments` ([#​2077](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2077)) [`7a6861a`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/7a6861a) ### [`v46.0.0`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v46.0.0) [Compare Source](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/compare/v45.0.2...v46.0.0) ##### Improvements - Add `elems` to abbreviations ([#​2040](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2040)) [`2a9c840`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/2a9c840) - `no-useless-spread`: Check `Array#{toReversed,toSorted,toSpliced,with}` ([#​2030](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2030)) [`55469e5`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/55469e5) - `prefer-set-has`: Support `Array#{toReversed,toSorted,toSpliced,with}` ([#​2032](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2032)) [`fea5b42`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/fea5b42) - `prefer-spread`: Forbid use of `Array#toSpliced()` to copy array ([#​2034](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2034)) [`4ada50e`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/4ada50e) - `prefer-negative-index`: Check `.toSpliced()` and `.with()` ([#​2031](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2031)) [`7ed738a`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/7ed738a) - `no-empty-file`: Support `.jsx` and `.tsx` extensions ([#​2002](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2002)) [`ba1a00e`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/ba1a00e) ##### Fixes - `expiring-todo-comments`: Do not normalize package.json ([#​1871](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1871)) ([#​2020](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2020)) [`fcd8934`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/fcd8934) ### [`v45.0.2`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v45.0.2) [Compare Source](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/compare/v45.0.1...v45.0.2) - `prefer-string-replace-all`: Don't crash on invalid pattern ([#​2011](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2011)) [`3bbe027`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/3bbe027) - `prevent-abbreviations`: Skip fix for variables used in Vue template ([#​2012](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/2012)) [`8cd1ded`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/8cd1ded) ### [`v45.0.1`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v45.0.1) [Compare Source](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/compare/v45.0.0...v45.0.1) - `no-useless-spread`: Remove unsafe fix ([#​1996](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1996)) [`6756cbd`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/6756cbd) ### [`v45.0.0`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v45.0.0) [Compare Source](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/compare/v44.0.2...v45.0.0) ##### New rules - [`no-typeof-undefined`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-typeof-undefined.md) ([#​1966](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1966)) [`d7f7341`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/d7f7341) - [`no-negated-condition`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-negated-condition.md) ([#​1963](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1963)) [`e4aaa42`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/e4aaa42) - [`prefer-set-size`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-set-size.md) ([#​1952](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1952)) [`5f23c98`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/5f23c98) ##### Improvements - `prefer-at`: Support private fields ([#​1929](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1929)) [`60bb455`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/60bb455) - `no-useless-undefined`: Ignore `Array#includes()` and `Set#has()` ([#​1951](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1951)) [`8dfd5a7`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/8dfd5a7) - `no-useless-spread`: Check cloning inline arrays ([#​1980](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1980)) [`5d90d73`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/5d90d73) - `prefer-top-level-await`: Ignore expressions in class ([#​1976](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1976)) [`b90a3aa`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/b90a3aa) - `prefer-string-replace-all`: Improve RegExp to string fix ([#​1971](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1971)) [`b844dbc`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/b844dbc) - `prefer-string-replace-all`: Check pattern even if it's already using `.replaceAll` ([#​1981](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1981)) [`e8c5156`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/e8c5156) - `prefer-string-replace-all`: Report all `String#replace()` when the pattern has `g` flag ([#​1965](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1965)) [`6316f05`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/6316f05) - `prefer-string-replace-all`: Ignore regex with pipe ([#​1962](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1962)) [`76deaa3`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/76deaa3) - `prefer-regexp-test`: Use suggestions if not sure regexp without `g` flag ([#​1954](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1954)) [`505a203`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/505a203) - `no-array-for-each`: Skip fix for some edge cases ([#​1979](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1979)) [`48efc7a`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/48efc7a) - `prefer-add-event-listener`: Only fix `ExpressionStatement`, check `operator` ([#​1955](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1955)) [`aca21f2`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/aca21f2) - `prevent-abbreviations`: Improve fix for `retVal` ([#​1953](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1953)) [`25cd810`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/25cd810) ##### Fixes - `prefer-top-level-await`: Fix crash on `for..of` loop ([#​1950](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1950)) [`00a29c8`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/00a29c8) ### [`v44.0.2`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v44.0.2) [Compare Source](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/compare/v44.0.1...v44.0.2) - `no-array-method-this-argument`: Ignore `lodash.findLast` and `lodash.findLastIndex` ([#​1927](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1927)) [`86e8add`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/86e8add) ### [`v44.0.1`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v44.0.1) [Compare Source](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/compare/v44.0.0...v44.0.1) - `prefer-array-index-of`: Add missing message ([#​1924](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1924)) [`a981a13`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/a981a13) ### [`v44.0.0`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v44.0.0) [Compare Source](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/compare/v43.0.2...v44.0.0) ##### New rules - [`no-unnecessary-await`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-await.md) ([#​1904](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1904)) [`412fc6f`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/412fc6f) - [`switch-case-braces`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/switch-case-braces.md) ([#​1902](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1902)) [`690ed8c`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/690ed8c) ##### Improvements - `prefer-array-find`: Add option to also prefer `.findLast()` ([#​1900](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1900)) [`02252c7`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/02252c7) - `template-indent`: Preserve trailing spaces ([#​1872](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1872)) [`e4071f5`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/e4071f5) - `no-document-cookie`: Check `window.document.cookie` ([#​1833](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1833)) [`0886544`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/0886544) - `prefer-array-index-of`: Prefer `.lastIndexOf()` over `.findLastIndex()` ([#​1896](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1896)) [`70e5bdd`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/70e5bdd) - `prefer-array-some`: Check `.findLast()` ([#​1897](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1897)) [`3e6ae43`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/3e6ae43) - `prefer-native-coercion-functions`: Check `.findLast` and `.findLastIndex` ([#​1893](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1893)) [`f2c6acc`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/f2c6acc) - `no-array-method-this-argument`: Check `.findLast` and `.findLastIndex` ([#​1890](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1890)) [`3bc28ad`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/3bc28ad) - `no-array-callback-reference`: Check `.findLast` and `.findLastIndex` ([#​1889](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1889)) [`37a5cda`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/37a5cda) - `prefer-negative-index`: Remove `ArrayBuffer#at` ([#​1899](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1899)) [`a10e3f6`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/a10e3f6) - `prefer-at`: Improve fix ([#​1901](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1901)) [`1c457bb`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/1c457bb) ##### Fixes - `no-await-expression-member`: Fix crash on TypeScript parser ([#​1910](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1910)) [`b002e75`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/b002e75) - `prevent-abbreviations`: Skip fix when variable is JSX component ([#​1907](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1907)) [`9ed08ab`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/9ed08ab) - `better-regexp`: Don't fix if `.source` or `.toString()` is used ([#​1903](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1903)) [`8ad592b`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/8ad592b) ### [`v43.0.2`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v43.0.2) [Compare Source](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/compare/v43.0.1...v43.0.2) - `prefer-spread`: Ignore `Array#join().concat()` and `(a + b).concat()` ([#​1859](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1859)) [`ab71971`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/ab71971) ### [`v43.0.1`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v43.0.1) [Compare Source](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/compare/v43.0.0...v43.0.1) - Remove `prefer-event-target` from the recommended preset [`4d2faac`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/4d2faac) - `EventTarget` requires Node.js 16 and we target Node.js 14. We'll enable it again in a year when we can target Node.js 16. ### [`v43.0.0`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v43.0.0) [Compare Source](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/compare/v42.0.0...v43.0.0) ##### New rules - [`prefer-logical-operator-over-ternary`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-logical-operator-over-ternary.md) ([#​1830](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1830)) [`5d7e622`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/5d7e622) - [`prefer-event-target`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-event-target.md) ([#​1792](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1792)) [`166524a`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/166524a) ##### Breaking - Require Node.js 14 ##### Improvements - Add `prefer-top-level-await` rule to recommended preset ([#​1803](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1803)) [`6f5ecf5`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/6f5ecf5) - Deprecate `import-index` rule ([#​1787](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1787)) [`0034e69`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/0034e69) - Update abbreviations to support Next.js functions ([#​1804](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1804)) [`4b96057`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/4b96057) - `text-encoding-identifier-case`: Ignore JSX `meta[charset="utf-8"]` ([#​1817](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1817)) [`c67a70f`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/c67a70f) - `prefer-number-properties`: Check any use of global functions ([#​1834](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1834)) [`51d7e06`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/51d7e06) - `prefer-number-properties`: Detect usage via global object ([#​1832](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1832)) [`80c4af2`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/80c4af2) - `no-array-for-each`: Check reassign in `for..in` and `for..of` ([#​1824](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1824)) [`d3b2548`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/d3b2548) - `no-useless-undefined`: Ignore `ref(undefined)` in Vue project ([#​1828](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1828)) [`e7306e5`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/e7306e5) - `prefer-node-protocol`: Always check `require()` ([#​1827](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1827)) [`2c914d4`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/2c914d4) - `no-array-for-each`: Improve parameter reassign detection ([#​1823](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1823)) [`56df468`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/56df468) - `no-array-for-each`: Add fix for arrow function body ([#​1785](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1785)) [`59218e3`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/59218e3) ##### Fixes - `no-array-for-each`: Fix auto-fix causing SyntaxError ([#​1813](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/issues/1813)) [`47c8337`](https://redirect.github.com/sindresorhus/eslint-plugin-unicorn/commit/47c8337)

Configuration

๐Ÿ“… Schedule: Branch creation - "after 10pm every weekday,before 5am every weekday,every weekend" in timezone Europe/Moscow, Automerge - At any time (no schedule defined).

๐Ÿšฆ Automerge: Disabled by config. Please merge this manually once you are satisfied.

โ™ป Rebasing: Whenever PR is behind base branch, 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.

github-actions[bot] commented 1 month ago

Thanks for opening an issue! Make sure you've followed CONTRIBUTING.md.

github-actions[bot] commented 1 month ago

Hello from PR Helper

Is your PR ready for review and processing? Mark the PR ready by including #pr-ready in a comment.

If you still have work to do, even after marking this ready. Put the PR on hold by including #pr-onhold in a comment.

github-actions[bot] commented 1 month ago

Thanks for the PR!

This section of the codebase is owner by https://github.com/AlexRogalskiy/ - if they write a comment saying "LGTM" then it will be merged.

socket-security[bot] commented 1 month ago

New and removed dependencies detected. Learn more about Socket for GitHub โ†—๏ธŽ

Package New capabilities Transitives Size Publisher
npm/eslint-plugin-unicorn@56.0.0 Transitive: filesystem +5 1.23 MB sindresorhus

๐Ÿšฎ Removed packages: npm/eslint-plugin-unicorn@42.0.0

View full reportโ†—๏ธŽ