Open ianyepan opened 5 years ago
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.)
prettier --write index.js
I'm afraid that I'm misinterpreting this package, but after putting
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.)