SonarJS

Static code analyser for JavaScript, TypeScript and CSS languages.
GitHub
1.06k
Created 13 years ago, last commit 3 days ago
73 contributors
4.49k commits
Stars added on GitHub, month by month
0
11
12
1
2
3
4
5
6
7
8
9
10
2023
2024
Stars added on GitHub, per day, on average
Yesterday
=
Last week
+0.6
/day
Last month
+0.4
/day
Last 12 months
+0.2
/day
npmPackage on NPM
Monthly downloads on NPM
11
12
1
2
3
4
5
6
7
8
9
10
2023
2024
README

Quality Gate Coverage

This SonarSource project is a static code analyzer for the JavaScript, TypeScript, and CSS languages to produce Clean code.

➡️ Have some feedback?

This repository now hosts eslint-plugin-sonarjs, our plugin for ESLint.

Features

  • Advanced rules based on pattern matching and control flow analysis
  • 406 JS rules and 411 TS rules
  • 26 CSS rules
  • Compatible with ECMAScript 2015-2020
  • React JSX, Flow, Vue, and AWS lambda functions support for JavaScript and TypeScript
  • CSS, SCSS, SASS, Less, also 'style' inside HTML and VueJS files
  • Metrics (complexity, number of lines, etc.)
  • Import of test coverage reports
  • Import of ESLint, TSLint, and Stylelint issues

Documentation

You can find documentation here

Have question or feedback?

SonarSource Community Forum

If you want to report a bug, request a feature, or provide other kind of feedback, please use SonarQube Community Forum. Please do not forget to specify the details of your request, code reproducer, and versions of projects you use.

Contributing

1. Request a new feature

To request a new feature, create a new thread in SonarSource Community Forum. Even if you plan to implement it yourself and submit it back to the community, please create a thread to be sure that we can follow up on it.

2. Pull Request

To submit a contribution, create a pull request for this repository. Please make sure that you follow our code style and that all tests are passing.

Work with us

Would you like to work on this project full-time? We are hiring! Check out https://www.sonarsource.com/hiring

License

Copyright 2011-2024 SonarSource.

Licensed under the GNU Lesser General Public License, Version 3.0