Skip to content

Releases: sindresorhus/eslint-plugin-unicorn

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

2.1.0

10 Mar 03:08
Compare
Choose a tag to compare
  • Support custom errors in the throw-new-error rule
  • Bug fix for number only escapes in escape-case rule

v2.0.1...v2.1.0

2.0.1

06 Feb 10:53
Compare
Choose a tag to compare

Fixed some urgent crasher issues.


Help wanted to add integration tests so this doesn't happen in the future.

2.0.0

06 Feb 08:17
Compare
Choose a tag to compare

8 new rules

  • number-literal-case - Enforce lowercase identifier and uppercase value for number literals. (fixable)
  • no-array-instanceof - Disallow instanceof Array, instead use Array.isArray(). (fixable)
  • no-new-buffer - Enforce the use of Buffer.from() and Buffer.alloc() instead of the deprecated new Buffer(). (fixable)
  • no-hex-escape - Enforce the use of unicode escapes instead of hexadecimal escapes. (fixable)
  • escape-case - Require escape sequences to use uppercase values. (fixable)
  • custom-error-definition - Enforces the only valid way of Error subclassing. (fixable)
  • prefer-starts-ends-with - Prefer String#startsWith & String#endsWith over more complex alternatives.
  • prefer-type-error - Enforce throwing TypeError in type checking conditions. (fixable)

v1.0.0...v2.0.0

unicorn3