Merge pull request #2784 from hsanson/2733-add-semistandard-executable-to-path-search

Add semistandard to node_modules search.
This commit is contained in:
w0rp 2019-09-22 11:36:53 +01:00 committed by GitHub
commit e6241ee0d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,7 @@ call ale#Set('javascript_standard_options', '')
function! ale_linters#javascript#standard#GetExecutable(buffer) abort
return ale#node#FindExecutable(a:buffer, 'javascript_standard', [
\ 'node_modules/standard/bin/cmd.js',
\ 'node_modules/semistandard/bin/cmd.js',
\ 'node_modules/.bin/standard',
\])
endfunction