Allow the use of StandardX for StandardJS linting and fixing.
See https://github.com/standard/standardx
This commit is contained in:
parent
cf5120ba75
commit
ea91209a66
3 changed files with 3 additions and 0 deletions
|
@ -7,6 +7,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/standardx/bin/cmd.js',
|
||||
\ 'node_modules/standard/bin/cmd.js',
|
||||
\ 'node_modules/semistandard/bin/cmd.js',
|
||||
\ 'node_modules/.bin/standard',
|
||||
|
|
|
@ -7,6 +7,7 @@ call ale#Set('typescript_standard_options', '')
|
|||
|
||||
function! ale_linters#typescript#standard#GetExecutable(buffer) abort
|
||||
return ale#node#FindExecutable(a:buffer, 'typescript_standard', [
|
||||
\ 'node_modules/standardx/bin/cmd.js',
|
||||
\ 'node_modules/standard/bin/cmd.js',
|
||||
\ 'node_modules/.bin/standard',
|
||||
\])
|
||||
|
|
|
@ -7,6 +7,7 @@ call ale#Set('javascript_standard_options', '')
|
|||
|
||||
function! ale#fixers#standard#GetExecutable(buffer) abort
|
||||
return ale#node#FindExecutable(a:buffer, 'javascript_standard', [
|
||||
\ 'node_modules/standardx/bin/cmd.js',
|
||||
\ 'node_modules/standard/bin/cmd.js',
|
||||
\ 'node_modules/.bin/standard',
|
||||
\])
|
||||
|
|
Reference in a new issue