github SonarSource/eslint-plugin-sonarjs 0.9.0

latest releases: 1.0.1, 1.0.0, 0.25.1...
2 years ago

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!

Don't miss a new eslint-plugin-sonarjs release

NewReleases is sending notifications on new releases.