Releases: sindresorhus/eslint-plugin-unicorn
Releases · sindresorhus/eslint-plugin-unicorn
v17.2.0
consistent-function-scoping
: Check use ofthis
andarguments
(#590) 8b417e6prevent-abbreviations
: Fix inappropriate suggestion (#592) 2e20294consistent-function-scoping
: Ignore within React hooks (#588) 7126d6dstring-content
: Ignore someTaggedTemplateExpression
(#585) 92f3f3dconsistent-function-scoping
: Display function name in error message (#589) e7e49ecconsistent-function-scoping
: Fix uninitialized variable check (#587) 4c48c02
v17.1.0
v17.0.1
v17.0.0
New rules
- Add
string-content
rule (off by default) (#496) 0972a89
Breaking
Improvements
- Improve
new-for-builtins
rule (#540) fdd96cb - Expand reporting for
prefer-node-remove
rule (#507) b6e6b32
Fixes
prefer-spread
: Insert semicolon if needed (#578) 49c4acf- Fix
prefer-negative-index
crash on not enough arguments (#564) 50e038c - Fix scope compare in
consistent-function-scoping
(#562) ec4387c - Fix
no-new-buffer
crash onTypeScript-ESLint
(#560) e4f4bb4 - Fix
escape-case
missing cases (#534) 892f054 - Disable auto-fix
.onmessage
inprefer-add-event-listener
rule (#543) 96af562
v16.1.1
v16.1.0
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