An Emacs flymake handler for syntax-checking Javascript source code
using jslint
or jsl
.
If you choose not to use one of the convenient packages in
Melpa and Marmalade, you'll need to add the
directory containing flymake-jslint.el
to your load-path
, and then
(require 'flymake-jslint)
. You'll also need to install
flymake-easy.
Add the following to your emacs init file:
(require 'flymake-jslint) ;; Not necessary if using ELPA package
(add-hook 'js-mode-hook 'flymake-jslint-load)
The default checker is jsl
, if that executable is
found at load-time. Otherwise, jslint
is the default. If you want
to use the non-default checker, you can customize the values of
flymake-jslint-command
and flymake-jslint-args
accordingly.
💝 Support this project and my other Open Source work via Patreon