ESLint plugin maintained by Sonar that provides original JS/TS rules from the SonarJS analyzer, including code smell, bug detection, testing, accessibility, and security rules. Version 4.0.3 supports ESLint 8/9/10 and ships TypeScript types. Release cadence is frequent with regular bug fixes and rule additions. Key differentiator: direct integration of SonarQube/SonarCloud rules into ESLint, offering a single recommended config for ESLint 9 and a legacy config for ESLint 8.
Verified import paths — ran on the pinned version, not inferred.
Default import for ESLint 9 flat config. For ESLint 8 use require or the legacy config.
Recommended config for ESLint 9 flat config. For ESLint 8 use recommended-legacy.
Rules are prefixed with sonarjs/. Use string severity values like 'error' or 'warn'.
Shows usage with ESLint 9 flat config, importing plugin and enabling recommended config plus custom rules.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.