chore: enable eslint rule react/no-danger (#17983)

* enable react/no-danger and disable rule all places

* remove wild rule
This commit is contained in:
Christoffer Bjelke authored and GitHub committed 2024-12-04 15:07:30 +00:00
1 parent 509fc4b289
commit a75a5b72b2
22 files changed
+43 -4

No files matched your search

@@ -95,6 +95,7 @@ const CheckboxField = forwardRef<HTMLInputElement, Props>(
{descriptionAsSafeHtml ? (
<span
className={classNames("text-sm", rest.descriptionClassName)}
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{
__html: markdownToSafeHTML(descriptionAsSafeHtml),
}}