Emacs: hook up `standard` and `eslint` if available
1 file changed, 6 insertions(+), 1 deletion(-)
jump to
M emacs/.emacs.d/main.el → emacs/.emacs.d/main.el
@@ -2296,7 +2296,12 @@ ;; #+BEGIN_SRC emacs-lisp (use-package add-node-modules-path :config (progn - (add-hook 'js2-mode-hook #'add-node-modules-path))) + (define-hook-helper js2-mode () + (add-node-modules-path) + (when (executable-find "eslint") + (setq flycheck-javascript-eslint-executable "eslint")) + (when (executable-find "standard") + (setq flycheck-javascript-standard-executable "standard"))))) ;; #+END_SRC ;; ***** Flow