no-unescaped-entities
Configuration
rslint.config.ts
Rule Details
Disallow unescaped HTML entities from appearing in markup. Reports occurrences of the characters >, ", ', and } in JSX text content and suggests escape sequences as replacements.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
Options
forbid(default:[">", "\"", "'", "}"]with standard alternatives): List of forbidden characters. Each item can be either a string (the character itself) or an object{ char: string, alternatives: string[] }specifying replacement suggestions.
Differences from ESLint
TypeScript's JSX parser rejects unescaped > and } in JSX text with a syntax error before this rule can run, so for TypeScript sources those defaults are effectively enforced by the parser itself. This rule still catches ', ", and any custom characters configured via forbid.