Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
orzechowskid committed Dec 4, 2018
2 parents f4fe50c + d18c2a1 commit 9f25c64
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
@@ -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]`.

0 comments on commit 9f25c64

Please sign in to comment.