diff options
author | Bobby Bingham <koorogi@koorogi.info> | 2020-05-30 14:15:44 -0500 |
---|---|---|
committer | Bobby Bingham <koorogi@koorogi.info> | 2021-02-06 10:39:37 -0600 |
commit | 5ab1f7937fa4447a996414617e9be19692627380 (patch) | |
tree | e85f26830b7741ce4c05ab8d1b8f430e84dd8583 /emacs/.emacs.d | |
parent | 15fc9dce681008418e7056ef17ce329f3e0c417f (diff) |
emacs: prettier
Diffstat (limited to 'emacs/.emacs.d')
-rw-r--r-- | emacs/.emacs.d/init.el | 11 |
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 |