diff options
author | Shane Smith <shane@smudel.ca> | 2017-04-18 04:28:54 -0400 |
---|---|---|
committer | w0rp <w0rp@users.noreply.github.com> | 2017-04-18 09:28:54 +0100 |
commit | 72449d7cb154ec16dee95fac76c487c28f7d48df (patch) | |
tree | 47570e5d9e164a2c5da93a5c5c03ac0616203321 /ale_linters/typescript | |
parent | bdad25eefd6526f8130f97edbe25a1179e27aadc (diff) | |
download | ale-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.vim | 7 |
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', |