From bcde20dec0de04899251c6918d1f56b853d42718 Mon Sep 17 00:00:00 2001 From: Damien Cassou Date: Mon, 8 Jul 2019 06:59:55 +0200 Subject: [PATCH] Fix eslint checker for eslint >= 6. Fix [#1600]. --- flycheck.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flycheck.el b/flycheck.el index f48dd9149..9c390d63a 100644 --- a/flycheck.el +++ b/flycheck.el @@ -8623,7 +8623,7 @@ for more information about the custom directories." "Whether there is a valid eslint config for the current buffer." (let* ((executable (flycheck-find-checker-executable 'javascript-eslint)) (exitcode (and executable (call-process executable nil nil nil - "--print-config" ".")))) + "--print-config" (buffer-file-name))))) (eq exitcode 0))) (defun flycheck-parse-eslint (output checker buffer)