JSHint Platforms

Node, Rhino, WSH, etc.

JSHint supports for Rhino, JavaScriptCore and Windows Script Host out of the box! For example, to use JSHint with Rhino do this:

$ make rhino
[...]

$ rhino build/jshint-rhino.js myfile.js

If you don't want to build the jshint-rhino file yourself, you can download it here.

Windows Script Host:

> cscript env/wsh.js myfile.js

JavaScriptCore:

env/jsc.sh myfile.js

For Node we have a special package that you can install via NPM and then use as an ordinary CLI program:

$ npm install jshint -g
[...]

$ jshint myfile.js
Lint free!

Text Editors and IDEs

VIM

  • jshint.vim—VIM plugin and command line tool for running JSHint

Emacs

Sublime Text 2

TextMate

Visual Studio

ShiftEdit

ShiftEdit IDE has built-in support for JSHint

Komodo

Komodo 7 now ships with built-in support for JSHint

Other cool stuff

JSHintr

JSHintr is a web tool that allows you to set your own code standards, easily review a file against these standards, and share the output with other developers.

jshint-autofix

jshint-autofix is a tool that automatically fixes mistakes—such as missing semicolon, multiple definitions, etc.—reported by JSHint.

Ruby Gem

You can install JSHint as a Ruby Gem:

gem install jshint

pre-commit

pre-commit checks your code for errors before you commit it.