prettier/editors/emacs
Jimmy Yuen Ho Wong 6f0707a995 Make emacs package summary clearer (#1655)
Currently the package summary makes no sense when viewed from Emacs's package manager, this fixes it.
2017-05-21 12:12:23 -07:00
..
README.md Always run prettier if prettier-mode is active (#1623) 2017-05-18 08:56:59 -07:00
prettier-js.el Make emacs package summary clearer (#1655) 2017-05-21 12:12:23 -07:00

README.md

Add this to your init:

(require 'prettier-js)

Then you can hook to your favorite javascript mode:

(add-hook 'js2-mode-hook 'prettier-mode)
(add-hook 'web-mode-hook 'prettier-mode)
...

To adjust the CLI args used for the prettier command, you can customize the prettier-args variable:

(setq prettier-args '(
  "--trailing-comma" "all"
  "--bracket-spacing" "false"
))