Skip to content


Subversion checkout URL

You can clone with
Download ZIP
JSHint any JavaScript file in Sublime Text 2
JavaScript Python
Tag: 0.3.6

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.

JSHint for Sublime Text 2

The best JavaScript syntax checker: JSHint for the best text editor: Sublime Text 2

Prerequisites: node-jshint and Sublime Package Control

Mac OS X: Install node with homebrew brew update brew install node. Make sure you have either the latest Command Line Tools or Xcode before installing homebrew. The path to jshint is hardcoded in this plugin as /usr/local/bin/jshint.

Linux: Make sure jshint is in your environment path.

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

  1. command-shift-P or control-shift-P in Linux/Windows
  2. type install p, select Package Control: Install Package
  3. type jshint, select JSHint

Note: Without Sublime Package Control, you could manually clone to Packages directory as 'JSHint', exactly.

Run JSHint on an active JavaScript file in Sublime Text 2

  • control-J or Tools/Contextual menus or the Command Palette
  • F4 jump to next error row/column
  • shift-F4 jump to previous error row-column

Note: The control-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 command-B/control-B/F7, but only on files that end with .js.

Run JSHint on save

Install SublimeOnSaveBuild

Something went wrong with that request. Please try again.