Skip to content

Commit 67ae944

Browse files
committed
Update prettier parser (babylon -> babel)
1 parent d8dd427 commit 67ae944

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/codefmt/prettier.vim

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ function! codefmt#prettier#GetFormatter() abort
6868
\ 'prettier_executable') + ['--no-color']
6969

7070
" prettier is able to automatically choose the best parser if the filepath
71-
" is provided. Otherwise, fall back to the previous default: babylon.
71+
" is provided. Otherwise, fall back to the previous default: babel.
7272
if @% == ""
73-
call extend(l:cmd, ['--parser', 'babylon'])
73+
call extend(l:cmd, ['--parser', 'babel'])
7474
else
7575
call extend(l:cmd, ['--stdin-filepath', expand('%:p')])
7676
endif

0 commit comments

Comments
 (0)