Skip to content

In HTML files singleQuote is not working? #15484

Answered by seiyab
krisimmig asked this question in Q&A
Discussion options

You must be logged in to vote

I found that it is discussed in this issue #5828.
Summarizing the discussion:

  • It had been implemented as an intended behavior for consistency with JSX, that only allows double quotes. #5828 (comment)
  • A member said Prettier should respect configuration. #5828 (comment)
  • Another member attempted to respect singleQuote in HTML. It's not done. #14562

(I didn't know single quotes are valid for HTML attributes. TIL.)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by sosukesuzuki
Comment options

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