-
Notifications
You must be signed in to change notification settings - Fork 660
🐛 Double quotes are not being enforced for JSX string property values #4054
Comments
I'll take this issue. |
@lbartroli Currently, I look into this issue, but i couldn't reproduce.... Can you show a reproduction repository ? |
@denbezrukov Oh, sorry for misunderstanding and thank you for pointing out my mistake 🙇
I agreed your comment and tried to look into the reason. ref: prettier/prettier#73 (comment) If we focus on prettier compatibilities, we should fix this issue. But If not, we don't need to fix. |
@nissy-dev no worries! it seems the prettier has an option for jsx quotes. #2465 (comment) Rome discussion |
@denbezrukov Thank you for sharing Rome discussion! I understood Rome does not attempt to support this option and format as close as possible to prettier's default formatting. ref: #2465 (reply in thread) Therefore, we should fix this issue? |
It's interesting. So we can fix it:
I'm leaning towards the first option: What do you think? |
Sorry for a late reply 🙇
You mean that formatter follow |
Environment information
What happened?
Double quotes on JSX string property values are not being enforced.
My
rome.json
config:Expected result
Formatter should enforce double quotes for JSX string property values:
Code of Conduct
The text was updated successfully, but these errors were encountered: