Skip to content

Commit

Permalink
Merge pull request #3107 from daliusd/tslintfix
Browse files Browse the repository at this point in the history
Fix tslint fixer not working issue (temporary file not found)
  • Loading branch information
w0rp committed Aug 7, 2020
2 parents f741245 + 891852d commit 2d174db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion autoload/ale/fixers/tslint.vim
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function! ale#fixers#tslint#Fix(buffer) abort
return {
\ 'command': ale#node#Executable(a:buffer, l:executable)
\ . l:tslint_config_option
\ . ' --fix %t',
\ . ' --outputAbsolutePaths --fix %t',
\ 'read_temporary_file': 1,
\}
endfunction
4 changes: 2 additions & 2 deletions test/fixers/test_tslint_fixer_callback.vader
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Execute(The tslint callback should return the correct default values):
\ 'read_temporary_file': 1,
\ 'command': ale#Escape('tslint')
\ . ' -c ' . ale#Escape('tslint.json')
\ . ' --fix %t',
\ . ' --outputAbsolutePaths --fix %t',
\ },
\ ale#fixers#tslint#Fix(bufnr(''))

Expand All @@ -40,6 +40,6 @@ Execute(The tslint callback should include custom tslint config option):
\ 'read_temporary_file': 1,
\ 'command': ale#Escape('tslint')
\ . ' -c ' . ale#Escape('.tslintrc')
\ . ' --fix %t',
\ . ' --outputAbsolutePaths --fix %t',
\ },
\ ale#fixers#tslint#Fix(bufnr(''))

0 comments on commit 2d174db

Please sign in to comment.