![]() Currently the package summary makes no sense when viewed from Emacs's package manager, this fixes it. |
||
---|---|---|
.. | ||
README.md | ||
prettier-js.el |
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"
))