Releases: sindresorhus/eslint-plugin-unicorn
Releases · sindresorhus/eslint-plugin-unicorn
2.0.0
8 new rules
- number-literal-case - Enforce lowercase identifier and uppercase value for number literals. (fixable)
- no-array-instanceof - Disallow
instanceof Array, instead useArray.isArray(). (fixable) - no-new-buffer - Enforce the use of
Buffer.from()andBuffer.alloc()instead of the deprecatednew 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
Errorsubclassing. (fixable) - prefer-starts-ends-with - Prefer
String#startsWith&String#endsWithover more complex alternatives. - prefer-type-error - Enforce throwing
TypeErrorin type checking conditions. (fixable)
