Friday, September 4, 2015

JSLint - JavaScript code quality tool

JSLint is a static code analysis tool used in software development for checking JavaScript source code complies with coding rules. It is provided primarily as an online tool http://www.jslint.com/. It is also available as a Visual Studio extension JSLint.NET for the .Net developers. It can also check HTML and CSS code qualities.

I found very useful as I am using it in my current ExtJS project. Follow the below simple steps to make it available in your Visual Studio
1. Download the Visual Studio extension by clicking here,
2. Double click and Install the downloaded extension
3. Restart the Visual Studio

It will find your JavaScript coding standard errors and display it as Warnings whenever building your .net web application. You can also manually run it by just right click a JavaScript file and clikck JS Lint. Some additional settings can be configured in the menu Tools -> JS Lint Optons

Check the below attached image to see how it actually displays errors in Visual Studio.


No comments:

Post a Comment