summaryrefslogtreecommitdiff
path: root/ale_linters/typescript/tslint.vim
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-02-11 19:40:57 +0000
committerw0rp <devw0rp@gmail.com>2017-02-11 19:40:57 +0000
commitecbb27680563a50d4dd981f968d659ef20bfbe30 (patch)
tree3e60f1ad7840dce1351819cd191a4c7ca0a7330e /ale_linters/typescript/tslint.vim
parentc33602534e205aa677521ce49a8054588d88bdc2 (diff)
downloadale-ecbb27680563a50d4dd981f968d659ef20bfbe30.zip
Replace every stdin-wrapper script with the new %t formatting support
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', {