Introducing quick fixes for JavaScript and TypeScript

Hello, JavaScript and TypeScript developers!

SonarLint helps to deliver clean code from the very start by finding issues as you type code.

We also believe that helping to fix those issues is something really valuable for developers and this is why in 2021 we introduced the support for quick fixes in SonarLint. We progressively covered more and more rules for Java, C#, VB.NET, C, and C++.

We now extended the quick fixes coverage to around 40 rules for JavaScript and TypeScript, and you can already enjoy those quick fixes in SonarLint for Visual Studio Code, Eclipse (JS only), and IntelliJ IDEs like IDEA and WebStorm. Applying quick fixes is straightforward with SonarLint as you can use the contextual actions for each code issue or the quick fix / quick action keyboard shortcuts configured in your IDE.

If you’re interested to learn more, you can browse the list of rules where quick fixes are available for JavaScript and for TypeScript; of course, we’ll be adding more to this list in the future.

If you have a chance to check out this new functionality, don’t hesitate to leave us your feedback. Enjoy coding with SonarLint!

2 Likes