Closed renovate[bot] closed 1 month ago
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/@babel/core@7.12.16, npm/@babel/generator@7.12.15, npm/@babel/helper-function-name@7.12.13, npm/@babel/helper-get-function-arity@7.12.13, npm/@babel/helper-member-expression-to-functions@7.12.16, npm/@babel/helper-module-imports@7.12.13, npm/@babel/helper-module-transforms@7.12.13, npm/@babel/helper-optimise-call-expression@7.12.13, npm/@babel/helper-plugin-utils@7.12.13, npm/@babel/helper-replace-supers@7.12.13, npm/@babel/helper-simple-access@7.12.13, npm/@babel/helper-split-export-declaration@7.12.13, npm/@babel/helpers@7.12.13, npm/@babel/parser@7.12.16, npm/@babel/plugin-syntax-top-level-await@7.12.13, npm/@babel/template@7.12.13, npm/@babel/traverse@7.12.13, npm/@babel/types@7.12.13, npm/@cnakazawa/watch@1.0.4, npm/@eslint/eslintrc@0.3.0, npm/@hapi/address@2.1.4, npm/@hapi/bourne@1.3.2, npm/@hapi/hoek@8.5.1, npm/@hapi/joi@15.1.1, npm/@hapi/topo@3.1.6, npm/@jest/console@26.6.2, npm/@jest/core@26.6.3, npm/@jest/environment@26.6.2, npm/@jest/fake-timers@26.6.2, npm/@jest/globals@26.6.2, npm/@jest/reporters@26.6.2, npm/@jest/source-map@26.6.2, npm/@jest/test-result@26.6.2, npm/@jest/test-sequencer@26.6.3, npm/@jest/transform@26.6.2, npm/@jest/types@26.6.2, npm/@nodelib/fs.scandir@2.1.4, npm/@nodelib/fs.stat@2.0.4, npm/@nodelib/fs.walk@1.2.6, npm/@octokit/auth-token@2.4.5, npm/@octokit/core@3.2.5, npm/@octokit/endpoint@6.0.11, npm/@octokit/graphql@4.6.0, npm/@octokit/openapi-types@5.0.0, npm/@octokit/plugin-paginate-rest@2.9.1, npm/@octokit/plugin-request-log@1.0.3, npm/@octokit/plugin-rest-endpoint-methods@4.10.3, npm/@octokit/request-error@2.0.5, npm/@octokit/request@5.4.14, npm/@octokit/rest@18.1.1, npm/@octokit/types@6.9.0, npm/@qawolf/jest-reporter@0.1.0, npm/@semantic-release/github@7.2.0, npm/@semantic-release/npm@7.0.10, npm/@semantic-release/release-notes-generator@9.0.1, npm/@sindresorhus/is@0.14.0, npm/@sinonjs/commons@1.8.2, npm/@sinonjs/fake-timers@6.0.1, npm/@szmarczak/http-timer@1.1.2, npm/@types/babel__core@7.1.12, npm/@types/babel__generator@7.6.2, npm/@types/babel__template@7.4.0, npm/@types/babel__traverse@7.11.0, npm/@types/glob@7.1.3, npm/@types/graceful-fs@4.1.5, npm/@types/istanbul-lib-coverage@2.0.3, npm/@types/istanbul-lib-report@3.0.0, npm/@types/istanbul-reports@3.0.0, npm/@types/jest@26.0.20, npm/@types/json-schema@7.0.7, npm/@types/parse-json@4.0.0, npm/@types/prettier@2.2.1, npm/@types/stack-utils@2.0.0, npm/@types/yargs-parser@20.2.0, npm/@types/yargs@15.0.13, npm/@typescript-eslint/eslint-plugin@4.15.0, npm/@typescript-eslint/experimental-utils@4.15.0, npm/@typescript-eslint/parser@4.15.0, npm/@typescript-eslint/scope-manager@4.15.0, npm/@typescript-eslint/types@4.15.0, npm/@typescript-eslint/typescript-estree@4.15.0, npm/@typescript-eslint/visitor-keys@4.15.0, npm/@vercel/node@1.9.0, npm/abab@2.0.5, npm/acorn-jsx@5.3.1, npm/acorn@7.4.1, npm/an-array-of-english-words@2.0.0, npm/ansi-colors@4.1.1, npm/ansi-escapes@4.3.1, npm/arr-diff@4.0.0, npm/arr-flatten@1.1.0, npm/array-includes@3.1.2, npm/array-unique@0.3.2, npm/array.prototype.flat@1.2.4, npm/assign-symbols@1.0.0, npm/async-limiter@1.0.1, npm/async-to-gen@1.3.3, npm/at-least-node@1.0.0, npm/atob@2.1.2, npm/await-outside@3.0.0, npm/babel-jest@26.6.3, npm/babel-plugin-istanbul@6.0.0, npm/babel-plugin-jest-hoist@26.6.2, npm/babel-preset-jest@26.6.2, npm/babylon@6.18.0, npm/base@0.11.2, npm/before-after-hook@2.1.1, npm/cache-base@1.0.1, npm/cacheable-request@6.1.0, npm/call-bind@1.0.2, npm/camelcase-keys@4.2.0, npm/capture-exit@2.0.0, npm/chardet@0.7.0, npm/ci-info@2.0.0, npm/cjs-module-lexer@0.6.0, npm/class-utils@0.3.6, npm/cli-cursor@3.1.0, npm/cli-table@0.3.5, npm/cli-width@3.0.0, npm/cliui@6.0.0, npm/clone-response@1.0.2, npm/collect-v8-coverage@1.0.1, npm/collection-visit@1.0.0, npm/component-emitter@1.3.0, npm/configstore@5.0.1, npm/contains-path@0.1.0, npm/convert-source-map@1.7.0, npm/copy-descriptor@0.1.1, npm/cosmiconfig@7.0.0, npm/coveralls@3.1.0, npm/create-qawolf@1.7.0, npm/cssom@0.4.4, npm/data-urls@2.0.0, npm/decimal.js@10.2.1, npm/decode-uri-component@0.2.0, npm/decompress-response@3.3.0, npm/deep-is@0.1.3, npm/deepmerge@4.2.2, npm/defer-to-connect@1.1.3, npm/define-properties@1.1.3, npm/define-property@2.0.2, npm/del-cli@3.0.0, npm/del@5.1.0, npm/diff-sequences@26.6.2, npm/duplexer3@0.1.4, npm/emittery@0.7.2, npm/enquirer@2.3.6, npm/env-ci@5.0.2, npm/es-abstract@1.18.0-next.2, npm/escalade@3.1.1, npm/escape-goat@2.1.1, npm/escodegen@1.14.3, npm/eslint-ast-utils@1.1.0, npm/eslint-config-prettier@6.15.0, npm/eslint-import-resolver-node@0.3.4, npm/eslint-module-utils@2.6.0, npm/eslint-plugin-github@4.1.1, npm/eslint-plugin-import@2.22.1, npm/eslint-plugin-jest@23.20.0, npm/eslint-plugin-prettier@3.3.1, npm/eslint-plugin-spellcheck@0.0.8, npm/eslint-plugin-unicorn@17.2.0, npm/eslint-template-visitor@1.1.0, npm/eslint-visitor-keys@2.0.0, npm/eslint@7.20.0, npm/esquery@1.4.0, npm/estraverse@4.3.0, npm/exec-sh@0.3.4, npm/expand-brackets@2.1.4, npm/expect-puppeteer@4.4.0, npm/expect@26.6.2, npm/extend-shallow@3.0.2, npm/external-editor@3.1.0, npm/extglob@2.0.4, npm/fast-diff@1.2.0, npm/fast-glob@3.2.5, npm/fastq@1.10.1, npm/fb-watchman@2.0.1, npm/file-entry-cache@6.0.0, npm/find-process@1.4.4, npm/flat-cache@3.0.4, npm/flatted@3.1.1, npm/fluent-ffmpeg@2.1.2, npm/fragment-cache@0.2.1, npm/fs-extra@9.1.0, npm/get-intrinsic@1.1.1, npm/get-stdin@6.0.0, npm/get-value@2.0.6, npm/git-log-parser@1.2.0, npm/global-dirs@2.1.0, npm/globals@12.4.0, npm/globby@11.0.2, npm/got@9.6.0, npm/growly@1.3.0, npm/has-symbols@1.0.1, npm/has-value@1.0.0, npm/has-values@1.0.0, npm/has-yarn@2.1.0, npm/http-cache-semantics@4.1.0, npm/husky@5.1.3, npm/ignore@4.0.6, npm/import-lazy@2.1.0, npm/import-local@3.0.2, npm/import-modules@2.1.0, npm/inquirer@7.3.3, npm/into-stream@5.1.1, npm/ip-regex@2.1.0, npm/is-accessor-descriptor@1.0.0, npm/is-callable@1.2.3, npm/is-ci@2.0.0, npm/is-data-descriptor@1.0.0, npm/is-date-object@1.0.2, npm/is-descriptor@1.0.2, npm/is-docker@2.1.1, npm/is-extendable@1.0.1, npm/is-installed-globally@0.3.2, npm/is-negative-zero@2.0.1, npm/is-npm@4.0.0, npm/is-path-inside@3.0.2, npm/is-plain-object@2.0.4, npm/is-potential-custom-element-name@1.0.0, npm/is-regex@1.1.2, npm/is-string@1.0.5, npm/is-symbol@1.0.3, npm/is-windows@1.0.2, npm/is-yarn-global@0.3.0, npm/istanbul-lib-coverage@3.0.0, npm/istanbul-lib-instrument@4.0.3, npm/istanbul-lib-report@3.0.0, npm/istanbul-lib-source-maps@4.0.0, npm/istanbul-reports@3.0.2, npm/jest-changed-files@26.6.2, npm/jest-circus@26.6.3, npm/jest-cli@26.6.3, npm/jest-config@26.6.3, npm/jest-dev-server@4.4.0, npm/jest-diff@26.6.2, npm/jest-docblock@26.0.0, npm/jest-each@26.6.2, npm/jest-environment-jsdom@26.6.2, npm/jest-environment-node@26.6.2, npm/jest-environment-puppeteer@4.4.0, npm/jest-get-type@26.3.0, npm/jest-haste-map@26.6.2, npm/jest-jasmine2@26.6.3, npm/jest-leak-detector@26.6.2, npm/jest-matcher-utils@26.6.2, npm/jest-message-util@26.6.2, npm/jest-mock@26.6.2, npm/jest-pnp-resolver@1.2.2, npm/jest-puppeteer@4.4.0, npm/jest-regex-util@26.0.0, npm/jest-resolve-dependencies@26.6.3, npm/jest-resolve@26.6.2, npm/jest-runner@26.6.3, npm/jest-runtime@26.6.3, npm/jest-serializer@26.6.2, npm/jest-snapshot@26.6.2, npm/jest-util@26.6.2, npm/jest-validate@26.6.2, npm/jest-watcher@26.6.2, npm/jest-worker@26.6.2, npm/jest@26.6.3, npm/jpeg-js@0.4.3, npm/jsdom@16.4.0, npm/jsesc@2.5.2, npm/json-buffer@3.0.0, npm/keyv@3.1.0, npm/latest-version@5.1.0, npm/load-json-file@2.0.0, npm/lodash.get@4.4.2, npm/lodash.sortby@4.7.0, npm/lodash.toarray@4.4.0, npm/lodash.zip@4.2.0, npm/lodash@4.17.20, npm/lowercase-keys@1.0.1, npm/magic-string@0.19.1, npm/make-dir@3.1.0, npm/makeerror@1.0.11, npm/map-cache@0.2.2, npm/map-obj@2.0.0, npm/map-visit@1.0.0, npm/marked-terminal@4.1.0, npm/marked@2.0.0, npm/meow@5.0.0, npm/micromatch@4.0.2, npm/mime@2.5.0, npm/mimic-response@1.0.1, npm/minimist-options@3.0.2, npm/mixin-deep@1.3.2, npm/mkdirp@1.0.4, npm/multimap@1.1.0, npm/mute-stream@0.0.8, npm/nanomatch@1.2.13, npm/node-emoji@1.10.0, npm/node-modules-regexp@1.0.0, npm/node-notifier@8.0.1, npm/normalize-url@4.5.0, npm/npm@6.14.11, npm/nwsapi@2.2.0, npm/object-copy@0.1.0, npm/object-inspect@1.9.0, npm/object-visit@1.0.1, npm/object.assign@4.1.2, npm/object.pick@1.3.0, npm/object.values@1.1.2, npm/onigasm@2.2.5, npm/optionator@0.9.1, npm/p-cancelable@1.1.0, npm/p-map@3.0.0, npm/p-retry@4.4.0, npm/package-json@6.5.0, npm/parse5@5.1.1, npm/pascalcase@0.1.1, npm/pirates@4.0.1, npm/pkg-dir@2.0.0, npm/playwright-chromium@1.8.1, npm/playwright-core@1.8.1, npm/playwright-video@2.4.0, npm/pngjs@5.0.0, npm/posix-character-classes@0.1.1, npm/prepend-http@2.0.0, npm/pretty-format@26.6.2, npm/prompts@2.4.0, npm/proper-lockfile@4.1.2, npm/pupa@2.1.1, npm/qawolf@1.2.0, npm/queue-microtask@1.2.2, npm/quick-lru@1.1.0, npm/react-is@17.0.1, npm/read-pkg-up@2.0.0, npm/read-pkg@2.0.0, npm/redent@2.0.0, npm/regex-not@1.0.2, npm/regexp-tree@0.1.23, npm/registry-auth-token@4.2.1, npm/registry-url@5.1.0, npm/remove-trailing-separator@1.1.0, npm/repeat-element@1.1.3, npm/request-promise-core@1.1.4, npm/request-promise-native@1.0.9, npm/require-main-filename@2.0.0, npm/reserved-words@0.1.2, npm/resolve-from@4.0.0, npm/resolve-url@0.2.1, npm/responselike@1.0.2, npm/restore-cursor@3.1.0, npm/ret@0.1.15, npm/retry@0.12.0, npm/rsvp@4.8.5, npm/run-async@2.4.1, npm/rx@4.1.0, npm/rxjs@6.6.3, npm/safe-regex@1.1.0, npm/sane@4.1.0, npm/semantic-release@17.3.9, npm/semver-regex@3.1.2, npm/set-blocking@2.0.0, npm/set-value@2.0.1, npm/shellwords@0.1.1, npm/shiki@0.9.3, npm/snapdragon-node@2.1.1, npm/snapdragon-util@3.0.1, npm/snapdragon@0.8.2, npm/source-map-resolve@0.5.3, npm/source-map-support@0.5.19, npm/source-map-url@0.4.1, npm/spawnd@4.4.0, npm/split-string@3.1.0, npm/stack-utils@2.0.3, npm/static-extend@0.1.2, npm/stealthy-require@1.1.1, npm/string-length@4.0.1, npm/string.prototype.trimend@1.0.3, npm/string.prototype.trimstart@1.0.3, npm/strip-bom@4.0.0, npm/strip-indent@2.0.0, npm/supports-hyperlinks@2.1.0, npm/table@6.0.7, npm/tempy@0.5.0, npm/term-size@2.2.1, npm/throat@5.0.0, npm/tmp@0.0.33, npm/tmpl@1.0.4, npm/to-object-path@0.3.0, npm/to-readable-stream@1.0.0, npm/to-regex@3.0.2, npm/tough-cookie@3.0.1, npm/tr46@2.0.2, npm/traverse@0.6.6, npm/trim-newlines@2.0.0, npm/ts-jest@26.5.1, npm/ts-node@9.1.1, npm/tsutils@3.20.0, npm/typedoc@0.20.35, npm/typescript@4.1.5, npm/unfetch@4.2.0, npm/unherit@1.1.3, npm/unified-args@8.1.0, npm/unified-engine@8.1.0, npm/unified-lint-rule@1.0.6, npm/unified@9.2.1, npm/union-value@1.0.1, npm/unique-string@2.0.0, npm/unist-util-generated@1.1.6, npm/unist-util-inspect@5.0.1, npm/unist-util-is@4.1.0, npm/unist-util-position@3.1.0, npm/unist-util-remove-position@1.1.4, npm/unist-util-stringify-position@2.0.3, npm/unist-util-visit-parents@3.1.1, npm/unist-util-visit@2.0.3, npm/universal-user-agent@6.0.0, npm/universalify@2.0.0, npm/unset-value@1.0.0, npm/untildify@2.1.0, npm/update-notifier@4.1.3, npm/uri-js@4.4.1, npm/urix@0.1.0, npm/url-join@4.0.1, npm/url-parse-lax@3.0.0, npm/use@3.1.1, npm/util-deprecate@1.0.2, npm/util-extend@1.0.3, npm/uuid@8.3.2, npm/v8-compile-cache@2.2.0, npm/v8-to-istanbul@7.1.0, npm/validate-npm-package-license@3.0.4, npm/verror@1.10.0, npm/vfile-location@2.0.6, npm/vfile-message@2.0.4, npm/vfile-reporter@6.0.2, npm/vfile-sort@2.2.2, npm/vfile-statistics@1.1.4, npm/vfile@4.2.1, npm/vlq@0.2.3, npm/vscode-textmate@5.4.0, npm/w3c-hr-time@1.0.2, npm/w3c-xmlserializer@2.0.0, npm/wait-on@3.3.0, npm/wait-port@0.2.9, npm/walker@1.0.7, npm/webidl-conversions@6.1.0, npm/whatwg-encoding@1.0.5, npm/whatwg-mimetype@2.3.0, npm/whatwg-url@8.4.0, npm/which-module@2.0.0, npm/which@2.0.2, npm/widest-line@3.1.0
🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎
To accept the risk, merge this PR and you will not be notified again.
Alert | Package | Note | Source | CI |
---|---|---|---|---|
Install scripts | npm/ssh2@1.15.0 |
| 🚫 |
Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.
Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.
If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.
To ignore an alert, reply with a comment starting with @SocketSecurity ignore
followed by a space separated list of ecosystem/package-name@version
specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0
or ignore all packages with @SocketSecurity ignore-all
@SocketSecurity ignore npm/ssh2@1.15.0
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.
Thanks for opening an issue! Make sure you've followed CONTRIBUTING.md.
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.
This PR contains the following updates:
^34.0.1
->^55.0.0
Release Notes
sindresorhus/eslint-plugin-unicorn (eslint-plugin-unicorn)
### [`v55.0.0`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v55.0.0) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v54.0.0...v55.0.0) ##### New rules - [`no-length-as-slice-end`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-length-as-slice-end.md) ([#2400](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2400)) [`3c33820`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/3c33820) ##### Improvements - Add TypeScript types ([#2382](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2382)) [`68e0f13`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/68e0f13) ##### Fixes - `no-single-promise-in-promise-methods`: Remove broken autofix for `Promise.all()` ([#2386](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2386)) [`8d28b6e`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/8d28b6e) - `prefer-node-protocol`: Ignore Bun modules ([#2384](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2384)) [`a45b24a`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/a45b24a) - `no-negation-in-equality-check`: Ignore boolean type casting ([#2379](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2379)) [`37e00dd`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/37e00dd) ### [`v54.0.0`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v54.0.0) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v53.0.0...v54.0.0) ##### New rules - [`no-negation-in-equality-check`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-negation-in-equality-check.md) ([#2353](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2353)) [`8957a03`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/8957a03) ##### Breaking - `prefer-array-find`: Change [`checkFromLast`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-find.md#checkfromlast) default value to `true` ([#2367](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2367)) [`a449af9`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/a449af9) ##### Improvements - Add name to flat configs ([#2377](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2377)) [`ac8536e`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/ac8536e) - `prefer-array-some`: Check `Array#{findIndex,findLastIndex}()` ([#2370](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2370)) [`10568ab`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/10568ab) - `prefer-includes`: Check `.lastIndexOf()` ([#2368](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2368)) [`d812ad1`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/d812ad1) - `prefer-string-raw`: Ignore strings in Enums ([#2354](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2354)) [`175ea04`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/175ea04) ##### Fixes - Fix edge cases when add `new` to calls ([#2352](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2352)) [`d8f8161`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/d8f8161) ### [`v53.0.0`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v53.0.0) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v52.0.0...v53.0.0) ##### New rules - [`consistent-empty-array-spread`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-empty-array-spread.md) ([#2349](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2349)) [`8d7954c`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/8d7954c) - [`prefer-string-raw`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-string-raw.md) ([#2339](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2339)) [`4f1400a`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/4f1400a) - [`no-invalid-fetch-options`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-invalid-fetch-options.md) ([#2338](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2338)) [`342aafb`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/342aafb) - [`no-magic-array-flat-depth`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-magic-array-flat-depth.md) ([#2335](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2335)) [`bc17428`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/bc17428) - [`prefer-structured-clone`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-structured-clone.md) ([#2329](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2329)) [`497519e`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/497519e) ##### Breaking - Require Node.js 18.18 ([#2250](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2250)) [`598f57b`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/598f57b) ##### Meta - You can now [sponsor @fisker](https://togithub.com/sponsors/fisker) for his work on this project ([#2348](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2348)) [`b82542d`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/b82542d) ##### Improvements - Support ESLint 9 ([#2250](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2250)) [`598f57b`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/598f57b) - `no-array-method-this-argument`: Check `Array.fromAsync()` ([#2330](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2330)) [`99489b9`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/99489b9) - `prefer-number-properties`: Add `checkNaN` option ([#2315](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2315)) [`d30de50`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/d30de50) - `template-indent`: Support member expression paths in `tags` and `functions` ([#2346](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2346)) [`aabcf1d`](https://togithub.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://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2312)) [`e0dfed2`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/e0dfed2) - `escape-case`: Ignore `String.raw` ([#2342](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2342)) [`45bd444`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/45bd444) - `no-hex-escape`: Ignore `String.raw` ([#2343](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2343)) [`cc02a7f`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/cc02a7f) - `prefer-dom-node-dataset`: Ignore `await`ed `getAttribute` call ([#2334](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2334)) [`45f23d5`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/45f23d5) - `prevent-abbreviations`: Support non-ASCII filenames ([#2308](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2308)) [`28762c8`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/28762c8) - `throw-new-error`: Check all call expressions instead of just argument of `ThrowStatement` ([#2332](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2332)) [`1626852`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/1626852) ### [`v52.0.0`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v52.0.0) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v51.0.1...v52.0.0) ##### New rules - [`no-single-promise-in-promise-methods`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-single-promise-in-promise-methods.md) ([#2258](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2258)) [`8f0ee89`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/8f0ee89) - [`no-await-in-promise-methods`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-await-in-promise-methods.md) ([#2259](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2259)) [`a3be554`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/a3be554) - [`no-anonymous-default-export`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-anonymous-default-export.md) ([#2273](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2273)) [`c035216`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/c035216) ##### Improvements - `filename-case`: Add option for multiple file extensions ([#2186](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2186)) [`4594020`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/4594020) - `import-style`: Support `node:` protocol ([#2297](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2297)) [`c28a086`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/c28a086) - `prefer-array-find`: Check `array.filter().at(0)` ([#2284](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2284)) [`e6074fe`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/e6074fe) - `prefer-prototype-methods`: Check `Object.prototype` methods from `globalThis` ([#2286](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2286)) [`1792d33`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/1792d33) - `no-array-callback-reference`: Check logical expressions and check ternaries deeply ([#2289](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2289)) [`231529a`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/231529a) ##### Fixes - `prefer-spread`: Fix it to not report on optional chaining ([#2304](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2304)) [`df1ff1c`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/df1ff1c) - `no-anonymous-default-export`: Uppercase class name ([#2282](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2282)) [`5ce4169`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/5ce4169) ### [`v51.0.1`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v51.0.1) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v51.0.0...v51.0.1) - `prefer-node-protocol`: Fix false positive on `bun:*` modules ([#2272](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2272)) [`43fc638`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/43fc638) ### [`v51.0.0`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v51.0.0) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v50.0.1...v51.0.0) ##### Breaking - `consistent-destructuring`: Remove from `recommended` preset ([#2260](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2260)) [`702d51b`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/702d51b) ##### Improvements - `no-array-method-this-argument`: Check `Array.from()` ([#2262](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2262)) [`797caee`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/797caee) ##### Fixes - `no-thenable`: Fix crash on `{[Symbol.prototype]: 0}` ([#2248](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2248)) [`3c7d7c0`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/3c7d7c0) - `prefer-prototype-methods`: Fix argument of `isMethodCall` ([#2247](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2247)) [`3b504fa`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/3b504fa) ### [`v50.0.1`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v50.0.1) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v50.0.0...v50.0.1) ##### Fixes - `no-unnecessary-polyfills`: Fix missing dependency error ([#2242](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2242)) [`3df1606`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/3df16068) ### [`v50.0.0`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v50.0.0) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v49.0.0...v50.0.0) ##### New rules - [`no-unnecessary-polyfills`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-polyfills.md) ([#1717](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1717)) [`6788d86`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/6788d86) ##### Improvements - Support ESLint's new config system ([#1886](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1886)) [`65711f9`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/65711f9) - `no-useless-undefined`: Add `checkArrowFunctionBody` option ([#2232](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2232)) [`9d7048c`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/9d7048c) - `prefer-negative-index`: Check `TypedArray#subarray()` ([#2237](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2237)) [`6708a30`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/6708a30) - `no-useless-undefined`: Ignore React state setters ([#2223](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2223)) [`42881ba`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/42881ba) - `prefer-module`: Allow `module` as TSTypeParameter name ([#2213](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2213)) [`8f61f7c`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/8f61f7c) ##### Fixes - `string-content`: Fix JSX autofix for newlines, etc. ([#2222](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2222)) [`b95e75e`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/b95e75e) ### [`v49.0.0`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v49.0.0) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v48.0.1...v49.0.0) ##### Improvements - `expiring-todo-comments`: Support monorepos ([#2159](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2159)) [`ac51d40`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/ac51d40) - `prefer-module`: Allow `module` as TSIndexSignature names or TSTypeAliasDeclaration ids ([#2209](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2209)) [`ea94b3b`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/ea94b3b) - Support RegExp `v` flag ([#2195](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2195)) [`28e7498`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/28e7498) - `prefer-event-target`: Ignore `EventEmitter` from `@angular/core` and `eventemitter3` ([#2197](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2197)) [`1629ebe`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/1629ebe) ### [`v48.0.1`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v48.0.1) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v48.0.0...v48.0.1) - `no-empty-file`: Fix directive check for TypeScript parser ([#2180](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2180)) [`1bb9ce8`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/1bb9ce8) ### [`v48.0.0`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v48.0.0) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v47.0.0...v48.0.0) ##### Improvements - Deprecate `no-unsafe-regex` rule ([#2135](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2135)) [`7b473aa`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/7b473aa) - `prefer-top-level-await`: Ignore promises inside `Promise.{all,allSettled,any,race}()` ([#2139](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2139)) [`d3f6b60`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/d3f6b60) - `no-process-exit`: Ignore when using `node:worker_threads` module ([#2136](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2136)) [`2907805`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/2907805) - `prefer-array-some`: Ignore filter calls with literal argument ([#2097](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2097)) [`7a32edb`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/7a32edb) - `prefer-modern-math-api`: Check cases that `Math.hypot()` should be preferred ([#2080](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2080)) [`9bbc948`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/9bbc948) - `explicit-length-check`: Ignore `.length || number` ([#1977](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1977)) [`b9b8794`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/b9b8794) ##### Fixes - Fix crash on array holes ([#2129](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2129)) [`f10f1a6`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/f10f1a6) - `prefer-dom-node-dataset`: Fix edge cases ([#2171](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2171)) [`b2d7378`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/b2d7378) - `prefer-dom-node-dataset`: Remove broken fix for `element.setAttribute` ([#2169](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2169)) [`61234af`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/61234af) - `no-lonely-if`: Fix an edge case ([#2168](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2168)) [`ca837a8`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/ca837a8) - `no-useless-undefined`: Turn parameter with `undefined` default value into optional parameter ([#2138](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2138)) [`4aa7d60`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/4aa7d60) - `no-thenable`: Fix `Object.fromEntries()` check ([#2130](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2130)) [`f3265b9`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/f3265b9) - `prefer-dom-node-remove`: Fix incorrect auto-fix ([#2084](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2084)) [`74bb36d`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/74bb36d) ### [`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/tagConfiguration
📅 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.