Fix #398 - Report problems with the eslint configuration file

This commit is contained in:
w0rp
2017-04-20 13:07:32 +01:00
parent 0384cabd77
commit 7fd7630153
2 changed files with 31 additions and 0 deletions

View File

@@ -42,6 +42,7 @@ endfunction
function! ale_linters#javascript#eslint#Handle(buffer, lines) abort
let l:config_error_pattern = '\v^ESLint couldn''t find a configuration file'
\ . '|^Cannot read config file'
\ . '|^.*Configuration for rule .* is invalid'
" Look for a message in the first few lines which indicates that
" a configuration file couldn't be found.