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

Created on 16 Sep 2019  路  5Comments  路  Source: prettier/vim-prettier

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

enhancement

Most helpful comment

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

All 5 comments

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

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

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

I quote the above messages.

Now is Dec 18 2020, any update @mitermayer?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yshuman1 picture yshuman1  路  6Comments

mitermayer picture mitermayer  路  6Comments

mitermayer picture mitermayer  路  8Comments

rkulla picture rkulla  路  3Comments

cdimitroulas picture cdimitroulas  路  5Comments