mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-10 06:21:53 +08:00
Allow the use of StandardX for StandardJS linting and fixing.
See https://github.com/standard/standardx
This commit is contained in:
@@ -7,6 +7,7 @@ call ale#Set('javascript_standard_options', '')
|
|||||||
|
|
||||||
function! ale_linters#javascript#standard#GetExecutable(buffer) abort
|
function! ale_linters#javascript#standard#GetExecutable(buffer) abort
|
||||||
return ale#node#FindExecutable(a:buffer, 'javascript_standard', [
|
return ale#node#FindExecutable(a:buffer, 'javascript_standard', [
|
||||||
|
\ 'node_modules/standardx/bin/cmd.js',
|
||||||
\ 'node_modules/standard/bin/cmd.js',
|
\ 'node_modules/standard/bin/cmd.js',
|
||||||
\ 'node_modules/semistandard/bin/cmd.js',
|
\ 'node_modules/semistandard/bin/cmd.js',
|
||||||
\ 'node_modules/.bin/standard',
|
\ 'node_modules/.bin/standard',
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ call ale#Set('typescript_standard_options', '')
|
|||||||
|
|
||||||
function! ale_linters#typescript#standard#GetExecutable(buffer) abort
|
function! ale_linters#typescript#standard#GetExecutable(buffer) abort
|
||||||
return ale#node#FindExecutable(a:buffer, 'typescript_standard', [
|
return ale#node#FindExecutable(a:buffer, 'typescript_standard', [
|
||||||
|
\ 'node_modules/standardx/bin/cmd.js',
|
||||||
\ 'node_modules/standard/bin/cmd.js',
|
\ 'node_modules/standard/bin/cmd.js',
|
||||||
\ 'node_modules/.bin/standard',
|
\ 'node_modules/.bin/standard',
|
||||||
\])
|
\])
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ call ale#Set('javascript_standard_options', '')
|
|||||||
|
|
||||||
function! ale#fixers#standard#GetExecutable(buffer) abort
|
function! ale#fixers#standard#GetExecutable(buffer) abort
|
||||||
return ale#node#FindExecutable(a:buffer, 'javascript_standard', [
|
return ale#node#FindExecutable(a:buffer, 'javascript_standard', [
|
||||||
|
\ 'node_modules/standardx/bin/cmd.js',
|
||||||
\ 'node_modules/standard/bin/cmd.js',
|
\ 'node_modules/standard/bin/cmd.js',
|
||||||
\ 'node_modules/.bin/standard',
|
\ 'node_modules/.bin/standard',
|
||||||
\])
|
\])
|
||||||
|
|||||||
Reference in New Issue
Block a user