Skip to content

Commit

Permalink
javascrip-eslint: fix config detection in eslint 6
Browse files Browse the repository at this point in the history
fixes #1593
  • Loading branch information
ar1a committed Jul 1, 2019
1 parent 8970b2f commit af22e0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flycheck.el
Original file line number Diff line number Diff line change
Expand Up @@ -8622,7 +8622,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)
Expand Down

0 comments on commit af22e0f

Please sign in to comment.