github SonarSource/SonarJS 13.0.0.42526

4 hours ago

Release notes - SonarJS - 13.0

Feature

JS-1501 Move MAIN/TEST fallback heuristic to linter layer; remove rule-level filename gating
JS-1678 S5845: Assertions comparing incompatible types should not be made
JS-1686 S1244: Floating point numbers should not be tested for equality
JS-1687 S5906: The most specific assertion should be used
JS-1715 Support SONAR-RESOLVE for JS/TS/CSS
JS-1767 issue-feedback-dashboard: Update rule performance metrics data format
JS-1774 issue-feedback-dashboard: Add team-level 90-day rule performance benchmarks
JS-1862 S8754: Test titles should be unique within the same suite
JS-1871 S8780: Async test assertions should be awaited or returned
JS-1873 S8781: Test and suite titles should not be empty or whitespace-only
JS-1880 Create rule S8782: Lifecycle hooks should be declared before test cases
JS-1883 Forced browser interactions should not bypass actionability checks
JS-1890 Create rule S8783: Forced browser interactions should not bypass actionability checks

False Positive

JS-1181 Fix FP on S6767: Props forwarded via spread or used in helper functions
JS-1394 Fix FP on S6767: Props reported unused when consumed through a TypeScript/ES decorator
JS-1663 Fix FP on S2094: Data container classes with property initialization
JS-1695 Fix FP on S6757: Class components flagged when using 'this' in callbacks
JS-1706 Fix FP on S5868: Unicode in variables concatenated into regex character classes
JS-1707 Fix FP on S5868: Unicode ranges flagged as grapheme clusters in character classes
JS-1754 Fix FP on S6551: toString() calls guarded by custom implementation checks
JS-1775 Fix FP on S4782: Fix S4782: false positive when optional property type is exactly undefined
JS-1792 Fix FP on S6747: tw attribute used by @vercel/og and twin.macro libraries
JS-1801 Fix FP on S7766: Math.min/max suggested for custom object comparisons
JS-1810 S6281: Adjust detection logic for AWS CDK BlockPublicAccess changes
JS-1820 Fix FP on S7739: Yup .when() method's {is, then, otherwise} config pattern

False Negative

JS-1789 Fix S4782 false negative when optional property type alias includes undefined

Don't miss a new SonarJS release

NewReleases is sending notifications on new releases.