Replace every stdin-wrapper script with the new %t formatting support

This commit is contained in:
w0rp
2017-02-11 19:40:57 +00:00
parent c33602534e
commit ecbb276805
39 changed files with 103 additions and 208 deletions

View File

@@ -38,13 +38,11 @@ function! ale_linters#typescript#tslint#Handle(buffer, lines) abort
return l:output
endfunction
function! ale_linters#typescript#tslint#BuildLintCommand(buffer_n) abort
let l:tsconfig_path = ale#util#FindNearestFile(a:buffer_n, 'tslint.json')
function! ale_linters#typescript#tslint#BuildLintCommand(buffer) abort
let l:tsconfig_path = ale#util#FindNearestFile(a:buffer, 'tslint.json')
let l:tslint_options = empty(l:tsconfig_path) ? '' : '-c ' . l:tsconfig_path
let l:ext = '.' . fnamemodify(bufname(a:buffer_n), ':e')
return g:ale#util#stdin_wrapper . ' ' . l:ext . ' tslint ' . l:tslint_options
return 'tslint ' . l:tslint_options . ' %t'
endfunction
call ale#linter#Define('typescript', {