-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/orzechowskid/flymake-eslint
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# flymake-eslint | ||
Flymake backend for Javascript using eslint | ||
|
||
## Installation | ||
|
||
0. 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. | ||
1. Download and place inside `~/.emacs.d/lisp` | ||
2. Edit `~/.emacs` or equivalent: | ||
```lisp | ||
(add-to-list 'load-path "~/.emacs.d/lisp") | ||
(require "flymake-eslint.el") | ||
``` | ||
|
||
## Usage | ||
|
||
also in `~/.emacs` or wherever: | ||
```lisp | ||
(add-hook 'web-mode-hook ; or whatever the mode-hook is for your mode of choice | ||
(lambda () | ||
(flymake-mode) ; or some other mode like eglot-mode which enables flymake-mode automatically | ||
(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]`. |