chore: use lint tags (#2952)
This commit is contained in:
@@ -131,7 +131,10 @@ export function ErrorOverlay(props: { url: URL }) {
|
||||
return (
|
||||
<>
|
||||
<div class="frsh-error-page">
|
||||
<style dangerouslySetInnerHTML={{ __html: errorCss }} />
|
||||
<style
|
||||
// deno-lint-ignore react-no-danger
|
||||
dangerouslySetInnerHTML={{ __html: errorCss }}
|
||||
/>
|
||||
<div class="inner">
|
||||
<div class="header">
|
||||
<button
|
||||
@@ -163,6 +166,7 @@ export function ErrorOverlay(props: { url: URL }) {
|
||||
</div>
|
||||
</div>
|
||||
<script
|
||||
// deno-lint-ignore react-no-danger
|
||||
dangerouslySetInnerHTML={{
|
||||
__html:
|
||||
`document.querySelector("#close-btn").addEventListener("click", () => parent.postMessage("close-error-overlay"));`,
|
||||
|
||||
@@ -452,6 +452,7 @@ function FreshRuntimeScript() {
|
||||
<script
|
||||
id={`__FRSH_STATE_${partialId}`}
|
||||
type="application/json"
|
||||
// deno-lint-ignore react-no-danger
|
||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(json) }}
|
||||
/>
|
||||
);
|
||||
@@ -486,6 +487,7 @@ function FreshRuntimeScript() {
|
||||
<script
|
||||
type="module"
|
||||
nonce={nonce}
|
||||
// deno-lint-ignore react-no-danger
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: scriptContent,
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user