[Emacs] Add prettier-js-mode to typescript-mode

This commit is contained in:
Lucien Cartier-Tilet 2022-08-07 12:57:54 +02:00
parent d7cdb51652
commit d23d0deafb
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -7484,7 +7484,8 @@ And finally, here is a formatter for Javascript.
(use-package prettier-js
:defer t
:straight (:build t)
:hook ((rjsx-mode web-mode) . prettier-js-mode)
:after (rjsx-mode web-mode typescript-mode)
:hook ((rjsx-mode web-mode typescript-mode) . prettier-js-mode)
:config
(csetq prettier-js-args '("--single-quote" "--jsx-single-quote")))
#+end_src