diff options
author | Alan Pearce | 2020-06-11 13:22:55 +0200 |
---|---|---|
committer | Alan Pearce | 2020-06-11 13:22:55 +0200 |
commit | 6c46c6e4a6567ecd72cffd66c3e8e7de64766aa3 (patch) | |
tree | 71b733db4ce729f4e7b0ae8d8038e095fa0ff210 | |
parent | de7b61c9b7decfc2a3a79a150e2b8fe4d973f24d (diff) | |
download | nixfiles-6c46c6e4a6567ecd72cffd66c3e8e7de64766aa3.tar.lz nixfiles-6c46c6e4a6567ecd72cffd66c3e8e7de64766aa3.tar.zst nixfiles-6c46c6e4a6567ecd72cffd66c3e8e7de64766aa3.zip |
Emacs: add tide for live TS type checking
eslint doesn't check types, which leads to surprising behaviour when building.
-rw-r--r-- | user/emacs/init.el | 4 | ||||
-rw-r--r-- | user/settings/emacs.nix | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el index 7a4cfbf8..1424b655 100644 --- a/user/emacs/init.el +++ b/user/emacs/init.el @@ -908,6 +908,10 @@ _p_rev _u_pper _=_: upper/lower _r_esolve :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 diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix index f2b1f525..b037cacc 100644 --- a/user/settings/emacs.nix +++ b/user/settings/emacs.nix @@ -167,6 +167,7 @@ in scss-mode spacemacs-theme swiper + tide toml-mode typescript-mode undo-tree |