Update: 2011-05-13: JSLint WSH no longer available, see JSHint WSH.
Ever wish that Visual Studio had a JSLint add-in? Inspired by a reply to my tweet, I discovered the following solution.
Grab the WSH version of JSLint.
Add this jslint.bat file to the same folder you have JSLint in:
@echo off
cscript jslint.js //Nologo < %1
echo.
echo Done.
In Visual Studio → Tools → External Tools…
Add a new tool with the following field values:
- Title:
- &JSLint
- Command:
- %YourJSLintPath%\jslint.bat
- Arguments:
- $(ItemPath)
- Initial directory:
- %YourJSLintPath%\
- Use Output window
- checked

Open up any *.js file you'd like to validate
Select the all new JSLint from your tools menu:

Try not to let JSLint hurt your feelings too much:

In short, JSLint is awesome.