-
-
Notifications
You must be signed in to change notification settings - Fork 668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
html-quotes single should allow double when single quote is within it #874
Comments
Same problem here. Had to stop using this rule o avoid any big issues when using lint on save |
Thank you for this issue. I think that, like quotes, we need to add an "avoidEscape" option to the |
become
that is completely unreadable. |
@ota-meshi
should be fixed to:
If json after stringification contains |
Sorry, I have no time to make pull request.
|
What did you do?
<component attr="contains single quote ' in attr" />
What did you expect to happen?
It should be allowed even though
single
is set forhtml-quotes
. This is how the quoting functionality works in core eslint for javascript. If you set single quotes you can still use double quotes if the string contains a single quote. This should be no different.What actually happened?
It gave an eslint error.
The text was updated successfully, but these errors were encountered: