github sindresorhus/eslint-plugin-unicorn v2.0.0
2.0.0

latest releases: v53.0.0, v52.0.0, v51.0.1...
7 years ago

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

Don't miss a new eslint-plugin-unicorn release

NewReleases is sending notifications on new releases.