fix: resolve lint issues

This commit is contained in:
2026-02-05 16:34:03 -05:00
parent 91ad515205
commit b56a848d21
3 changed files with 4 additions and 3 deletions
@@ -911,6 +911,7 @@
on:click={handleMarkdownClick}
role="presentation"
>
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
{@html pasteContent}
</div>
{/if}
@@ -17,7 +17,7 @@
let passwordFocused = false;
let showPassword = false;
1;
let passwordChecks = {
minLength: false,
maxLength: false,
@@ -7,7 +7,7 @@
$: stats = data.stats.stats;
$: dailyData = stats.pastes.daily || [];
$: maxCount = Math.max(...dailyData.map((d: any) => d.count), 5);
$: maxCount = Math.max(...dailyData.map((d: { count: number; date: number }) => d.count), 5);
function getOrdinal(n: number) {
const s = ['th', 'st', 'nd', 'rd'];
@@ -90,7 +90,7 @@
<h2 class="mb-6 text-xl font-semibold">Pastes Growth (Last 7 Days)</h2>
<div class="flex h-64 w-full items-end justify-between gap-2 px-2">
{#if dailyData.length > 0}
{#each dailyData as d}
{#each dailyData as d (d.date)}
<div class="group relative flex h-full flex-1 flex-col justify-end">
<div
use:tooltip={[`${formatNumber(d.count)} paste${d.count !== 1 ? 's' : ''}`, true]}