0.9.0
New rules:
no-ignored-return
Return values from functions without side effects should not be ignored #40elseif-without-else
"if ... else if" constructs should end with "else" clauses #238no-gratuitous-expressions
Boolean expressions should not be gratuitous #149generator-without-yield
Generators should "yield" something #235no-nested-switch
"switch" statements should not be nested #240no-nested-template-literals
Template literals should not be nested #63no-empty-collection
Empty collections should not be accessed or iterated #151non-existent-operator
Non-existent operators '=+', '=-' and '=!' should not be used #234
Improvements:
- Improve highlighting for
no-extra-arguments
#178 - Improve
prefer-immediate-return
: keep comments when fixing #198 - Add meta.docs for each rule #246 (contributed by @Loxos)
- Indicate which rules are part of the preset, and which aren't #165
- Improve
prefer-while
: ignore 'for' without condition #196 no-unused-collections
should not fire if collection is exported #197 (contributed by @pustovitDmytro)- Fix
cognitive-complexity
: consider JSX Fragment #245 (contributed by @Anuovec)
Thanks a lot to the contributions!