summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby Bingham <koorogi@koorogi.info>2020-05-30 14:15:44 -0500
committerBobby Bingham <koorogi@koorogi.info>2021-02-06 10:39:37 -0600
commit5ab1f7937fa4447a996414617e9be19692627380 (patch)
treee85f26830b7741ce4c05ab8d1b8f430e84dd8583
parent15fc9dce681008418e7056ef17ce329f3e0c417f (diff)
emacs: prettier
-rw-r--r--emacs/.emacs.d/init.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el
index c50b946..75e75dd 100644
--- a/emacs/.emacs.d/init.el
+++ b/emacs/.emacs.d/init.el
@@ -133,6 +133,17 @@
(use-package company-lsp
:commands company-lsp)
+;; --- AUTO-FORMAT ON SAVE ---
+(use-package prettier-js
+ :config
+ (setq prettier-js-args
+ '("--trailing-comma" "all"
+ "--use-tabs" "true"
+ "--print-width" "110"
+ "--arrow-parens" "avoid"
+ "--end-of-line" "auto"))
+ :hook (typescript-mode . prettier-js-mode))
+
;; --- THEME ---
(use-package doom-themes
:config