Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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/