forked from zaclys/searxng
[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>
This commit is contained in:
parent
1f15d50aac
commit
7cf8f14752
|
@ -103,6 +103,10 @@
|
||||||
;; use nodejs from the (local) NVM environment (see nvm-dir)
|
;; use nodejs from the (local) NVM environment (see nvm-dir)
|
||||||
(nvm-use-for-buffer)
|
(nvm-use-for-buffer)
|
||||||
(setq-local js-indent-level 2)
|
(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)
|
(flycheck-mode)
|
||||||
))))
|
))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue