all repos — nixfiles @ 51fc99f1e180a30c2a7bc21517b41009fbb72f3f

System and user configuration, managed by nix and home-manager

Emacs: Fix flycheck setup in js2-mode

Alan Pearce
commit

51fc99f1e180a30c2a7bc21517b41009fbb72f3f

parent

ee14f070df766bddd8710124dbcfc2737422882d

1 file changed, 4 insertions(+), 3 deletions(-)

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -2092,13 +2092,14 @@
(use-package add-node-modules-path :config (progn (define-hook-helper js2-mode () + :name node-modules-flycheck (add-node-modules-path) (when (executable-find "eslint") - (setq flycheck-javascript-eslint-executable "eslint")) + (setq-local flycheck-javascript-eslint-executable (executable-find "eslint"))) (when (executable-find "prettier-standard") - (setq flycheck-javascript-standard-executable "prettier-standard")) + (setq-local flycheck-javascript-standard-executable (executable-find "prettier-standard"))) (when (executable-find "standard") - (setq flycheck-javascript-standard-executable "standard"))))) + (setq-local flycheck-javascript-standard-executable (executable-find "standard")))))) ;;;;;;; Flow