summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/typescript/tslint.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/ale_linters/typescript/tslint.vim b/ale_linters/typescript/tslint.vim
index 247aeb43..c56c8b23 100644
--- a/ale_linters/typescript/tslint.vim
+++ b/ale_linters/typescript/tslint.vim
@@ -7,7 +7,14 @@ let g:ale_typescript_tslint_executable =
let g:ale_typescript_tslint_config_path =
\ get(g:, 'ale_typescript_tslint_config_path', '')
+let g:ale_typescript_tslint_use_global =
+\ get(g:, 'ale_typescript_tslint_use_global', 0)
+
function! ale_linters#typescript#tslint#GetExecutable(buffer) abort
+ if ale#Var(a:buffer, 'typescript_tslint_use_global')
+ return ale#Var(a:buffer, 'typescript_tslint_executable')
+ endif
+
return ale#path#ResolveLocalPath(
\ a:buffer,
\ 'node_modules/.bin/tslint',