JSHint for Sublime Text 2
Mac OS X: Install node with homebrew
brew install node. Make sure you have either the latest Command Line Tools or Xcode before installing homebrew.
Windows: Node should be in your
CLASSPATH in environment variables,
C:\Program Files (x86)\nodejs
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