General refactor + cleanup

This commit is contained in:
Henrik Lissner 2017-06-16 02:06:21 +02:00
parent 3e769dc43f
commit 4eb2a7cb41
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 24 additions and 22 deletions

View file

@ -18,7 +18,7 @@
;; Favor local eslint over global, if available
(defun +javascript|init-flycheck-elint ()
(when (derived-mode-p 'js-mode 'js2-mode)
(when (derived-mode-p 'js-mode)
(when-let ((eslint (expand-file-name "node_modules/eslint/bin/eslint.js" (doom-project-root)))
(exists-p (file-exists-p eslint))
(executable-p (file-executable-p eslint)))