summaryrefslogtreecommitdiff
path: root/.dir-locals.el
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2022-01-24 11:34:34 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2022-01-24 11:34:34 +0100
commit7cf8f14752ae0d0bb8205c0815c79cf59a597ca3 (patch)
treeaf73ca54646470c77a17bc6a384e018e014c89c8 /.dir-locals.el
parent1f15d50aace578a63433a2b60c18ceb73dfa6230 (diff)
[emacs] flycheck should use the eslint checker from developer tools
Since commit cac03529 the eslint has been moved from the local nvm to the developer packages (in `./node_modules`). Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to '.dir-locals.el')
-rw-r--r--.dir-locals.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/.dir-locals.el b/.dir-locals.el
index 419311ee..13145010 100644
--- a/.dir-locals.el
+++ b/.dir-locals.el
@@ -103,6 +103,10 @@
;; use nodejs from the (local) NVM environment (see nvm-dir)
(nvm-use-for-buffer)
(setq-local js-indent-level 2)
+ ;; flycheck should use the eslint checker from developer tools
+ (setq-local flycheck-javascript-eslint-executable
+ (expand-file-name "node_modules/.bin/eslint" prj-root))
+
(flycheck-mode)
))))