summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalius Dobravolskas <daliusd@wix.com>2020-04-15 17:30:19 +0300
committerDalius Dobravolskas <daliusd@wix.com>2020-04-15 17:30:19 +0300
commit891852de71da8cb5dcda05fb702d870773f88e92 (patch)
tree7495f6fb0e22e1702de3800858ffedadebd16238
parentbbe5153fcb36dec9860ced33ae8ff0b5d76ac02a (diff)
downloadale-891852de71da8cb5dcda05fb702d870773f88e92.zip
Fix tslint fixer not working issue (temporary file not found)
-rw-r--r--autoload/ale/fixers/tslint.vim2
-rw-r--r--test/fixers/test_tslint_fixer_callback.vader4
2 files changed, 3 insertions, 3 deletions
diff --git a/autoload/ale/fixers/tslint.vim b/autoload/ale/fixers/tslint.vim
index b352af3a..15768fd5 100644
--- a/autoload/ale/fixers/tslint.vim
+++ b/autoload/ale/fixers/tslint.vim
@@ -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
diff --git a/test/fixers/test_tslint_fixer_callback.vader b/test/fixers/test_tslint_fixer_callback.vader
index aa9c0322..a88992fa 100644
--- a/test/fixers/test_tslint_fixer_callback.vader
+++ b/test/fixers/test_tslint_fixer_callback.vader
@@ -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(''))
@@ -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(''))