Update emacs README with prettier-args example (#1186)
parent
636d1af19e
commit
38305d1ec2
|
@ -16,3 +16,12 @@ If you don't use `js-mode`, which is what Prettier targets by default, you'll ne
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(add-hook 'before-save-hook 'prettier-before-save)))
|
(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"
|
||||||
|
))
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in New Issue