mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
lang/javascript: remove extra parentheses causing nonvariable error
This commit is contained in:
@ -27,8 +27,8 @@
|
|||||||
(defun +javascript|init-flycheck-eslint ()
|
(defun +javascript|init-flycheck-eslint ()
|
||||||
"Favor local eslint over global installs and configure flycheck for eslint."
|
"Favor local eslint over global installs and configure flycheck for eslint."
|
||||||
(when (derived-mode-p 'js-mode)
|
(when (derived-mode-p 'js-mode)
|
||||||
(when-let* (((exec-path (list (doom-project-expand "node_modules/.bin")))
|
(when-let* ((exec-path (list (doom-project-expand "node_modules/.bin")))
|
||||||
(eslint (executable-find "eslint"))))
|
(eslint (executable-find "eslint")))
|
||||||
(setq-local flycheck-javascript-eslint-executable eslint))
|
(setq-local flycheck-javascript-eslint-executable eslint))
|
||||||
(when (flycheck-find-checker-executable 'javascript-eslint)
|
(when (flycheck-find-checker-executable 'javascript-eslint)
|
||||||
;; Flycheck has it's own trailing command and semicolon warning that was
|
;; Flycheck has it's own trailing command and semicolon warning that was
|
||||||
|
Reference in New Issue
Block a user