JSHint for Sublime Text 2
Prerequisites: node 0.6.x and Sublime Package Control
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 with Package Control
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