Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/codesuki/eslint-fix

Fix current file using ESLint --fix
https://github.com/codesuki/eslint-fix

emacs eslint formatter javascript js linter

Last synced: 3 months ago
JSON representation

Fix current file using ESLint --fix

Awesome Lists containing this project

README

        

# eslint-fix
Fix current file using `ESLint --fix`

## Usage
`M-x eslint-fix`

To automatically format after saving:

(Choose depending on your favorite mode.)

```
(add-hook 'js-mode-hook #'eslint-fix-auto-mode)

(add-hook 'js2-mode-hook #'eslint-fix-auto-mode)
```