Commit 5e46882b authored by marc0s's avatar marc0s

chore: eslintd tunings

parent 860bf3a4
......@@ -154,8 +154,7 @@ work here..."
(use-package eslintd-fix
:ensure t
:init
(add-hook 'js2-mode-hook 'eslintd-fix-mode))
:hook (js2-mode . eslintd-fix-mode))
(use-package flycheck
:ensure t
......@@ -170,7 +169,8 @@ work here..."
(reusable-frames . visible)
(window-height . 0.2)))
(defun my/use-eslintd ()
(setq-local flycheck-javascript-eslint-executable (concat (getenv "NVM_BIN") "/eslint_d")))
(setq-local flycheck-javascript-eslint-executable (concat (getenv "NVM_BIN") "/eslint_d"))
(setq-local eslintd-fix-executable (concat (getenv "NVM_BIN") "/eslint_d")))
(defun my/luacheck ()
(setq-local flycheck-lua-luacheck-executable (concat (getenv "HOME") "/.luarocks/bin/luacheck")))
(add-hook 'flycheck-mode-hook #'my/use-eslintd)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment