Releases: sindresorhus/eslint-plugin-unicorn
Releases · sindresorhus/eslint-plugin-unicorn
v11.0.1
v11.0.0
New rules
- Add
expiring-todo-commentsrule (#302) 6b6cee5 - Add
no-nested-ternaryrule (#296) 767fa8d - Add
consistent-function-scopingrule (#309) 91bbff5 - Add
prefer-reflect-applyrule (#239) 0b9c0fe - Add
prefer-datasetrule (#225) 0910972
Enhancements
- Add more replacements to the
prevent-abbreviationsrule: 9b81e11 8ff4d91 dc8841a f500437param→parameterparams→parameterscur→currentcurr→currentacc→accumulatordir→direction
- Add
BigInt64ArrayandBigUint64Arraytypes to thenew-for-builtinsrule (#353) e7ff2de - Add support for
isBigInttype check to theprefer-type-errorrule (#356) 186abd3 - Refactor the
prevent-abbreviationsrule to handle more cases (#337) 9db361f
Fixes
v10.0.0
Breaking
New rules
Enhancements
- Add
checkFilenamesoption to theprevent-abbreviationsrule (#336) 4c3d61c - Allow disabling of
xo/no-abusive-eslint-disablevia a comment (#308) 0fb6fcf - prefer-flat-map: Report for common concat pattern (#323) c2b8e76
Fixes
v9.1.1
v9.1.0
Enhancements
- Apply the
escape-caserule to regex literals and remove transformation of\cescape on string literals (#294) 79748e1 - Add
BigInttype to thenew-for-builtinsrule (#310) e17f0fd
Fixes
- Do not warn if
.flat()has more than one parameter or if the one parameter is not1(#317) 6f10722 custom-error-definition: Cover exports name (#313) 3f2e9a6
Meta
v9.0.0
Breaking
New rules
- Add
prefer-event-keyrule (#226) 9bede78 - Add
prefer-flat-maprule (#284) d440daa
Enhancements
- Add
casesoption to thefilename-caserule (#291) 43a6e9a - Make the
no-for-looprule handle more cases (#297) 3c0c7b9 - Make the
import-indexrule handle more cases (#293) f0c0a4f
Fixes
v8.0.2
v8.0.1
v8.0.0
This release is focused on helping you write more readable code and to adopt modern APIs. My favorite is the prevent-abbreviations rule, which encourages you to pick readable variable names.
New rules
- Add
prevent-abbreviationsrule (#237) 76ff30e - Add
no-for-looprule (#221) b94ab9a - Add
no-zero-fractionsrule (#244) 75b8192 - Add
prefer-includesrule (#214) a330d74 - Add
prefer-text-contentrule (#223) c493115 - Add
prefer-node-removerule (#222) fda5517
Enhancements
- Add
meta.typeto rules (#241) 610a901 - Add
excludedPackagesoption to theprefer-add-event-listenerrule (#235) f141a4c - Add event clearing to
prefer-add-event-listenerrule (#216) 7503d12
Fixes
- Fix the default value for the
filename-caserule 139ac16 - Fix ES2015 exports not counting an object as used (#217) 6d5bb10
- Fix
catch-error-namefixer not renaming all references in.catchcase (#258) c2e4a9d - Don't fix
onbeforeunloadunless it's handler does not return anything (#218) db2f192 - Prevent false-positives in the
no-fn-reference-in-iteratorrule (#172) 73e8d5d