Releases: sindresorhus/eslint-plugin-unicorn
Releases · sindresorhus/eslint-plugin-unicorn
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
Fixes
v11.0.2
v11.0.1
v11.0.0
New rules
- Add
expiring-todo-comments
rule (#302) 6b6cee5 - Add
no-nested-ternary
rule (#296) 767fa8d - Add
consistent-function-scoping
rule (#309) 91bbff5 - Add
prefer-reflect-apply
rule (#239) 0b9c0fe - Add
prefer-dataset
rule (#225) 0910972
Enhancements
- Add more replacements to the
prevent-abbreviations
rule: 9b81e11 8ff4d91 dc8841a f500437param
→parameter
params
→parameters
cur
→current
curr
→current
acc
→accumulator
dir
→direction
- Add
BigInt64Array
andBigUint64Array
types to thenew-for-builtins
rule (#353) e7ff2de - Add support for
isBigInt
type check to theprefer-type-error
rule (#356) 186abd3 - Refactor the
prevent-abbreviations
rule to handle more cases (#337) 9db361f
Fixes
v10.0.0
Breaking
New rules
Enhancements
- Add
checkFilenames
option to theprevent-abbreviations
rule (#336) 4c3d61c - Allow disabling of
xo/no-abusive-eslint-disable
via a comment (#308) 0fb6fcf - prefer-flat-map: Report for common concat pattern (#323) c2b8e76