github SonarSource/SonarJS 13.3.0.43633

7 hours ago

Release notes - SonarJS - 13.3

Feature

JS-1974 S8968: Tests should be skipped explicitly
JS-1999 S8982: Import vue/require-v-for-key as an external rule
JS-2015 S8981: Disallow the global regexp flag in Testing Library queries
JS-2016 S8984: Import vue/valid-v-for as an external rule
JS-2053 S8990: disallow passing a promise to fireEvent
JS-2054 S9011 Decorate rule: button elements should have an explicit type attribute
JS-2066 S9020: Use "find*" to query Testing Library elements that may not be available yet
JS-2086 S9026: Promises returned by Testing Library async queries should be handled
JS-2087 S9027: Testing Library queries should match presence assertions

False Positive

JS-1077 Fix FP S2699 (assertions-in-tests): Support 'should' assertions
JS-1625 Fix FP on S6767: Props used via destructured object parameters not tracked
JS-1731 Fix FP on S6551: Type guards filtering objects before string concatenation
JS-1795 Fix FP on S1848: Constructors with side-effect initialization not recognized
JS-1972 S8784: false positive on Vitest type-level assertions (expectTypeOf / assertType) at the top level
JS-1997 Fix FP on S1848: S1848 should not report RegExp constructors used only for syntax validation
JS-2089 Fix FP on S2699: Support test.expect and expect.* assertion entrypoints

Don't miss a new SonarJS release

NewReleases is sending notifications on new releases.