-
Hi, In my JSX templating, if I have text with I know a solution would be to use i18n library to manage text elsewhere, but my project does not need that for now. Is there a way Prettier could escape entities only in templating? Thank you, EDIT: disabling the rule does not seem like a solution since it's recommended |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Prettier will try hard to not change the contents of your code, only whitespace (see https://prettier.io/docs/en/rationale.html#correctness). Yes, they may be equivalent when using JSX with HTML, but you may want to use JSX for other uses where And it's unlikely an option would be added for this. |
Beta Was this translation helpful? Give feedback.
Prettier will try hard to not change the contents of your code, only whitespace (see https://prettier.io/docs/en/rationale.html#correctness).
Yes, they may be equivalent when using JSX with HTML, but you may want to use JSX for other uses where
'
doesn't make sense.And it's unlikely an option would be added for this.