summaryrefslogtreecommitdiff
path: root/ale_linters/typescript
diff options
context:
space:
mode:
authorShane Smith <shane@smudel.ca>2017-04-18 04:28:54 -0400
committerw0rp <w0rp@users.noreply.github.com>2017-04-18 09:28:54 +0100
commit72449d7cb154ec16dee95fac76c487c28f7d48df (patch)
tree47570e5d9e164a2c5da93a5c5c03ac0616203321 /ale_linters/typescript
parentbdad25eefd6526f8130f97edbe25a1179e27aadc (diff)
downloadale-72449d7cb154ec16dee95fac76c487c28f7d48df.zip
Add missing "use global" var for tslint (#484)
* Add missing "use global" var for tslint * Add typescript tslint documentation
Diffstat (limited to 'ale_linters/typescript')
-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',