An Emacs flymake handler for syntax-checking Javascript source code
using both jshint
and gjslint
.
These days you might be better served by flycheck.
If you choose not to use one of the convenient packages in
Melpa, you'll need to add the
directory containing flymake-gjshint.el
to your load-path
, and then (require 'flymake-gjshint)
.
Add the following to your emacs init file:
(require 'flymake-gjshint) ;; Not necessary if using ELPA package
(add-hook 'js-mode-hook 'flymake-gjshint:load)
If you want to disable flymake-gjshint in a certain directory
(e.g. test code directory), set flymake-gjshint
to nil in .dir-locals.el
.
Here’s an example of a .dir-locals.el
file:
((nil . ((flymake-gjshint . nil))))
The following command is defined:
Fix many of the glslint errors in current buffer by fixjsstyle
.