Change some options for :Prettier
, :PrettierAsync
commands on Vim to be same to the normal yarn prettier file.js --write
command's or VSCode plugin of prettier-vscode
's prettier result.
Add the following configurations to your .vimrc
.
let g:prettier#config#arrow_parens = 'always'
let g:prettier#config#trailing_comma = 'es5'