vim-prettier icon indicating copy to clipboard operation
vim-prettier copied to clipboard

feature request: use single quotes instead of double quotes in JSX (like in VS Code)

Open n-xlkt opened this issue 4 years ago • 6 comments

Do you want to request a feature or report a bug? Feature

What is the current/expected behavior? Ability to toggle JSX Single Quote option image

What version of vim-prettier are you using - (output of :PrettierVersion) ? 1.0.0-alpha

What version of prettier are you using - (output of :PrettierCliVersion) ? 1.16.4^@

What is your prettier executable path - (output of :PrettierCliPath) ? ../client/node_modules/.bin/prettier

Did this work in previous versions of vim-prettier and/or prettier ? Not sure

n-xlkt avatar Sep 16 '19 18:09 n-xlkt

HI @n-xlkt

Thanks for reporting this issue, looks like we need to add support on vim-prettier for both options:

  --jsx-bracket-same-line  Put > on the last line instead of at a new line.
  --jsx-single-quote       Use single quotes in JSX.

I will work on adding this to the release/1.x branch

mitermayer avatar Sep 18 '19 17:09 mitermayer

I see this issue's been open for some time; has it been implemented?

robechun avatar May 24 '20 05:05 robechun

I would like to know too if it has been implemented already or will be soon?

ecosse3 avatar Jun 16 '20 15:06 ecosse3

I quote the above messages.

isimplydonotexist avatar Nov 06 '20 19:11 isimplydonotexist

Now is Dec 18 2020, any update @mitermayer?

khaitranhq avatar Dec 18 '20 09:12 khaitranhq

Any updates here?

Anakael avatar Aug 18 '21 13:08 Anakael