no-danger-with-children
Added in v0.5.0Configuration
rslint.config.ts
Disallow when a DOM element is using both children and dangerouslySetInnerHTML.
Rule Details
This rule helps prevent problems caused by using children and
dangerouslySetInnerHTML at the same time. React will throw a warning if this
rule is ignored.
Examples of incorrect code for this rule:
Examples of correct code for this rule: