Skip to content

jsx-no-comment-textnodes rejecting html-entity "//" #1517

@wesleycoder

Description

@wesleycoder

The rule jsx-no-comment-textnodes is warning when using html-entities for slashes
(// -> //)

Example:

<pre>&#x2F;&#x2F; TODO: Put instructions about usage here</pre>

This should not warn, since it is not valid comment.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ljharb@wesleycoder

        Issue actions

          jsx-no-comment-textnodes rejecting html-entity "&#x2F;&#x2F;" · Issue #1517 · jsx-eslint/eslint-plugin-react