Releases: sindresorhus/eslint-plugin-unicorn
Releases · sindresorhus/eslint-plugin-unicorn
v16.0.0
Breaking
- Require Node.js 10 d2ffe2c
New rules
- Add
prefer-replace-all
rule (#488) d98c277
Improvements
- Allow disabling of regexp character sorting in the
regex-shorthand
rule (#468) fb0268b - Deprecate our
prefer-exponentiation-operator
rule in favor of the built-in ESLint rule (#484) c4ffb1a - Improve
number-literal-case
rule (#490) cea1346
Fixes
- Fix
expiring-todo-comments
crashing on invalid package version (#494) fd46adc - Fix invalid autofix with array destructuring in
no-for-loops
rule (#489) 94345a3 prefer-modern-dom-apis
: Only fix when expression is not used (#503) 096feadprefer-node-remove
: Only fix when expression is not used (#498) b1d3f37
v15.0.1
- Fix Node.js 8 compatibility 54d3a01
v15.0.0
New rules
Enhancements
Fixes
v14.0.1
v14.0.0
New rules
- Add
prefer-negative-index
rule (#417) 20dfb65 - Add
prefer-trim-start-end
rule (#440) 29e3b13
Improvements
- Extend fixers for
prefer-string-slice
rule (#424) 567c970 - Add
ignoreImports
option toimport-index
rule (#421) bda7769 - Make
regex-shorthand
rule useregexp-tree
for regex literals (#437) 3554c17
Fixes
v13.0.0
Breaking
- Change some options for
prevent-abbreviations
rule (#422) 4d5f5cb
ThecheckDefaultAndNamespaceImports
andcheckShorthandImports
options accept a string instead of a boolean now. The default value changed from always checking to only checking internal imports (meaning local modules and not published packages).
Enhancements
- Support pre-release versions in
expiring-todo-comments
rule (#435) a03132e - Add
ignore
option to thefilename-case
rule (#431) 1bc47a0
Fixes
v12.1.0
v12.0.2
v12.0.1
v12.0.0
New rules
Enhancements
- Update
filename-case
rule to handle complicated filename (#381) 871dab7 - Update
prevent-abbreviations
to ignore uppercase letters (#379) 50e6655