summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2018-09-07 17:09:45 +0200
committerAlan Pearce2018-09-07 17:09:45 +0200
commite1834dda554a1f108d7a17588571191417f7d15e (patch)
treea8d2f7f0ea40692f62db9302b0cd31395b663779 /emacs
parent72595feb0fa80ec45488cb7a49cdc8a3eb1e38c2 (diff)
downloadnixfiles-e1834dda554a1f108d7a17588571191417f7d15e.tar.lz
nixfiles-e1834dda554a1f108d7a17588571191417f7d15e.tar.zst
nixfiles-e1834dda554a1f108d7a17588571191417f7d15e.zip
Emacs: setup tslint automatically
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/main.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index af828d99..65eae69a 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -2015,6 +2015,8 @@ With two prefix arguments, write out the day and month name."
                       typescript-mode-hook)
               :name node-modules-flycheck
               (add-node-modules-path)
+              (when (executable-find "tslint")
+                (setq-local flycheck-typescript-tslint-executable (executable-find "tslint")))
               (when (executable-find "eslint")
                 (setq-local flycheck-javascript-eslint-executable (executable-find "eslint")))
               (when (executable-find "prettier-standard")