This repository was archived by the owner on Oct 3, 2024. It is now read-only.
Releases: SonarSource/eslint-plugin-sonarjs
Releases · SonarSource/eslint-plugin-sonarjs
0.11.0
0.10.0
- Fix link to docs in rule meta (#270)
- Fix
no-inverted-boolean-check: enclose autofix with parentheses on double negation (#187) - Fix
no-gratuitous-expressions: TypeError when accessing non-existing parent scope (#271) - Improve
prefer-immediate-return: ignore when returned variable has a declared type (#274)
0.9.1
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!
0.8.0-125
Ignore React components in cognitive-complexity rule
0.7.1-117
0.7.1-102: Update name to fit semver spec (#210)
* Update name to fit semver spec * Fix set version with --allow-same-version
v0.7.0
v0.6.0
We are happy to announce eslint-plugin-sonarjs 0.6.
This version includes:
- Bump TypeScript dependency to 4.1.4
- Bump ESLint dependency to 7.19.0
v0.5.0
- FP
no-duplicate-string: ignore JS directives (#141) a5bba61 - add rule
no-collection-size-mischeck(#134) 94eb063 - add rule
no-unused-collection(#131) 5dd1d28 no-useless-catch: fix failure in using catch without binding var 1007355- add rule
no-redundant-jump(#130) 00fa924 - add rule
no-same-line-conditional(#129) 81bac27 - feat: include plugin by default, close #117 (#126) 604172c
- add eslint 6 to peerDeps (#118) 598710b
- Make
cognitive-complexitycompute file-level metric (#121) b6b03ec