Use Biome in .NET repositories that ship Node-based frontend assets and want a fast combined formatter-linter-import organizer for JavaScript, TypeScript, CSS, JSON, GraphQL, or…
SonarJS Rules for Frontend Assets in .NET Repositories
Use SonarJS-derived rules in .NET repositories that ship JavaScript or TypeScript frontends and need deeper bug-risk, code-smell, or cognitive-complexity checks than a minimal ESLint baseline. Use when the repo wants `eslint-plugin-sonarjs` locally or already runs SonarQube or SonarCloud in CI.
Trigger On
- the repo already uses SonarQube, SonarCloud, or
eslint-plugin-sonarjs - the user asks for frontend code smells, cognitive complexity limits, or deeper bug-risk rules beyond base ESLint
- maintainability and reliability findings on JS or TS code should become a review or CI gate
Workflow
- Decide the execution path first:
- local developer loop through eslint-plugin-sonarjs - server-side analysis through an already adopted SonarQube or SonarCloud pipeline
- For local work, treat SonarJS as an ESLint extension rather than a standalone CLI.
- Keep the first rollout narrow:
- bug-prone rules - cognitive complexity - duplicated branching or suspicious control flow
- Add rules to the existing ESLint command instead of inventing a parallel local lint entrypoint.
- If the repo already has SonarQube or SonarCloud, align local rule expectations with the server gate instead of maintaining two conflicting policies.
- Fix code or phase rules deliberately; do not hide the first rollout behind broad disables.
- Document licensing or hosting caveats before making Sonar-based tooling the default quality gate.
Deliver
- explicit SonarJS-derived rule ownership
- a clear split between local ESLint-based use and any existing server-side Sonar pipeline
- documented rollout scope and caveats
Validate
- local developer commands still use the repo's standard ESLint entrypoint
- Sonar-based rules are not treated as a standalone local CLI when none exists
- licensing or hosting caveats are documented before broad adoption
- findings are actionable and phased instead of silently suppressed
Related skills
Use ESLint in .NET repositories that ship JavaScript, TypeScript, React, or other Node-based frontend assets.
Use HTMLHint in .NET repositories that ship static HTML output or standalone frontend templates.
Related agents
.NET Frontend
Frontend-focused orchestration agent for .NET repositories that ship browser-facing UI plus Node-based frontend assets.
Also works: dotnet agents install frontend