diff options
author | Ian Campbell <ipcampbell@gmail.com> | 2019-10-21 20:24:22 -0400 |
---|---|---|
committer | Ian Campbell <ipcampbell@gmail.com> | 2019-10-21 20:46:54 -0400 |
commit | ea91209a6685faa0275dc5f8735836ced8b08e4b (patch) | |
tree | df96de7c43917620ba402a383f8b2521fa4a9737 | |
parent | cf5120ba756b339ef78a285d46814fa13b04aafd (diff) | |
download | ale-ea91209a6685faa0275dc5f8735836ced8b08e4b.zip |
Allow the use of StandardX for StandardJS linting and fixing.
See https://github.com/standard/standardx
-rw-r--r-- | ale_linters/javascript/standard.vim | 1 | ||||
-rw-r--r-- | ale_linters/typescript/standard.vim | 1 | ||||
-rw-r--r-- | autoload/ale/fixers/standard.vim | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/ale_linters/javascript/standard.vim b/ale_linters/javascript/standard.vim index 203a803e..1990adce 100644 --- a/ale_linters/javascript/standard.vim +++ b/ale_linters/javascript/standard.vim @@ -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', diff --git a/ale_linters/typescript/standard.vim b/ale_linters/typescript/standard.vim index 184d9727..da8f14eb 100644 --- a/ale_linters/typescript/standard.vim +++ b/ale_linters/typescript/standard.vim @@ -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', \]) diff --git a/autoload/ale/fixers/standard.vim b/autoload/ale/fixers/standard.vim index 731a4f46..cffa9f9d 100644 --- a/autoload/ale/fixers/standard.vim +++ b/autoload/ale/fixers/standard.vim @@ -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', \]) |