Skip to content

Releases: SonarSource/eslint-plugin-sonarjs

0.10.0

13 Aug 09:31
52d94bc
Compare
Choose a tag to compare
  • 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

06 Jul 14:32
007757f
Compare
Choose a tag to compare

Bug-fix release:

  • Remove rule generator-without-yield #264
  • Fix missing dependencies (typescript and @typescript-eslint/experimental-utils) #262

0.9.0

05 Jul 07:22
87df5c9
Compare
Choose a tag to compare

New rules:

  • no-ignored-return Return values from functions without side effects should not be ignored #40
  • elseif-without-else "if ... else if" constructs should end with "else" clauses #238
  • no-gratuitous-expressions Boolean expressions should not be gratuitous #149
  • generator-without-yield Generators should "yield" something #235
  • no-nested-switch "switch" statements should not be nested #240
  • no-nested-template-literals Template literals should not be nested #63
  • no-empty-collection Empty collections should not be accessed or iterated #151
  • non-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!

0.8.0-125

04 Jun 14:52
beacded
Compare
Choose a tag to compare

Ignore React components in cognitive-complexity rule

0.7.1-117

01 Jun 14:13
6c839a4
Compare
Choose a tag to compare
  • test automatic release publish to npm

0.7.1-102: Update name to fit semver spec (#210)

29 Apr 13:29
428278a
Compare
Choose a tag to compare
* Update name to fit semver spec

* Fix set version with --allow-same-version

v0.7.0

29 Apr 09:58
ae75432
Compare
Choose a tag to compare
  • Improve S1192 by ignoring literals in type annotations (#203)

v0.6.0

15 Feb 08:38
a9a7496
Compare
Choose a tag to compare

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

08 Nov 12:35
Compare
Choose a tag to compare

v0.4.0

12 Jun 08:51
Compare
Choose a tag to compare

We are happy to announce eslint-plugin-sonarjs 0.4
This version includes

  • 1 new rule: "Collapsible 'if' statements should be merged" no-collapsible-if
  • some bug fixes and improvements

You can find the details of this release in this milestone:
https://github.com/SonarSource/eslint-plugin-sonarjs/milestone/5?closed=1