brew install node
brew install npm
npm install jshint -g
Install ST2 Package Control: http://wbond.net/sublime_packages/package_control/installation
Restart ST2
CMD-Shift-P opens Package Control dialog (OSX)
Type: Install and hit enter << That will select Package Control: Install Package
Type: sublime-jshint and hit enter
Now, when you edit a javascript file and save it, you will get the following error message:
Error trying to parse build system: No data in ~/Library/Application Support/Sublime Text 2/Packages/JSHint/JSHint.sublime-build:1:1
cd /Volumes/HoneyBadger1TB/Users/lex/Library/Application\ Support/Sublime\ Text\ 2/Packages
ln -s Sublime-JSHint JSHint
Now, when you save files in ST2 JSHint will display messages at the bottom of your editor window..