Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aaronjensen/eslintd-fix
Emacs minor-mode to automatically fix javascript with eslint_d.
https://github.com/aaronjensen/eslintd-fix
emacs eslint javascript
Last synced: 2 months ago
JSON representation
Emacs minor-mode to automatically fix javascript with eslint_d.
- Host: GitHub
- URL: https://github.com/aaronjensen/eslintd-fix
- Owner: aaronjensen
- Created: 2017-02-17T22:55:59.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-02-24T15:17:56.000Z (10 months ago)
- Last Synced: 2024-10-12T03:17:47.426Z (3 months ago)
- Topics: emacs, eslint, javascript
- Language: Emacs Lisp
- Homepage:
- Size: 58.6 KB
- Stars: 64
- Watchers: 4
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# eslintd-fix
[![MELPA](https://melpa.org/packages/eslintd-fix-badge.svg)](https://melpa.org/#/eslintd-fix)
[![MELPA Stable](https://stable.melpa.org/packages/eslintd-fix-badge.svg)](https://stable.melpa.org/#/eslintd-fix)Minor-mode to automatically fix javascript with [eslint_d][]. Built with a focus
on speed, you will typically barely notice a delay when saving, if at all.Note that this package will not show errors, only fix them on save. You'll want to
[configure flycheck to use eslint_d](https://github.com/mantoni/eslint_d.js#linting) as well.This package was recently rewritten to use a direct network connection to
[eslint_d][] rather than a node shell command. This is significantly faster, but
could have introduced bugs. If you notice anything out of the ordinary, please
report it.## Installation
You can install this package from [Melpa][]
```
M-x package-install RET eslintd-fix RET
```## Usage
Ensure that you have [eslint_d][] `5.2.0+` installed and in your path.
Then, in your `init.el`:
```elisp
(add-hook 'js2-mode-hook 'eslintd-fix-mode)
```## Options
You can change the location of eslint_d.
```elisp
(setq eslintd-fix-executable "/my/path/eslint_d")
```See `M-x customize-group eslintd-fix` for more.
## Thanks
* [@mantoni][] for [eslint_d][].
[eslint_d]: https://github.com/mantoni/eslint_d.js
[@mantoni]: https://github.com/mantoni
[Melpa]: http://melpa.milkbox.net/