summaryrefslogtreecommitdiff
path: root/ale_linters/typescript/tslint.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/typescript/tslint.vim')
-rw-r--r--ale_linters/typescript/tslint.vim8
1 files changed, 3 insertions, 5 deletions
diff --git a/ale_linters/typescript/tslint.vim b/ale_linters/typescript/tslint.vim
index eb5b1a7d..ae41ed4f 100644
--- a/ale_linters/typescript/tslint.vim
+++ b/ale_linters/typescript/tslint.vim
@@ -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', {