Compiler plugin for JavaScript Lint (http://www.javascriptlint.com), an (open
source) checker for JavaScript syntax and coding techniques based on the Mozilla
Firefox JavaScript engine.

This is similar to vimscript #2578 and vimscript #2729, but this script uses
Vim's compiler infrastructure (so checks are triggered by the :make command),
making its use consistent with syntax checkers for other languages.

install details

JavaScript Lint must be installed and available through $PATH.

Put the script into your user or system Vim compiler directory
(e.g. ~/.vim/compiler).

To automatically select this compiler for all JavaScript files, put the
following snippet into ~/.vim/after/ftplugin/javascript.vim: