Skip to content
Flymake backend for Javascript using eslint
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
flymake-eslint.el

README.md

flymake-eslint

Flymake backend for Javascript using eslint

MELPA

Installation

  1. Make sure eslint is installed and present on your emacs exec-path. For Linux systems exec-path usually equals your $PATH environment variable; for other systems, you're on your own.
  2. Install:
  • from MELPA: M-x package-install [RET] flymake-eslint [RET]
  • manually: download and place inside ~/.emacs.d/lisp.

then edit ~/.emacs or equivalent:

(add-to-list 'load-path "~/.emacs.d/lisp")
(require "flymake-eslint.el")
  1. Enable:
(add-hook 'web-mode-hook ; or whatever the mode-hook is for your mode of choice
  (lambda ()
    (flymake-eslint-enable)))

Customization

useful variables are members of the flymake-eslint group and can be viewed and modified with the command M-x customize-group [RET] flymake-eslint [RET].

(defcustom flymake-eslint-executable-name "eslint"
  "Name of executable to run when checker is called.  Must be present in variable `exec-path'."
  :type 'string
  :group 'flymake-eslint)

(defcustom flymake-eslint-executable-args nil
  "Extra arguments to pass to eslint."
  :type 'string
  :group 'flymake-eslint)

(defcustom flymake-eslint-show-rule-name t
  "Set to t to append rule name to end of warning or error message, nil otherwise."
  :type 'boolean
  :group 'flymake-eslint)

Bugs

yes

See Also

flymake-stylelint

License

MIT

You can’t perform that action at this time.