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
Try Google Cloud Risk-Free With $300 in Credit Icon
Try Google Cloud Risk-Free With $300 in Credit

No hidden charges. No surprise bills. Cancel anytime.

Use your credit across every product. Compute, storage, AI, analytics. When it runs out, 20+ products stay free. You only pay when you choose to.
Start Free
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