Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't have effect #45

Open
ianyepan opened this issue Oct 9, 2018 · 0 comments
Open

Doesn't have effect #45

ianyepan opened this issue Oct 9, 2018 · 0 comments

Comments

@ianyepan
Copy link

ianyepan commented Oct 9, 2018

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.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant