This SonarSource project is a static code analyzer for JavaScript, TypeScript and CSS languages. In order to analyze JavaScript, TypeScript or CSS code, you need to have a supported version of Node.js installed on the machine running the scan. Recommended versions are the previous LTS version v14 and the latest version - v16. We recommend using the latest available LTS version (v16 as of today) for optimal stability and performance. v12 is still supported, but it already reached end-of-life and is deprecated. If node is not available in the PATH, you can use property sonar.nodejs.executable to set an absolute path to Node.js executable. If you have a community plugin for CSS analysis installed on your SonarQube instance it will conflict with the analysis of CSS, so it should be removed.

Features

  • Advanced rules based on pattern matching and control flow analysis
  • ~280 rules for JavaScript and TypeScript
  • ~30 rules for CSS
  • Compatible with ECMAScript 2015-2020
  • React JSX, Flow and Vue support for JavaScript and TypeScript
  • CSS, SCSS, Less, also 'style' inside PHP, HTML and VueJS files
  • Metrics (complexity, number of lines etc.)

Project Samples

Project Activity

See All Activity >

License

GNU Free Documentation License

Follow SonarJS

SonarJS Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of SonarJS!

Additional Project Details

Operating Systems

Windows

Programming Language

TypeScript

Related Categories

TypeScript Source Code Analysis Tool, TypeScript Code Review Software

Registered

2022-05-20