Releases: sindresorhus/eslint-plugin-unicorn
Releases · sindresorhus/eslint-plugin-unicorn
v5.0.0
v4.0.0
- Added:
prefer-add-event-listener
rule. b7e4afb - Added:
prefer-spread rule
rule. aeedf6f Added:(Disabled for now)no-unsafe-regex
rule. b1beb61- Added:
error-message
rule. dd05f68 - Added:
caughtErrorsIgnorePattern
option tocatch-error-name
rule. 54738be - Improvement: Exclude index.js from the
filename-case
rule. 6a9b550 - Fixed: Allow specifying rules from a scoped plugin in the
no-abusive-eslint-disable
rule. 1b7c27f - Fixed: Allow regex literal inside RegExp constructor in the
regex-shorthand
rule. adc59db
Big thanks to @johnwu93 @bdougherty @evilebottnawi @Arcanemagus @sudo-suhas for contributing to this release! 🎉
v3.0.1
Bugfixes
v3.0.0
- Added
import-index
rule. cab60da - Added
new-for-builtins
rule. 9dfd508 - Added
regex-shorthand
rule. cba8dd9 - Added
no-fn-reference-in-iterator
rule. c11cc5d - Added non-zero length style option to
explicit-length-check
rule. 0c61fde - Re-enabled the
escape-case
andno-hex-escape
rules. They were previously disabled because of some issues. 81b92a9
All changes: v2.1.1...v3.0.0
2.1.1
2.1.0
- Support custom errors in the
throw-new-error
rule - Bug fix for number only escapes in
escape-case
rule
2.0.1
Fixed some urgent crasher issues.
Help wanted to add integration tests so this doesn't happen in the future.
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
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)