/flymake-gjshint-el

A flymake handler for javascript using both jshint and gjslint

Primary LanguageEmacs Lisp

flymake-gjshint.el

Build Status

An Emacs flymake handler for syntax-checking Javascript source code using both jshint and gjslint.

These days you might be better served by flycheck.

Installation

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).

Usage

configuration

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))))

command

The following command is defined:

flymake-gjshint:fixjsstyle

Fix many of the glslint errors in current buffer by fixjsstyle.