Emacs: add tide for live TS type checking eslint doesn't check types, which leads to surprising behaviour when building.
Alan Pearce alan@alanpearce.eu
Thu, 11 Jun 2020 13:22:55 +0200
2 files changed, 5 insertions(+), 0 deletions(-)
M user/emacs/init.el → user/emacs/init.el
@@ -908,6 +908,10 @@ (use-package add-node-modules-path :config (setq add-node-modules-max-depth 6) :ghook ('(js2-mode-hook typescript-mode-hook) #'add-node-modules-path)) +(use-package tide + :after (typescript-mode company flycheck) + :ghook ('typescript-mode-hook #'tide-setup)) + ;;;; Reformat on save (use-package prettier-js
M user/settings/emacs.nix → user/settings/emacs.nix
@@ -167,6 +167,7 @@ rjsx-mode scss-mode spacemacs-theme swiper + tide toml-mode typescript-mode undo-tree