From ea91209a6685faa0275dc5f8735836ced8b08e4b Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Mon, 21 Oct 2019 20:24:22 -0400 Subject: Allow the use of StandardX for StandardJS linting and fixing. See https://github.com/standard/standardx --- ale_linters/javascript/standard.vim | 1 + ale_linters/typescript/standard.vim | 1 + autoload/ale/fixers/standard.vim | 1 + 3 files changed, 3 insertions(+) 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', \]) -- cgit v1.2.3