Release notes - SonarJS - 12.4
False Positive
JS-1257 Fix FP on S4325: DOM API method assertions flagged despite nullable return types
JS-1393 Fix FP on S6767: Props reported unused when passed to parent class constructor via super(props)
JS-1423 Fix FP on S7778: Methods accepting only a single argument incorrectly flagged as combinable
JS-1462 Fix FP on S6582: Multi-condition logic with && and || cannot use optional chaining
JS-1464 Fix FP on S6819: ARIA roles required for custom composite widgets
JS-1465 Fix FP on S6819: Inline SVG with role='img' is semantically correct
JS-1475 Fix FP on S7763: Local exports incorrectly flagged as re-export candidates
JS-1476 Fix FP on S2189: Loop variables modified through function call side effects
JS-1481 Fix FP on S2301: Event handler callbacks with boolean state parameters
JS-1488 Fix FP on S125: Documentation examples and API usage patterns flagged as dead code
JS-1489 Fix FP on S3699: void functions flagged when called as statements
JS-1491 Fix FP on S2392: Loop counter variables reused across separate loops
JS-1518 Fix FP on S1301: TypeScript exhaustiveness checking with never type assertions
JS-1525 Fix FP on S7785: Zod schema .catch() method misidentified as promise chain
JS-1527 Fix FP on S6478: Library API props requiring inline component definitions
JS-1528 Fix FP on S2871: Sorted comparisons where both sides use identical sort logic
JS-1580 Fix FP on S1788: Redux reducer pattern with state default before action
JS-1584 Fix FP on S905: Comma operators sequencing intentional side effects
JS-1598 Fix FP on S6842: ARIA listbox/option pattern for accessible dropdowns
JS-1613 Fix FP on S7781: Regex patterns with character classes flagged incorrectly
JS-1616 Fix FP on S7722: Error objects created for stack trace capture in logging
JS-1644 Fix FP on S7763: imports used locally and re-exported flagged incorrectly
JS-1656 Fix FP on S6859: Framework root aliases (/, /@/, /$/) flagged as absolute paths
JS-1693 Fix FP on S7763: Peach still raises in-scope local-use re-exports despite the JS-1644 suppression
Bug
JS-1505 Fix S1874: crash when analyzing TSX files with react-jsx in monorepos