From 5ab1f7937fa4447a996414617e9be19692627380 Mon Sep 17 00:00:00 2001 From: Bobby Bingham Date: Sat, 30 May 2020 14:15:44 -0500 Subject: emacs: prettier --- emacs/.emacs.d/init.el | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- cgit v1.2.3