Skip to content

Releases: sindresorhus/eslint-plugin-unicorn

v9.1.1

22 Jun 14:00
Compare
Choose a tag to compare
  • prefer-node-append: Only fix when expression is not used (#321) d62666d

v9.1.0...v9.1.1

v9.1.0

10 Jun 14:23
Compare
Choose a tag to compare

Enhancements

  • Apply the escape-case rule to regex literals and remove transformation of \c escape on string literals (#294) 79748e1
  • Add BigInt type to the new-for-builtins rule (#310) e17f0fd

Fixes

  • Do not warn if .flat() has more than one parameter or if the one parameter is not 1 (#317) 6f10722
  • custom-error-definition: Cover exports name (#313) 3f2e9a6

Meta

v9.0.0...v9.1.0

v9.0.0

31 May 04:50
Compare
Choose a tag to compare

Breaking

  • Require Node.js 8 9b9d761
  • Use underscore naming pattern in the catch-error-name rule (#306) 0f8d5b4

New rules

Enhancements

Fixes

  • Fix operator precedence bugs in the prefer-exponentiation-operator rule (#305) dc90c1e
  • Fix the prefer-includes rule fixer omitting parentheses (#287) e36d25c

v8.0.2...v9.0.0

v8.0.2

09 Apr 17:32
Compare
Choose a tag to compare
  • Don't use non-standard AST property in no-for-loop rule (#279) b86d456

v8.0.1...v8.0.2

v8.0.1

28 Mar 12:59
Compare
Choose a tag to compare
  • Fix prevent-abbreviations breaking shorthand properties in assignment patterns (#268) d30751a

v8.0.0...v8.0.1

v8.0.0

27 Mar 10:47
Compare
Choose a tag to compare

This release is focused on helping you write more readable code and to adopt modern APIs. My favorite is the prevent-abbreviations rule, which encourages you to pick readable variable names.

New rules

Enhancements

Fixes

  • Fix the default value for the filename-case rule 139ac16
  • Fix ES2015 exports not counting an object as used (#217) 6d5bb10
  • Fix catch-error-name fixer not renaming all references in .catch case (#258) c2e4a9d
  • Don't fix onbeforeunload unless it's handler does not return anything (#218) db2f192
  • Prevent false-positives in the no-fn-reference-in-iterator rule (#172) 73e8d5d

v7.1.0...v8.0.0

v7.1.0

22 Jan 09:27
Compare
Choose a tag to compare
  • Make the catch-error-name rule fixable in most cases (#209) 3c66c0e
  • Make the no-abusive-eslint-disable rule support shorthand syntax (#212) fcee1c6

v7.0.0...v7.1.0

v7.0.0

14 Jan 05:37
Compare
Choose a tag to compare

v6.0.1...v7.0.0

It's a major release as the recommended config received new rules which could potentially break your build.

v6.0.1

03 Sep 10:09
Compare
Choose a tag to compare
  • catch-error-name rule: Support optional catch binding (#187)

v6.0.0

23 Aug 16:44
Compare
Choose a tag to compare
  • Add prefer-exponentiation-operator rule. (#185) 9f7f811
  • Change the default name option of the catch-error-name rule to be error instead of err. 7a1f1a1
  • Re-enable the catch-error-name rule. 341ee3a
  • Include the plugin itself in the recommended preset. a41a77b
  • regex-shorthand rule: Escape backslash and apostrophe. (#183) 8a50f40
  • filename-case rule: Survive missing options block. (#184) 2283cda

v5.0.0...v6.0.0