Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Releases: SonarSource/eslint-plugin-sonarjs

0.11.0

01 Dec 08:15
d04e171
Compare
Choose a tag to compare
  • Support ESLint 8.x
  • Fix secondary locations (#304, in sonar-runtime only)
  • Fix no-duplicate-string: ignore import expressions (#305)

Many thanks to our contributors! 🥇

Full Changelog: 0.10.0...0.11.0

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