Browse Source

Merge pull request #816 from return42/fix-emacs

[emacs] flycheck should use the eslint checker from developer tools
Markus Heiser 3 years ago
parent
commit
b2018a88d1
1 changed files with 4 additions and 0 deletions
  1. 4 0
      .dir-locals.el

+ 4 - 0
.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)
                ))))