Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/codesuki/eslint-fix
- Owner: codesuki
- License: mit
- Created: 2016-08-18T07:39:41.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-02-25T04:02:01.000Z (almost 3 years ago)
- Last Synced: 2024-04-16T10:21:50.193Z (9 months ago)
- Topics: emacs, eslint, formatter, javascript, js, linter
- Language: Emacs Lisp
- Homepage:
- Size: 8.79 KB
- Stars: 37
- Watchers: 5
- Forks: 10
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)
```