add support for prettier-ruby to prettier fixer (#3593)

it _does_ need an additional plugin, but when it has the plugin, it
works as expected.
This commit is contained in:
David Buchan-Swanson
2021-02-18 18:33:02 +11:00
committed by GitHub
parent 0b35c3a5b9
commit 1ee7f6c97b
7 changed files with 24 additions and 1 deletions

View File

@@ -269,6 +269,20 @@ Execute(Should set --parser based on filetype, HTML):
\ . ' --stdin-filepath %s --stdin',
\ }
Execute(Should set --parser based on filetype, Ruby):
call ale#test#SetFilename('../prettier-test-files/testfile')
set filetype=ruby
GivenCommandOutput ['1.6.0']
AssertFixer
\ {
\ 'command': ale#path#CdString(expand('%:p:h'))
\ . ale#Escape(g:ale_javascript_prettier_executable)
\ . ' --parser ruby'
\ . ' --stdin-filepath %s --stdin',
\ }
Execute(Should set --parser based on first filetype of multiple filetypes):
call ale#test#SetFilename('../prettier-test-files/testfile')