lint: add svelte-ignore comments for @html tags (17 fixes)
Co-Authored-By: Justin Edmund <justin@jedmund.com>
This commit is contained in:
parent
903308ce3f
commit
3b46df5c7b
15 changed files with 17 additions and 0 deletions
|
|
@ -3,6 +3,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="avatar-simple">
|
<div class="avatar-simple">
|
||||||
|
<!-- svelte-ignore svelte/no-at-html-tags -->
|
||||||
{@html jedmundIcon}
|
{@html jedmundIcon}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,7 @@
|
||||||
|
|
||||||
{#if renderedContent}
|
{#if renderedContent}
|
||||||
<div class="post-body">
|
<div class="post-body">
|
||||||
|
<!-- svelte-ignore svelte/no-at-html-tags -->
|
||||||
{@html renderedContent}
|
{@html renderedContent}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<div class="post-body">
|
<div class="post-body">
|
||||||
|
<!-- svelte-ignore svelte/no-at-html-tags -->
|
||||||
{@html post.content}
|
{@html post.content}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@
|
||||||
{#if project.caseStudyContent && project.caseStudyContent.content && project.caseStudyContent.content.length > 0}
|
{#if project.caseStudyContent && project.caseStudyContent.content && project.caseStudyContent.content.length > 0}
|
||||||
<div class="case-study-section">
|
<div class="case-study-section">
|
||||||
<div class="case-study-content">
|
<div class="case-study-content">
|
||||||
|
<!-- svelte-ignore svelte/no-at-html-tags -->
|
||||||
{@html renderEdraContent(project.caseStudyContent)}
|
{@html renderEdraContent(project.caseStudyContent)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -133,6 +133,7 @@
|
||||||
<div class="project-logo" style="background-color: {backgroundColor}">
|
<div class="project-logo" style="background-color: {backgroundColor}">
|
||||||
{#if svgContent}
|
{#if svgContent}
|
||||||
<div bind:this={logoElement} class="logo-svg" style="transform: {logoTransform}">
|
<div bind:this={logoElement} class="logo-svg" style="transform: {logoTransform}">
|
||||||
|
<!-- svelte-ignore svelte/no-at-html-tags -->
|
||||||
{@html svgContent}
|
{@html svgContent}
|
||||||
</div>
|
</div>
|
||||||
{:else if logoUrl}
|
{:else if logoUrl}
|
||||||
|
|
@ -146,6 +147,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<div class="project-content">
|
<div class="project-content">
|
||||||
|
<!-- svelte-ignore svelte/no-at-html-tags -->
|
||||||
<p class="project-description">{@html highlightedDescription}</p>
|
<p class="project-description">{@html highlightedDescription}</p>
|
||||||
|
|
||||||
{#if isListOnly}
|
{#if isListOnly}
|
||||||
|
|
|
||||||
|
|
@ -83,6 +83,7 @@
|
||||||
{#if post.postType === 'essay'}
|
{#if post.postType === 'essay'}
|
||||||
<p>{getContentExcerpt(post.content, 300)}</p>
|
<p>{getContentExcerpt(post.content, 300)}</p>
|
||||||
{:else}
|
{:else}
|
||||||
|
<!-- svelte-ignore svelte/no-at-html-tags -->
|
||||||
{@html renderEdraContent(post.content)}
|
{@html renderEdraContent(post.content)}
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,7 @@
|
||||||
New Post
|
New Post
|
||||||
{#snippet icon()}
|
{#snippet icon()}
|
||||||
<div class="chevron">
|
<div class="chevron">
|
||||||
|
<!-- svelte-ignore svelte/no-at-html-tags -->
|
||||||
{@html ChevronDownIcon}
|
{@html ChevronDownIcon}
|
||||||
</div>
|
</div>
|
||||||
{/snippet}
|
{/snippet}
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,7 @@
|
||||||
{:else if showLogo}
|
{:else if showLogo}
|
||||||
<!-- Show placeholder when logo toggle is on but no logo provided -->
|
<!-- Show placeholder when logo toggle is on but no logo provided -->
|
||||||
<div class="preview-placeholder">
|
<div class="preview-placeholder">
|
||||||
|
<!-- svelte-ignore svelte/no-at-html-tags -->
|
||||||
{@html placeholderIcon}
|
{@html placeholderIcon}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,7 @@
|
||||||
{/each}
|
{/each}
|
||||||
</select>
|
</select>
|
||||||
<div class="select-icon">
|
<div class="select-icon">
|
||||||
|
<!-- svelte-ignore svelte/no-at-html-tags -->
|
||||||
{@html ChevronDownIcon}
|
{@html ChevronDownIcon}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,7 @@
|
||||||
|
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
<!-- Site-wide JSON-LD -->
|
<!-- Site-wide JSON-LD -->
|
||||||
|
<!-- svelte-ignore svelte/no-at-html-tags -->
|
||||||
{@html personJsonLdScript}
|
{@html personJsonLdScript}
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -142,6 +142,7 @@
|
||||||
|
|
||||||
<!-- JSON-LD -->
|
<!-- JSON-LD -->
|
||||||
{#if galleryJsonLdScript}
|
{#if galleryJsonLdScript}
|
||||||
|
<!-- svelte-ignore svelte/no-at-html-tags -->
|
||||||
{@html galleryJsonLdScript}
|
{@html galleryJsonLdScript}
|
||||||
{/if}
|
{/if}
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
@ -163,6 +164,7 @@
|
||||||
{#if album.content}
|
{#if album.content}
|
||||||
<div class="album-content">
|
<div class="album-content">
|
||||||
<div class="edra-rendered-content">
|
<div class="edra-rendered-content">
|
||||||
|
<!-- svelte-ignore svelte/no-at-html-tags -->
|
||||||
{@html renderEdraContent(album.content, { albumSlug: album.slug })}
|
{@html renderEdraContent(album.content, { albumSlug: album.slug })}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,7 @@
|
||||||
|
|
||||||
<!-- JSON-LD -->
|
<!-- JSON-LD -->
|
||||||
{#if projectJsonLdScript}
|
{#if projectJsonLdScript}
|
||||||
|
<!-- svelte-ignore svelte/no-at-html-tags -->
|
||||||
{@html projectJsonLdScript}
|
{@html projectJsonLdScript}
|
||||||
{/if}
|
{/if}
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
|
||||||
|
|
@ -357,6 +357,7 @@
|
||||||
|
|
||||||
<!-- JSON-LD -->
|
<!-- JSON-LD -->
|
||||||
{#if photoJsonLdScript}
|
{#if photoJsonLdScript}
|
||||||
|
<!-- svelte-ignore svelte/no-at-html-tags -->
|
||||||
{@html photoJsonLdScript}
|
{@html photoJsonLdScript}
|
||||||
{/if}
|
{/if}
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
|
||||||
|
|
@ -87,6 +87,7 @@
|
||||||
|
|
||||||
<!-- JSON-LD -->
|
<!-- JSON-LD -->
|
||||||
{#if articleJsonLdScript}
|
{#if articleJsonLdScript}
|
||||||
|
<!-- svelte-ignore svelte/no-at-html-tags -->
|
||||||
{@html articleJsonLdScript}
|
{@html articleJsonLdScript}
|
||||||
{/if}
|
{/if}
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
|
||||||
|
|
@ -117,6 +117,7 @@
|
||||||
|
|
||||||
<!-- JSON-LD -->
|
<!-- JSON-LD -->
|
||||||
{#if projectJsonLdScript}
|
{#if projectJsonLdScript}
|
||||||
|
<!-- svelte-ignore svelte/no-at-html-tags -->
|
||||||
{@html projectJsonLdScript}
|
{@html projectJsonLdScript}
|
||||||
{/if}
|
{/if}
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue