github SonarSource/SonarJS 9.1.0.17747
9.1.0

latest releases: 10.17.0.28100, 10.16.0.27621, 10.15.0.27423...
2 years ago

In this release, and as promised previously, we extend our offering of rules providing quick fixes with a new pack of 30 more rules. This now makes a total of 53 rules that will propose solutions to fix your code flaws as you write code in your IDEs. Finally, this release introduces the support of TypeScript 4.6, and it also enables S1172 ('no-unused-function-argument') in the default profile.

Quick fixes

  • Add quick fix for S108 ('no-empty') (#3057)
  • Add quick fix for S125 ('no-commented-code') (#3037)
  • Add quick fix for S1110 ('no-redundant-parentheses') (#3039)
  • Add quick fix for S1126 ('prefer-single-boolean-return') (#3064)
  • Add quick fix for S1128 ('unused-import') (#3059)
  • Add quick fix for S1172 ('no-unused-function-argument') (#3038)
  • Add quick fix for S1186 ('no-empty-function') (#3056)
  • Add quick fix for S1533 ('no-primitive-wrappers') (#3042)
  • Add quick fix for S1534 (no-dupe-keys) (#3036)
  • Add quick fix for S1763 ('no-unreachable') (#3051)
  • Add quick fix for S2688 ('use-isnan') (#3058)
  • Add quick fix for S2757 ('non-existent-operator') (#3063)
  • Add quick fix for S2871 ('no-alphabetical-sort') (#3043)
  • Add quick fix for S2990 ('no-global-this') (#3044)
  • Add quick fix for S3403 ('different-types-comparison') (#3045)
  • Add quick fix for S3415 ('inverted-assertion-arguments') (#3046)
  • Add quick fix for S3626 ('no-redundant-jump') (#3065)
  • Add quick fix for S3696 ('no-throw-literal') (#3050)
  • Add quick fix for S3863 ('no-duplicate-imports-decorator') (#3070)
  • Add quick fix for S3972 ('no-same-line-conditional') (#3066)
  • Add quick fix for S3981 ('no-collection-size-mischeck') (#3067)
  • Add quick fix for S3984 ('no-unthrown-error') (#3041)
  • Add quick fix for S4138 ('prefer-for-of') (#3062)
  • Add quick fix for S4322 ('prefer-type-guard') (#3052)
  • Add quick fix for S4619 ('no-in-misuse') (#3053)
  • Add quick fix for S4621 ('no-duplicate-in-composite') (#3061)
  • Add quick fix for S4623 ('no-undefined-argument') (#3040)
  • Add quick fix for S4634 ('prefer-promise-shorthand') (#3049)
  • Add quick fix for S4782 ('no-redundant-optional') (#3060)
  • Add quick fix for S6325 ('prefer-regex-literals') (#3048)

Miscellaneous

  • Activate S1172 ('no-unused-function-argument') in default profile (#3035)
  • Support TypeScript 4.6 (#3068)

Part of SQ 9.4

Don't miss a new SonarJS release

NewReleases is sending notifications on new releases.