Skip to content

evindor/prettier-eslint-emacs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

prettier-eslint-emacs

Auto-format current buffer with prettier-eslint

Usage

M-x prettier-eslint

To automatically format after saving:

(add-hook 'js2-mode-hook (lambda () (add-hook 'after-save-hook 'prettier-eslint nil t)))
(add-hook 'react-mode-hook (lambda () (add-hook 'after-save-hook 'prettier-eslint nil t)))

In Spacemacs add the above to your dotspacemacs/user-config

Otherwise:

(eval-after-load 'js2-mode
  '(add-hook 'js2-mode-hook (lambda () (add-hook 'after-save-hook 'prettier-eslint nil t))))

LICENSE

MIT

About

Auto-format current buffer with prettier-eslint

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published