AlexRogalskiy / github-action-random-proverb

GitHub action for random proverbs
GNU General Public License v3.0
1 stars 1 forks source link

:arrow_up: Updates eslint-plugin-unicorn to v47 - autoclosed #489

Closed renovate[bot] closed 1 year ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

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

Release Notes

sindresorhus/eslint-plugin-unicorn ### [`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 ([#​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` ([#​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 ([#​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) ([#​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 ([#​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 ([#​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 ([#​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 ([#​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 ([#​2050](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2050)) [`124bfa7`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/124bfa7) ### [`v46.0.1`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v46.0.1) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v46.0.0...v46.0.1) - Fix `expiring-todo-comments` ([#​2077](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2077)) [`7a6861a`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/7a6861a) ### [`v46.0.0`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v46.0.0) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v45.0.2...v46.0.0) ##### Improvements - Add `elems` to abbreviations ([#​2040](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2040)) [`2a9c840`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/2a9c840) - `no-useless-spread`: Check `Array#{toReversed,toSorted,toSpliced,with}` ([#​2030](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2030)) [`55469e5`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/55469e5) - `prefer-set-has`: Support `Array#{toReversed,toSorted,toSpliced,with}` ([#​2032](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2032)) [`fea5b42`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/fea5b42) - `prefer-spread`: Forbid use of `Array#toSpliced()` to copy array ([#​2034](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2034)) [`4ada50e`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/4ada50e) - `prefer-negative-index`: Check `.toSpliced()` and `.with()` ([#​2031](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2031)) [`7ed738a`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/7ed738a) - `no-empty-file`: Support `.jsx` and `.tsx` extensions ([#​2002](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2002)) [`ba1a00e`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/ba1a00e) ##### Fixes - `expiring-todo-comments`: Do not normalize package.json ([#​1871](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1871)) ([#​2020](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2020)) [`fcd8934`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/fcd8934) ### [`v45.0.2`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v45.0.2) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v45.0.1...v45.0.2) - `prefer-string-replace-all`: Don't crash on invalid pattern ([#​2011](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2011)) [`3bbe027`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/3bbe027) - `prevent-abbreviations`: Skip fix for variables used in Vue template ([#​2012](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2012)) [`8cd1ded`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/8cd1ded) ### [`v45.0.1`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v45.0.1) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v45.0.0...v45.0.1) - `no-useless-spread`: Remove unsafe fix ([#​1996](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1996)) [`6756cbd`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/6756cbd) ### [`v45.0.0`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v45.0.0) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v44.0.2...v45.0.0) ##### New rules - [`no-typeof-undefined`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-typeof-undefined.md) ([#​1966](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1966)) [`d7f7341`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/d7f7341) - [`no-negated-condition`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-negated-condition.md) ([#​1963](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1963)) [`e4aaa42`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/e4aaa42) - [`prefer-set-size`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-set-size.md) ([#​1952](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1952)) [`5f23c98`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/5f23c98) ##### Improvements - `prefer-at`: Support private fields ([#​1929](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1929)) [`60bb455`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/60bb455) - `no-useless-undefined`: Ignore `Array#includes()` and `Set#has()` ([#​1951](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1951)) [`8dfd5a7`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/8dfd5a7) - `no-useless-spread`: Check cloning inline arrays ([#​1980](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1980)) [`5d90d73`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/5d90d73) - `prefer-top-level-await`: Ignore expressions in class ([#​1976](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1976)) [`b90a3aa`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/b90a3aa) - `prefer-string-replace-all`: Improve RegExp to string fix ([#​1971](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1971)) [`b844dbc`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/b844dbc) - `prefer-string-replace-all`: Check pattern even if it's already using `.replaceAll` ([#​1981](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1981)) [`e8c5156`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/e8c5156) - `prefer-string-replace-all`: Report all `String#replace()` when the pattern has `g` flag ([#​1965](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1965)) [`6316f05`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/6316f05) - `prefer-string-replace-all`: Ignore regex with pipe ([#​1962](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1962)) [`76deaa3`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/76deaa3) - `prefer-regexp-test`: Use suggestions if not sure regexp without `g` flag ([#​1954](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1954)) [`505a203`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/505a203) - `no-array-for-each`: Skip fix for some edge cases ([#​1979](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1979)) [`48efc7a`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/48efc7a) - `prefer-add-event-listener`: Only fix `ExpressionStatement`, check `operator` ([#​1955](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1955)) [`aca21f2`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/aca21f2) - `prevent-abbreviations`: Improve fix for `retVal` ([#​1953](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1953)) [`25cd810`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/25cd810) ##### Fixes - `prefer-top-level-await`: Fix crash on `for..of` loop ([#​1950](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1950)) [`00a29c8`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/00a29c8) ### [`v44.0.2`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v44.0.2) [Compare Source](https://togithub.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://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1927)) [`86e8add`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/86e8add) ### [`v44.0.1`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v44.0.1) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v44.0.0...v44.0.1) - `prefer-array-index-of`: Add missing message ([#​1924](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1924)) [`a981a13`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/a981a13) ### [`v44.0.0`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v44.0.0) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v43.0.2...v44.0.0) ##### New rules - [`no-unnecessary-await`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-await.md) ([#​1904](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1904)) [`412fc6f`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/412fc6f) - [`switch-case-braces`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/switch-case-braces.md) ([#​1902](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1902)) [`690ed8c`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/690ed8c) ##### Improvements - `prefer-array-find`: Add option to also prefer `.findLast()` ([#​1900](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1900)) [`02252c7`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/02252c7) - `template-indent`: Preserve trailing spaces ([#​1872](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1872)) [`e4071f5`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/e4071f5) - `no-document-cookie`: Check `window.document.cookie` ([#​1833](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1833)) [`0886544`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/0886544) - `prefer-array-index-of`: Prefer `.lastIndexOf()` over `.findLastIndex()` ([#​1896](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1896)) [`70e5bdd`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/70e5bdd) - `prefer-array-some`: Check `.findLast()` ([#​1897](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1897)) [`3e6ae43`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/3e6ae43) - `prefer-native-coercion-functions`: Check `.findLast` and `.findLastIndex` ([#​1893](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1893)) [`f2c6acc`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/f2c6acc) - `no-array-method-this-argument`: Check `.findLast` and `.findLastIndex` ([#​1890](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1890)) [`3bc28ad`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/3bc28ad) - `no-array-callback-reference`: Check `.findLast` and `.findLastIndex` ([#​1889](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1889)) [`37a5cda`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/37a5cda) - `prefer-negative-index`: Remove `ArrayBuffer#at` ([#​1899](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1899)) [`a10e3f6`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/a10e3f6) - `prefer-at`: Improve fix ([#​1901](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1901)) [`1c457bb`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/1c457bb) ##### Fixes - `no-await-expression-member`: Fix crash on TypeScript parser ([#​1910](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1910)) [`b002e75`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/b002e75) - `prevent-abbreviations`: Skip fix when variable is JSX component ([#​1907](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1907)) [`9ed08ab`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/9ed08ab) - `better-regexp`: Don't fix if `.source` or `.toString()` is used ([#​1903](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1903)) [`8ad592b`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/8ad592b) ### [`v43.0.2`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v43.0.2) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v43.0.1...v43.0.2) - `prefer-spread`: Ignore `Array#join().concat()` and `(a + b).concat()` ([#​1859](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1859)) [`ab71971`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/ab71971) ### [`v43.0.1`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v43.0.1) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v43.0.0...v43.0.1) - Remove `prefer-event-target` from the recommended preset [`4d2faac`](https://togithub.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://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v43.0.0) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v42.0.0...v43.0.0) ##### New rules - [`prefer-logical-operator-over-ternary`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-logical-operator-over-ternary.md) ([#​1830](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1830)) [`5d7e622`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/5d7e622) - [`prefer-event-target`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-event-target.md) ([#​1792](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1792)) [`166524a`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/166524a) ##### Breaking - Require Node.js 14 ##### Improvements - Add `prefer-top-level-await` rule to recommended preset ([#​1803](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1803)) [`6f5ecf5`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/6f5ecf5) - Deprecate `import-index` rule ([#​1787](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1787)) [`0034e69`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/0034e69) - Update abbreviations to support Next.js functions ([#​1804](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1804)) [`4b96057`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/4b96057) - `text-encoding-identifier-case`: Ignore JSX `meta[charset="utf-8"]` ([#​1817](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1817)) [`c67a70f`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/c67a70f) - `prefer-number-properties`: Check any use of global functions ([#​1834](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1834)) [`51d7e06`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/51d7e06) - `prefer-number-properties`: Detect usage via global object ([#​1832](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1832)) [`80c4af2`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/80c4af2) - `no-array-for-each`: Check reassign in `for..in` and `for..of` ([#​1824](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1824)) [`d3b2548`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/d3b2548) - `no-useless-undefined`: Ignore `ref(undefined)` in Vue project ([#​1828](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1828)) [`e7306e5`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/e7306e5) - `prefer-node-protocol`: Always check `require()` ([#​1827](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1827)) [`2c914d4`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/2c914d4) - `no-array-for-each`: Improve parameter reassign detection ([#​1823](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1823)) [`56df468`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/56df468) - `no-array-for-each`: Add fix for arrow function body ([#​1785](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1785)) [`59218e3`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/59218e3) ##### Fixes - `no-array-for-each`: Fix auto-fix causing SyntaxError ([#​1813](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1813)) [`47c8337`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/47c8337) ### [`v42.0.0`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/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) ### [`v41.0.1`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v41.0.1) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v41.0.0...v41.0.1) - `relative-url-style`: Improve fix ([#​1748](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1748)) [`f406795`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/f406795) ### [`v41.0.0`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v41.0.0) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v40.1.0...v41.0.0) ##### New rules - [`text-encoding-identifier-case`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/text-encoding-identifier-case.md) ([#​1718](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1718)) [`4370602`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/4370602) ##### Breaking - Require ESLint 8 ([#​1724](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1724)) [`608a90c`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/608a90c) ##### Fixes - `prefer-export-from`: Fix TypeScript compatibility ([#​1728](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1728)) [`f14aa95`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/f14aa95) - `prefer-at`: Remove auto-fix for `arguments` ([#​1705](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1705)) [`bba518e`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/bba518e) ### [`v40.1.0`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v40.1.0) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v40.0.0...v40.1.0) - `expiring-todo-comments`: Add `date` option ([#​1683](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1683)) [`16bc33a`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/16bc33a) - `consistent-function-scoping`: Allow `React.useHook` ([#​1691](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1691)) [`e910633`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/e910633) - `no-useless-undefined`: Allow `React.createContext(undefined)` ([#​1688](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1688)) [`40bc603`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/40bc603) ### [`v40.0.0`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v40.0.0) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v39.0.0...v40.0.0) ##### New rules - [`no-thenable`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-thenable.md) ([#​1616](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1616)) [`c318644`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/c318644) - [`no-useless-promise-resolve-reject`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-promise-resolve-reject.md) ([#​1623](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1623)) [`054436e`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/054436e) - [`relative-url-style`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/relative-url-style.md) ([#​1672](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1672)) [`6ab705b`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/6ab705b) - [`prefer-json-parse-buffer`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-json-parse-buffer.md) ([#​1676](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1676)) [`84c9c70`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/84c9c70) ##### Improvements - `prefer-object-has-own`: Deprecate in favor of the built-in [`prefer-object-has-own`](https://eslint.org/docs/rules/prefer-object-has-own) rule ([#​1646](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1646)) [`e59a856`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/e59a856) - `filename-case`: Ignore `$` in filenames ([#​1628](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1628)) [`a43a174`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/a43a174) - `no-useless-promise-resolve-reject`: Detect unnecessary `Promise.resolve`/`reject` in promise callback functions ([#​1666](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1666)) [`f6215f3`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/f6215f3) - `prefer-export-from`: Support import assertions ([#​1618](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1618)) [`1d7a6b6`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/1d7a6b6) - `prefer-top-level-await`: Improve top-level expression detection ([#​1526](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1526)) [`b054d65`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/b054d65) - `prefer-dom-node-dataset`: Check `.hasAttribute()` and `.getAttribute()` ([#​1673](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1673)) [`152f153`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/152f153) - `prefer-dom-node-dataset`: Check `.removeAttribute()` ([#​1668](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1668)) [`22d8d03`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/22d8d03) - `prefer-string-slice`: Improve fix ([#​1675](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1675)) [`267115a`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/267115a) - `prefer-math-trunc`: Improve fix logic ([#​1670](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1670)) [`784c7a8`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/784c7a8) - `prefer-string-slice`: Improve argument type detection ([#​1664](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1664)) [`03b0946`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/03b0946) - `prefer-add-event-listener`: Remove fix for `onerror` ([#​1650](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1650)) [`7bf63bb`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/7bf63bb) - `no-array-push-push`: Ignore `process.{stdin,stdout,stderr}` ([#​1654](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1654)) [`10ad699`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/10ad699) - `no-new-array` & `no-new-buffer`: Improve argument type detection ([#​1648](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1648)) [`9b04e43`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/9b04e43) - `no-array-for-each`: Ignore `pIteration.forEach` ([#​1649](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1649)) [`2b92385`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/2b92385) - `no-array-callback-reference`: Ignore primitive wrappers in `Array#map()` ([#​1642](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1642)) [`0362c09`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/0362c09) - `prefer-export-from`: Support "string literal specifier" ([#​1636](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1636)) [`0866b41`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/0866b41) - `template-indent`: Check Jest inline snapshots by default ([#​1637](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1637)) [`64460e2`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/64460e2) ##### Fixes - `prefer-dom-node-dataset`: Fix name conversion ([#​1674](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1674)) [`7fb6f7b`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/7fb6f7b) - `prefer-export-from`: Fix crash in TypeScript files ([#​1647](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1647)) [`1ff8e42`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/1ff8e42) ### [`v39.0.0`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v39.0.0) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v38.0.1...v39.0.0) ##### New rules - [`prefer-code-point`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-code-point.md) ([#​1584](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1584)) [`31c83cd`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/31c83cd) - [`no-await-expression-member`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-await-expression-member.md) ([#​1586](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1586)) [`0485924`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/0485924) ##### Improvements - `prefer-export-from`: Add [`ignoreUsedVariables` option](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-export-from.md#ignoreusedvariables) ([#​1590](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1590)) [`a8d52e4`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/a8d52e4) - `prevent-abbreviations`: Show file basename instead of full path ([#​1593](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1593)) [`7c2867d`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/7c2867d) - Remove `require-post-message-target-origin` rule from recommended config ([#​1581](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1581)) [`014b4dc`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/014b4dc) ##### Fixes - `no-empty-file`: Fix false positive with triple-slash directives ([#​1605](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1605)) [`6354bb8`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/6354bb8) - `require-number-to-fixed-digits-argument`: Ignore `.toFixed` from new expression ([#​1601](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1601)) [`20d61e7`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/20d61e7) - `prefer-export-from`: Fix bug on fixing export namespace as default ([#​1583](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1583)) [`b564ff1`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/b564ff1) - Add missing `additionalProperties` to schema ([#​1589](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1589)) [`579d05d`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/579d05d) ### [`v38.0.1`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v38.0.1) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v38.0.0...v38.0.1) - `prefer-export-from`: Ignore variables with type ([#​1580](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1580)) [`ea49b21`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/ea49b21) ### [`v38.0.0`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v38.0.0) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v37.0.1...v38.0.0) ##### New rules - [`no-empty-file`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-empty-file.md) ([#​1506](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1506)) [`a2ba25e`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/a2ba25e) - [`prefer-export-from`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-export-from.md) ([#​1453](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1453)) [`ff43745`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/ff43745) ##### Improvements - Ignore Ramda methods in rules ([#​1557](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1557)) [`5f3bad5`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/5f3bad5) - `no-array-callback-reference`: Only ignore `Boolean` in reasonable places ([#​1570](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1570)) [`46f8638`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/46f8638) - `require-array-join-separator`: Check optional member ([#​1569](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1569)) [`15f9028`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/15f9028) ### [`v37.0.1`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v37.0.1) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v37.0.0...v37.0.1) - Fix compatibility with ESLint 7 ([#​1548](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1548)) [`e6cee0f`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/e6cee0f) ### [`v37.0.0`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v37.0.0) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v36.0.0...v37.0.0) ##### New rules - [`template-indent`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/template-indent.md) ([#​1478](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1478)) [`5f4c440`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/5f4c440) ##### Improvements - Support ESLint 8 ([#​1488](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1488)) [`e97ab7e`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/e97ab7e) - Use `'latest'` as `ecmaVersion` ([#​1465](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1465)) [`9feb181`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/9feb181) ### [`v36.0.0`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v36.0.0) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v35.0.0...v36.0.0) ##### New rules - [`no-useless-fallback-in-spread`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-fallback-in-spread.md) ([#​1481](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1481)) [`1675118`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/1675118) - [`no-invalid-remove-event-listener`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-invalid-remove-event-listener.md) ([#​1216](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1216)) [`f0ff04d`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/f0ff04d) ##### Improvements - Add [`all`](https://togithub.com/sindresorhus/eslint-plugin-unicorn#all-config) config ([#​1512](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1512)) [`a512ad1`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/a512ad1) - This config includes all the rules, except deprecated ones. - `prefer-spread`: Check `String#split('')` ([#​1489](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1489)) [`d51a197`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/d51a197) - `prefer-module`: Use suggestions for `'use strict'` directive ([#​1470](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1470)) [`57c7906`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/57c7906) - `error-message`: Handle shadowed `Error` constructor ([#​1496](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1496)) [`fdadd88`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/fdadd88) ##### Fixes - `prefer-spread`: Fix false negative on array constants ([#​1474](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1474)) [`4162145`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/4162145) ### [`v35.0.0`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v35.0.0) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v34.0.1...v35.0.0) ##### New rules - [`prefer-object-from-entries`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-object-from-entries.md) ([#​1308](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1308)) [`4a14187`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/4a14187) - [`no-useless-length-check`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-length-check.md) ([#​1398](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1398)) [`1107455`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/1107455) - [`no-useless-spread`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-spread.md) ([#​1401](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1401)) [`1463f52`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/1463f52) ##### Breaking - `explicit-length-check`: Remove `greater-than-or-equal` option ([#​1397](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1397)) [`db1a2b5`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/db1a2b5) - It enabled a style that no one actually uses. ##### Improvements - `no-array-reduce`: Add [`allowSimpleOperations`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-reduce.md#allowsimpleoperations) option ([#​1418](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1418)) [`153eb2c`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/153eb2c) - `no-array-callback-reference`: Ignore jQuery methods ([#​1457](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1457)) [`7af9a6f`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/7af9a6f) - `prevent-abbreviations`: Ignore `i18n` and `l10n` ([#​1445](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1445)) [`efdd90e`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/efdd90e) - `no-array-callback-reference`: Ignore mobx-state-tree usage ([#​1455](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1455)) [`73c0dfd`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/73c0dfd) - `new-for-builtins`: Check `WeakRef` and `FinalizationRegistry` ([#​1450](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1450)) [`fce9d1d`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/fce9d1d) - `no-zero-fractions`: Handle `.0` correctly ([#​1444](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1444)) [`fcca35d`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/fcca35d) - `new-for-builtins`: Enforce `new` for `SharedArrayBuffer` and `Proxy` ([#​1438](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1438)) [`2ba83ad`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/2ba83ad) - `no-null`: Allow `Object.create(null, …)` ([#​1432](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1432)) [`768f301`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/768f301) - `number-literal-case`: Support Vue SFC ([#​1434](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1434)) [`ee9f609`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/ee9f609) - `no-object-as-default-parameter`: Forbid destructuring ([#​1433](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1433)) [`3fcc4bb`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/3fcc4bb) - `prefer-spread`: Better auto-fix ([#​1426](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1426)) [`7bdf0dd`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/7bdf0dd) - `prefer-array-some`: Check cases comparing `.find()` with `undefined` ([#​1422](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1422)) [`3dc2f77`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/3dc2f77) - `no-useless-spread`: Check useless "iterable to array" ([#​1414](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1414)) [`61bc6a3`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/61bc6a3) - `prefer-dom-node-text-content`: Check destructuring, Use suggestion instead of auto-fix ([#​1417](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1417)) [`c4bfc42`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/c4bfc42) - `require-post-message-target-origin`: Disable for TypeScript files ([#​1415](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1415)) [`741484a`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/741484a) - `prefer-add-event-listener`: Update event types list ([#​1412](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1412)) [`7f88b2f`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/7f88b2f) - `no-instanceof-array`: Support Vue SFC ([#​1410](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1410)) [`3b22917`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/3b22917) - `prevent-abbreviations`: Add `def` ([#​1402](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1402)) [`f783472`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/f783472) - `no-instanceof-array`: Improve report location ([#​1389](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1389)) [`6512fbd`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/6512fbd) - Use original quote when auto-fixing ([#​1411](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1411)) [`bb81582`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/bb81582) ##### Fixes - `throw-new-error`: Fix an edge case ([#​1390](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1390)) [`806831b`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/806831b) - Fix cases without space after keywords ([#​1436](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1436)) [`179b7df`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/179b7df) ### [`v34.0.1`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v34.0.1) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v34.0.0...v34.0.1) - `no-array-method-this-argument`: Fix false positives ([#​1386](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1386)) [`d364d67`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/d364d67) ### [`v34.0.0`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v34.0.0) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v33.0.1...v34.0.0) ##### New rules - [`no-array-method-this-argument`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-method-this-argument.md) ([#​1357](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1357)) [`96587f2`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/96587f2) - [`require-post-message-target-origin`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/require-post-message-target-origin.md) ([#​1326](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1326)) [`03c540b`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/03c540b) - [`prefer-top-level-await`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-top-level-await.md) ([#​1325](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1325)) [`05722a1`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/05722a1) - Disabled in the recommended preset. - [`prefer-at`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-at.md) ([#​1331](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1331)) [`8ca5b46`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/8ca5b46) - Disabled in the recommended preset. ##### Improvements - `prefer-module`: Ignore `.cjs` files ([#​1355](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1355)) [`ebdc3c2`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/ebdc3c2) - `error-message`: Support `AggregateError` ([#​1351](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1351)) [`e7b4300`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/e7b4300) - `filename-case`: Enforce lowercased file extension ([#​1336](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1336)) [`119615b`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/119615b) - `expiring-todo-comments`: More helpful error when no conditions ([#​1375](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1375)) [`914a996`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/914a996) - `prefer-array-some` and `prefer-regexp-test`: Support Vue SFC ([#​1364](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1364)) [`a46050e`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/a46050e) - `explicit-length-check`: Support `v-show` directive ([#​1363](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1363)) [`f163c4a`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/f163c4a) - `explicit-length-check`: Support Vue SFC files ([#​1360](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1360)) [`9199611`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/9199611) - `prefer-type-error`: Improve report location ([#​1354](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1354)) [`bc3d58b`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/bc3d58b) - `no-useless-undefined`: Ignore `Set#add()` `Map#set()` `Array#{push,unshift}()` ([#​1353](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1353)) [`c6359c3`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/c6359c3) - `prefer-prototype-methods`: Only check methods from `[]` and `{}` ([#​1347](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1347)) [`29a4e75`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/29a4e75) - `prefer-array-some`: Report non-zero check on `array.filter().length` ([#​1337](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1337)) [`f8aaac2`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/f8aaac2) - Use `context.getPhysicalFilename()` ([#​1344](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1344)) [`e2540cb`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/e2540cb) ##### Fixes - `prefer-array-find` and `prefer-at`: Fix crash on LHS zero index access ([#​1373](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1373)) [`da1f6d8`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/da1f6d8) - `prefer-prototype-methods`: Fix a missing condition on object literal check ([#​1332](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1332)) [`cec7f11`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/cec7f11) ### [`v33.0.1`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v33.0.1) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v33.0.0...v33.0.1) - `prefer-prototype-methods`: Ignore known object literal methods ([#​1330](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1330)) [`639e7af`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/639e7af) ### [`v33.0.0`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v33.0.0) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v32.0.1...v33.0.0) ##### New rules - [`require-array-join-separator`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/require-array-join-separator.md) ([#​1284](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1284)) [`36e7103`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/36e7103) - [`require-number-to-fixed-digits-argument`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/require-number-to-fixed-digits-argument.md) ([#​1288](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1288)) [`4a30863`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/4a30863) - [`prefer-prototype-methods`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-prototype-methods.md) ([#​1247](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1247)) [`7bde733`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/7bde733) - [`prefer-object-has-own`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-object-has-own.md) ([#​1322](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1322)) [`ca34b40`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/ca34b40) - Not enabled in the `recommended` preset. ##### Improvements - `no-array-for-each`: Handle only return statement inside `if` or `else` ([#​1319](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1319)) [`298a104`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/298a104) - `new-for-builtins` & `no-new-buffer`: Handle line breaks after `new` keyword ([#​1301](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1301)) [`d37439f`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/d37439f) - `prefer-array-flat-map`: Remove check on `[].concat(...array.map(…))` ([#​1299](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1299)) [`128b5aa`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/128b5aa) - `prefer-spread`: Ignore `{arrayBuffer,blob,buffer,file,this}.slice()` ([#​1287](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1287)) [`e18d5f2`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/e18d5f2) - `prefer-string-starts-ends-with`: Add suggestions for safely handling non-strings ([#​1277](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1277)) [`f14a9d1`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/f14a9d1) - `explicit-length-check`: Ignore `this.{size,length}` ([#​1289](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1289)) [`ed85d00`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/ed85d00) - `prefer-string-starts-ends-with-rule`: Don't autofix known non-string values ([#​1281](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1281)) [`a1c8984`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/a1c8984) - `explicit-length-check`: Ignore known, non-number length properties ([#​1264](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1264)) [`42f6487`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/42f6487) - `empty-brace-spaces`: Support experimental syntax ([#​1276](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1276)) [`fa68b6f`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/fa68b6f) - `prefer-dom-node-remove`: Improve parentheses handling ([#​1254](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1254)) [`74e4d39`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/74e4d39) ##### Fixes - `prefer-array-flat`: Fix incorrect fix, check `Array.prototype.concat.call` ([#​1317](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1317)) [`f6a939c`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/f6a939c) ### [`v32.0.1`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v32.0.1) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v32.0.0...v32.0.1) - `prevent-abbreviations`: Fix shorthand import/export detection ([#​1252](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1252)) [`4367479`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/4367479) ### [`v32.0.0`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v32.0.0) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v31.0.0...v32.0.0) ##### Breaking - Drop support for Node.js v10 ([#​1211](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1211)) [`a8e9f26`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/a8e9f26) - Drop support for `babel-eslint` ([#​1211](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1211)) [`a8e9f26`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/a8e9f26) [You should migrate to `@babel/eslint-parser`](https://togithub.com/babel/babel-eslint#note-babel-eslint-is-now-babeleslint-parser-and-has-moved-into-the-babel-monor

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 has been generated by Mend Renovate. View repository job log here.

renovate[bot] commented 1 year ago

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

The artifact failure details are included below:

File name: package-lock.json
npm notice 
npm notice New major version of npm available! 8.19.4 -> 9.6.7
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.6.7>
npm notice Run `npm install -g npm@9.6.7` to update!
npm notice 
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: github-action-random-proverb@0.0.0-dev
npm ERR! Found: eslint@7.32.0
npm ERR! node_modules/eslint
npm ERR!   dev eslint@"^7.19.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@">=8.38.0" from eslint-plugin-unicorn@47.0.0
npm ERR! node_modules/eslint-plugin-unicorn
npm ERR!   dev eslint-plugin-unicorn@"^47.0.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /tmp/worker/04e56c/0a2d63/cache/others/npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /tmp/worker/04e56c/0a2d63/cache/others/npm/_logs/2023-06-03T02_29_27_738Z-debug-0.log
viezly[bot] commented 1 year ago

Pull request by bot. No need to analyze

github-actions[bot] commented 1 year ago

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

github-actions[bot] commented 1 year 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 year 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.