This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 660
Preferred string quotes #2443
Labels
Comments
45 tasks
Learning the new code base of Rome, someone can point out a place to begin with that contribution? |
tools/crates/rome_js_formatter/src/utils/mod.rs Lines 614 to 637 in 77ab407
This part is responsible for formatting string literals but currently always picks the quote-style specified in the options. |
ematipico
added
the
I-Normal
Implementation: normal understanding of the tool and awareness
label
May 5, 2022
I will look into this |
Removing the "good first issue" because it's a sensitive part of the formatter (string manipulation) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Prettier detects the ideal quote to use for a string so that the least amount of escaped quotes are necessary:
Playground
Rome should do the same when printing string literal tokens.
Input
Prettier
Rome
Expected
Rome's formatting to match prettier's.
The text was updated successfully, but these errors were encountered: