JSHint for Sublime Text 2
Mac OS X: Installing node with homebrew or macports is assumed. The path to jshint is hardcoded in this plugin as
/usr/local/bin:/opt/local/bin. There is no reliable way to get the path from your environment.
Linux: Make sure jshint is in your environment path.
Windows: Installing node with the Windows Installer from nodejs.org is assumed. Known Bug: Sublime Text 2 for Windows doesn't show the console output. As a temporary hack, you can output to a file. See issue #23.
Install node-jshint with npm
npm install -g jshint
Install JSHint with Package Control in Sublime Text 2
install p, select
Package Control: Install Package
Note: Without Sublime Package Control, you could manually clone to Packages directory as 'JSHint', exactly.
Jor Tools/Contextual menus or the Command Palette
F4jump to next error row/column
F4jump to previous error row-column
J shortcut changes the Build System on the current file to JSHint, then Builds to run JSHint on the file and output any errors for jumping to within the file. You could alternatively set the Build System to Automatic and
F7, but only on files that end with .js.
Run JSHint on save