Use prettier in place of prettier-js
prettier-js does not seem to be maintained
This commit is contained in:
parent
6c5e5c9e1e
commit
e777a9d59f
1 changed files with 4 additions and 6 deletions
|
@ -1089,11 +1089,9 @@ Indent 2 spaces
|
|||
Prettier has my preference for formatting JavaScript and TypeScript
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(use-package prettier-js
|
||||
:config
|
||||
(setq prettier-js-args '("--single-quote" "true"))
|
||||
:hook
|
||||
(js2-mode . typescript-mode))
|
||||
(use-package prettier
|
||||
:config
|
||||
(global-prettier-mode))
|
||||
#+end_src
|
||||
|
||||
TypeScript stuff
|
||||
|
@ -1185,7 +1183,7 @@ Add support for Elixir with [[https://github.com/elixir-editors/emacs-elixir][el
|
|||
(elixir-mode . (lambda () (add-hook 'before-save-hook 'elixir-format nil t)))
|
||||
(elixir-mode . eglot-ensure))
|
||||
:config
|
||||
(setq lsp-elixir-server-command '("elixir-ls"))
|
||||
;; (setq lsp-elixir-server-command '("elixir-ls"))
|
||||
(add-to-list 'auto-mode-alist '("\\.[hl]eex\\'" . elixir-mode)))
|
||||
#+end_src
|
||||
|
||||
|
|
Loading…
Reference in a new issue