diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2022-01-24 11:34:34 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2022-01-24 11:34:34 +0100 |
commit | 7cf8f14752ae0d0bb8205c0815c79cf59a597ca3 (patch) | |
tree | af73ca54646470c77a17bc6a384e018e014c89c8 /.dir-locals.el | |
parent | 1f15d50aace578a63433a2b60c18ceb73dfa6230 (diff) | |
download | searxng-7cf8f14752ae0d0bb8205c0815c79cf59a597ca3.tar.gz searxng-7cf8f14752ae0d0bb8205c0815c79cf59a597ca3.zip |
[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.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.dir-locals.el b/.dir-locals.el index 419311ee7..13145010c 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) )))) |