Skip to content

Releases: sindresorhus/eslint-plugin-unicorn

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

v5.0.0

28 Jul 14:42
Compare
Choose a tag to compare
  • Require ESLint 5. a6ce053
  • Require Node.js 6. b546647
  • Also check conditional expressions in explicit-length-check rule. ad1fd85

v4.0.3...v5.0.0

v4.0.0

13 Feb 05:32
Compare
Choose a tag to compare

v3.0.1...v4.0.0

Big thanks to @johnwu93 @bdougherty @evilebottnawi @Arcanemagus @sudo-suhas for contributing to this release! 🎉

v3.0.1

12 Dec 21:50
Compare
Choose a tag to compare

v3.0.0

09 Nov 13:00
Compare
Choose a tag to compare

All changes: v2.1.1...v3.0.0

unicorn26

2.1.1

25 Mar 20:17
Compare
Choose a tag to compare

Disable the escape-case and no-hex-escape rules in the recommended config until they work reliably. b892525

See: #85