mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-15 00:37:07 +08:00
Merge pull request #3107 from daliusd/tslintfix
Fix tslint fixer not working issue (temporary file not found)
This commit is contained in:
@@ -16,7 +16,7 @@ function! ale#fixers#tslint#Fix(buffer) abort
|
|||||||
return {
|
return {
|
||||||
\ 'command': ale#node#Executable(a:buffer, l:executable)
|
\ 'command': ale#node#Executable(a:buffer, l:executable)
|
||||||
\ . l:tslint_config_option
|
\ . l:tslint_config_option
|
||||||
\ . ' --fix %t',
|
\ . ' --outputAbsolutePaths --fix %t',
|
||||||
\ 'read_temporary_file': 1,
|
\ 'read_temporary_file': 1,
|
||||||
\}
|
\}
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ Execute(The tslint callback should return the correct default values):
|
|||||||
\ 'read_temporary_file': 1,
|
\ 'read_temporary_file': 1,
|
||||||
\ 'command': ale#Escape('tslint')
|
\ 'command': ale#Escape('tslint')
|
||||||
\ . ' -c ' . ale#Escape('tslint.json')
|
\ . ' -c ' . ale#Escape('tslint.json')
|
||||||
\ . ' --fix %t',
|
\ . ' --outputAbsolutePaths --fix %t',
|
||||||
\ },
|
\ },
|
||||||
\ ale#fixers#tslint#Fix(bufnr(''))
|
\ ale#fixers#tslint#Fix(bufnr(''))
|
||||||
|
|
||||||
@@ -40,6 +40,6 @@ Execute(The tslint callback should include custom tslint config option):
|
|||||||
\ 'read_temporary_file': 1,
|
\ 'read_temporary_file': 1,
|
||||||
\ 'command': ale#Escape('tslint')
|
\ 'command': ale#Escape('tslint')
|
||||||
\ . ' -c ' . ale#Escape('.tslintrc')
|
\ . ' -c ' . ale#Escape('.tslintrc')
|
||||||
\ . ' --fix %t',
|
\ . ' --outputAbsolutePaths --fix %t',
|
||||||
\ },
|
\ },
|
||||||
\ ale#fixers#tslint#Fix(bufnr(''))
|
\ ale#fixers#tslint#Fix(bufnr(''))
|
||||||
|
|||||||
Reference in New Issue
Block a user