JSHint for Sublime Text 2
- node 0.6.x
- npm 1.1.x
curl http://npmjs.org/install.sh | sh
- jshint 0.5.x
npm install -g jshint
install p, select
Package Control: Install Package
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
Run JSHint on save
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 set to Automatic and
F7, but only on files that end with .js.
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