Doesn't have effect
ianyepan opened this issue · 0 comments
ianyepan commented
I'm afraid that I'm misinterpreting this package, but after putting
(require 'prettier-js)
(setq prettier-js-args '(
"--trailing-comma" "all"
"--bracket-spacing" "true"
))
(add-hook 'js2-mode-hook 'prettier-js-mode)
in my .emacs file, it doesn't seem to change anything. If I run prettier --write index.js
from the command line it will beautify my code, but Emacs itself doesn't seem to be doing anything...(auto-format on save, etc.)