This repository was archived by the owner on Oct 3, 2024. It is now read-only.
0.9.0
New rules:
no-ignored-returnReturn values from functions without side effects should not be ignored #40elseif-without-else"if ... else if" constructs should end with "else" clauses #238no-gratuitous-expressionsBoolean expressions should not be gratuitous #149generator-without-yieldGenerators should "yield" something #235no-nested-switch"switch" statements should not be nested #240no-nested-template-literalsTemplate literals should not be nested #63no-empty-collectionEmpty collections should not be accessed or iterated #151non-existent-operatorNon-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-collectionsshould 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!