lang/javascript: remove extra parentheses causing nonvariable error

This commit is contained in:
Henrik Lissner 2017-12-16 23:51:43 -05:00
parent 1b3ee0af86
commit b8a969361d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -27,8 +27,8 @@
(defun +javascript|init-flycheck-eslint ()
"Favor local eslint over global installs and configure flycheck for eslint."
(when (derived-mode-p 'js-mode)
(when-let* (((exec-path (list (doom-project-expand "node_modules/.bin")))
(eslint (executable-find "eslint"))))
(when-let* ((exec-path (list (doom-project-expand "node_modules/.bin")))
(eslint (executable-find "eslint")))
(setq-local flycheck-javascript-eslint-executable eslint))
(when (flycheck-find-checker-executable 'javascript-eslint)
;; Flycheck has it's own trailing command and semicolon warning that was