SonarLint support for Typescript in VS Code

How to configure SonarLint in VS Code?
I want to find issues in my ts files.

Also how can I bind it to SonarQube Server?

The only configuration you might need is setting sonarlint.ls.javaHome, if your PC doesn’t have JRE8+, or automatic detection fails.

This is mentioned on the homepage of the extension, as well as how to connect to SonarQube server.

For a simple sanity check to confirm that ts is getting analyzed, try this snippet:

if (x && x) {
    // ...
}

This should raise an issue.

1 Like

Thanks so much, Janos!
I have been using SonarLint in my VS Code for a few months now. Works pretty good…
:slight_smile: