Use prettier in place of prettier-js

prettier-js does not seem to be maintained
This commit is contained in:
Erwin Boskma 2023-05-26 08:35:57 +02:00
parent 6c5e5c9e1e
commit e777a9d59f
Signed by: erwin
SSH key fingerprint: SHA256:9LmFDe1C6jSrEyqxxvX8NtJBmcbB105XoqyUZF092bg

View file

@ -1089,11 +1089,9 @@ Indent 2 spaces
Prettier has my preference for formatting JavaScript and TypeScript
#+begin_src emacs-lisp
(use-package prettier-js
(use-package prettier
:config
(setq prettier-js-args '("--single-quote" "true"))
:hook
(js2-mode . typescript-mode))
(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