prettier/editors/emacs
Joe Fiorini c2d1b49b62 Allow customizing args sent to prettier-command (#289)
We require single quotes in our eslint config, which conflicts with prettier's default rules. Now the `prettier-args` custom variable allows anyone to set the arguments passed to the prettier command when it runs.

Might be nice to eventually build this up out of individual customization options (ie. `(setq prettier-single-quote t)`), but this is a pretty simple approach that works for now.
2017-01-18 12:36:59 -05:00
..
README.md Fix up emacs typos 2017-01-11 13:36:09 +13:00
prettier-js.el Allow customizing args sent to prettier-command (#289) 2017-01-18 12:36:59 -05:00

README.md

Add this to your init:

(require 'prettier-js)
(add-hook 'js-mode-hook
          (lambda ()
            (add-hook 'before-save-hook 'prettier-before-save)))