Skip to content

Any way to autofix react/no-unescaped-entities? #13954

Answered by duailibe
sneko asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kachkaev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants