Update emacs README with prettier-args example (#1186)

master
Paul Carduner 2017-04-11 08:35:41 -07:00 committed by Christopher Chedeau
parent 636d1af19e
commit 38305d1ec2
1 changed files with 9 additions and 0 deletions

View File

@ -16,3 +16,12 @@ If you don't use `js-mode`, which is what Prettier targets by default, you'll ne
(lambda ()
(add-hook 'before-save-hook 'prettier-before-save)))
```
To adjust the CLI args used for the prettier command, you can customize the `prettier-args` variable:
```elisp
(setq prettier-args '(
"--trailing-comma" "all"
"--bracket-spacing" "false"
))
```