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

nel_h2
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
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