Skip to content

html-quotes single should allow double when single quote is within it #874

Closed
@rightaway

Description

@rightaway

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 for html-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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions