summaryrefslogtreecommitdiff
path: root/ale_linters/javascript
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-04-09 19:11:20 +0100
committerw0rp <devw0rp@gmail.com>2018-04-09 19:11:20 +0100
commit719b790574b6aeb4fc3c956dfbcffa3c3987a668 (patch)
treed0d773308e97a3002075f9de2348874606b70ed4 /ale_linters/javascript
parent3a47413286ff4701898b571aa4b066bd6d17bf3e (diff)
downloadale-719b790574b6aeb4fc3c956dfbcffa3c3987a668.zip
Close #542 - Add an option for disabling running locally installed executables by default
Diffstat (limited to 'ale_linters/javascript')
-rwxr-xr-xale_linters/javascript/flow.vim2
-rw-r--r--ale_linters/javascript/jscs.vim2
-rw-r--r--ale_linters/javascript/jshint.vim2
-rw-r--r--ale_linters/javascript/standard.vim2
-rw-r--r--ale_linters/javascript/xo.vim2
5 files changed, 5 insertions, 5 deletions
diff --git a/ale_linters/javascript/flow.vim b/ale_linters/javascript/flow.vim
index 643ea190..d2b362b5 100755
--- a/ale_linters/javascript/flow.vim
+++ b/ale_linters/javascript/flow.vim
@@ -4,7 +4,7 @@
call ale#Set('javascript_flow_executable', 'flow')
call ale#Set('javascript_flow_use_home_config', 0)
-call ale#Set('javascript_flow_use_global', 0)
+call ale#Set('javascript_flow_use_global', get(g:, 'ale_use_global_executables', 0))
function! ale_linters#javascript#flow#GetExecutable(buffer) abort
let l:flow_config = ale#path#FindNearestFile(a:buffer, '.flowconfig')
diff --git a/ale_linters/javascript/jscs.vim b/ale_linters/javascript/jscs.vim
index bcf3ee3a..60044037 100644
--- a/ale_linters/javascript/jscs.vim
+++ b/ale_linters/javascript/jscs.vim
@@ -2,7 +2,7 @@
" Description: jscs for JavaScript files
call ale#Set('javascript_jscs_executable', 'jscs')
-call ale#Set('javascript_jscs_use_global', 0)
+call ale#Set('javascript_jscs_use_global', get(g:, 'ale_use_global_executables', 0))
function! ale_linters#javascript#jscs#GetExecutable(buffer) abort
return ale#node#FindExecutable(a:buffer, 'javascript_jscs', [
diff --git a/ale_linters/javascript/jshint.vim b/ale_linters/javascript/jshint.vim
index 93b16a8f..2e9bb9fd 100644
--- a/ale_linters/javascript/jshint.vim
+++ b/ale_linters/javascript/jshint.vim
@@ -2,7 +2,7 @@
" Description: JSHint for Javascript files
call ale#Set('javascript_jshint_executable', 'jshint')
-call ale#Set('javascript_jshint_use_global', 0)
+call ale#Set('javascript_jshint_use_global', get(g:, 'ale_use_global_executables', 0))
function! ale_linters#javascript#jshint#GetExecutable(buffer) abort
return ale#node#FindExecutable(a:buffer, 'javascript_jshint', [
diff --git a/ale_linters/javascript/standard.vim b/ale_linters/javascript/standard.vim
index aa6a3a72..f16b837a 100644
--- a/ale_linters/javascript/standard.vim
+++ b/ale_linters/javascript/standard.vim
@@ -2,7 +2,7 @@
" Description: standardjs for JavaScript files
call ale#Set('javascript_standard_executable', 'standard')
-call ale#Set('javascript_standard_use_global', 0)
+call ale#Set('javascript_standard_use_global', get(g:, 'ale_use_global_executables', 0))
call ale#Set('javascript_standard_options', '')
function! ale_linters#javascript#standard#GetExecutable(buffer) abort
diff --git a/ale_linters/javascript/xo.vim b/ale_linters/javascript/xo.vim
index cf305eb4..bc8657ed 100644
--- a/ale_linters/javascript/xo.vim
+++ b/ale_linters/javascript/xo.vim
@@ -2,7 +2,7 @@
" Description: xo for JavaScript files
call ale#Set('javascript_xo_executable', 'xo')
-call ale#Set('javascript_xo_use_global', 0)
+call ale#Set('javascript_xo_use_global', get(g:, 'ale_use_global_executables', 0))
call ale#Set('javascript_xo_options', '')
function! ale_linters#javascript#xo#GetExecutable(buffer) abort