Just like JSLint.VS this is also a Java Script code analysis tool. This tool is an add-in for Visual Studio 2010. This is also developed by an individual programmer. This tool is like JSLint.VS, but has more features and options than the JSLint.VS. In this article I’ll list down some of the useful features of this code analyzer tool and the steps for Installing and Using JSLint
- Choice of JSlint (current), JSLint (old) and JSHint.
- Supports JQuery.
- Similar to JSLint.VS, but has more features and options.
- Configure from the Tools menu. Screenshot
- Output as Errors, Warnings, Messages or Tasks.
- CSS validation.
- Detection of constants (optional)
Installing JSLint for VS2010:
- Download the “vsix” file from https://jslint4vs2010.codeplex.com/.
- Double click the “vsix” file and follow the instructions.
Using JSLint for VS 2010:
- JSLint-for-VS2010 options screen can be launched from the Visual Studio tools menu.
- In the visual studio options tab, we can set the options like output as errors or warnings or tasks. Whether to run the tool during build or not. Whether to run the tool on save. Whether to validate css files and html files or not.
- The JSLint-Options tab provides option to choose JS lint or JS Hint as validation tool.
- We can select a set of Java script code or file, right-click and select the JS Lint to run the tool for the selected lines of code.
- We can even apply strict white space indention and Maximum line length. But for panther we can ignore them.
- See this article for the other code review tools I’ve used for .Net web application development.