Skip to content

Releases: sindresorhus/eslint-plugin-unicorn

v62.0.0

26 Oct 07:00

Choose a tag to compare

New rules

Improvements

  • text-encoding-identifier-case: Add withDash option (#2780) 9025386
  • no-useless-undefined: Check one undefined at a time (#2792) 27f7509
  • prefer-single-call: Check optional chaining (#2788) 8a132ac
  • text-encoding-identifier-case: Enforce 'utf-8' in form[acceptCharset] and TextDecoder (#2785) 46b3974
  • prefer-node-protocol: Handle TypeScript import types (#2774) 13a37a0
  • no-array-for-each: Ignore forEach for Effect library (#2783) 2ef6f83
  • prefer-string-raw: Ignore more places that requires a string (#2776) 43bc429
  • prefer-string-raw: Add support for template literals (#2691) 52723a2
  • prefer-global-this: Add navigation to windowSpecificAPIs (#2770) 0c93998
  • prefer-code-point: Report cases where String.fromCharCode is not called directly (#2766) 1d682a1
  • no-useless-spread: Safely remove empty array and object (#2764) 7aeabab

Fixes

  • consistent-function-scoping: Fix inconsistent behavior (#2748) a546444

v61.0.2...v62.0.0

v61.0.2

08 Sep 09:24

Choose a tag to compare

  • throw-new-error: Fix false positive for Effect library (#2740) 0ddf5ea
  • no-useless-undefined: Ignore Set#delete(undefined) (#2739) 99acd27
  • prefer-includes and prefer-array-index-of: Prevent crash on Vue files (#2645) a1da518

v61.0.1...v61.0.2

v61.0.1

06 Sep 07:56

Choose a tag to compare

  • prefer-classlist-toggle: Omit Element#classList.contains() call when fixing (#2732) 066f96b

v61.0.0...v61.0.1

v61.0.0

05 Sep 17:42

Choose a tag to compare

New rules

Improvements

  • Add unopinionated config (#2715) c13d09b
  • Improve compatibility with optional chaining (#2727) 60b2ec5
  • no-array-reduce: Report optional chaining and calling of .reduce() (#2721) caa1f8b
  • prefer-type-error: Ignore error type check (#2729) d12fc01

Fixes

  • prefer-includes: Fix compatibility with Vue SFC (#2704) 540a4d4

v60.0.0...v61.0.0

v60.0.0

21 Jul 11:23

Choose a tag to compare

Breaking

New rules

Improvements

Fixes

  • no-array-callback-reference: Fix optional chaining expressions being ignored (#2694) ad27922
  • no-unnecessary-await: Fix handling of experimental pipeline operator (#2658) 2b8ebe5

v59.0.1...v60.0.0

v59.0.1

06 May 07:12

Choose a tag to compare

  • prefer-single-call: Fix crash on CallExpression followed by FunctionDeclaration (#2639) 3114dd9

v59.0.0...v59.0.1

v59.0.0

27 Apr 13:46

Choose a tag to compare

Breaking

  • Rename no-array-push-push rule to prefer-single-call (#2617) e117783
  • Rename no-length-as-slice-end rule to no-unnecessary-slice-end (#2614) 1922df1

New rules

Improvements


v58.0.0...v59.0.0

v58.0.0

24 Mar 09:21

Choose a tag to compare

Potentially breaking

  • Update engines.node in package.json to match real compatibility (#2581) e48a620

Improvements

Fixes

  • no-unnecessary-polyfills: Fix browserslist field name (#2603) 1a4c76f
  • no-unnecessary-polyfills: Fix crash on checking es6-error module (#2582) 66de41a
  • no-accessor-recursion: Fix exception when used in CommonJS (#2574) ca1e432

v57.0.0...v58.0.0

v57.0.0

17 Feb 18:46

Choose a tag to compare

Breaking

New rules

Improvements

Fixes

  • new-for-builtins: Correct fix for Date() (#2543) e5e17f8
  • prefer-global-this: Fix auto-fix for typeof window (#2501) b95dc12

v56.0.1...v57.0.0

v56.0.1

19 Nov 09:43

Choose a tag to compare

  • expiring-todo-comments: Fix compatibility with ESLint 9.15 (#2497) 16b09d3

v56.0.0...v56.0.1