Skip to content

Releases: sindresorhus/eslint-plugin-unicorn

v56.0.1

19 Nov 09:43
Compare
Choose a tag to compare
  • expiring-todo-comments: Fix compatibility with ESLint 9.15 (#2497) 16b09d3

v56.0.0...v56.0.1

v56.0.0

03 Oct 21:35
Compare
Choose a tag to compare

New rules

Breaking

Improvements

  • no-useless-undefined: Ignore React 19 useRef calls (#2463) 5f744e8
  • prefer-query-selector: Add support for getElementsByName (#2398) e511ffd
  • prefer-string-slice: Remove unsafe autofix for String#substr() (#2427) 891842d
  • no-for-loop: Remove invalid fix for TypeScript (#2426) 1e367bb

v55.0.0...v56.0.0

v55.0.0

24 Jul 22:47
Compare
Choose a tag to compare

New rules

Improvements

Fixes

  • no-single-promise-in-promise-methods: Remove broken autofix for Promise.all() (#2386) 8d28b6e
  • prefer-node-protocol: Ignore Bun modules (#2384) a45b24a
  • no-negation-in-equality-check: Ignore boolean type casting (#2379) 37e00dd

v54.0.0...v55.0.0

v54.0.0

14 Jun 12:51
Compare
Choose a tag to compare

New rules

Breaking

Improvements

Fixes

v53.0.0...v54.0.0

v53.0.0

10 May 06:08
Compare
Choose a tag to compare

New rules

Breaking

Meta

Improvements

  • Support ESLint 9 (#2250) 598f57b
  • no-array-method-this-argument: Check Array.fromAsync() (#2330) 99489b9
  • prefer-number-properties: Add checkNaN option (#2315) d30de50
  • template-indent: Support member expression paths in tags and functions (#2346) aabcf1d
  • prefer-number-properties: Don't require by default for Infinity/-Infinity to be written as Number.POSITIVE_INFINITY/Number.NEGATIVE_INFINITY (#2312) e0dfed2
  • escape-case: Ignore String.raw (#2342) 45bd444
  • no-hex-escape: Ignore String.raw (#2343) cc02a7f
  • prefer-dom-node-dataset: Ignore awaited getAttribute call (#2334) 45f23d5
  • prevent-abbreviations: Support non-ASCII filenames (#2308) 28762c8
  • throw-new-error: Check all call expressions instead of just argument of ThrowStatement (#2332) 1626852

v52.0.0...v53.0.0

v52.0.0

03 Apr 15:29
Compare
Choose a tag to compare

New rules

Improvements

  • filename-case: Add option for multiple file extensions (#2186) 4594020
  • import-style: Support node: protocol (#2297) c28a086
  • prefer-array-find: Check array.filter().at(0) (#2284) e6074fe
  • prefer-prototype-methods: Check Object.prototype methods from globalThis (#2286) 1792d33
  • no-array-callback-reference: Check logical expressions and check ternaries deeply (#2289) 231529a

Fixes

  • prefer-spread: Fix it to not report on optional chaining (#2304) df1ff1c
  • no-anonymous-default-export: Uppercase class name (#2282) 5ce4169

v51.0.1...v52.0.0

v51.0.1

06 Feb 20:30
Compare
Choose a tag to compare
  • prefer-node-protocol: Fix false positive on bun:* modules (#2272) 43fc638

v51.0.0...v51.0.1

v51.0.0

06 Feb 06:45
Compare
Choose a tag to compare

Breaking

  • consistent-destructuring: Remove from recommended preset (#2260) 702d51b

Improvements

  • no-array-method-this-argument: Check Array.from() (#2262) 797caee

Fixes

  • no-thenable: Fix crash on {[Symbol.prototype]: 0} (#2248) 3c7d7c0
  • prefer-prototype-methods: Fix argument of isMethodCall (#2247) 3b504fa

v50.0.1...v51.0.0

v50.0.1

21 Dec 07:52
Compare
Choose a tag to compare

Fixes

  • no-unnecessary-polyfills: Fix missing dependency error (#2242) 3df1606

v50.0.0...v50.0.1

v50.0.0

21 Dec 03:30
Compare
Choose a tag to compare

New rules

Improvements

  • Support ESLint's new config system (#1886) 65711f9
  • no-useless-undefined: Add checkArrowFunctionBody option (#2232) 9d7048c
  • prefer-negative-index: Check TypedArray#subarray() (#2237) 6708a30
  • no-useless-undefined: Ignore React state setters (#2223) 42881ba
  • prefer-module: Allow module as TSTypeParameter name (#2213) 8f61f7c

Fixes

  • string-content: Fix JSX autofix for newlines, etc. (#2222) b95e75e

v49.0.0...v50.0.0