deno.com

jsx-no-unescaped-entities

NOTE: this rule is included the following rule sets:recommendedreactjsxfresh
Enable full set in deno.json:
{
  "lint": {
    "rules": {
      "tags": ["recommended"] // ...or "react", "jsx", "fresh"
    }
  }
}
Enable full set using the Deno CLI:
deno lint --rules-tags=recommended
# or ...
deno lint --rules-tags=react
# or ...
deno lint --rules-tags=jsx
# or ...
deno lint --rules-tags=fresh

Leaving the > or } character in JSX is often undesired and difficult to spot. Enforce that these characters must be passed as strings.

Invalid:

<div>></div>
<div>}</div>

Valid:

<div>&gt;</div>,
<div>{">"}</div>,
<div>{"}"}</div>,

Did you find what you needed?

Privacy policy