From dcaf0e61dd9150dcc3c795151eaf23e432c8c391 Mon Sep 17 00:00:00 2001 From: Stefan Probst Date: Mon, 3 Jun 2024 12:50:22 +0200 Subject: [PATCH] chore: lint --- src/lib/content/components.ts | 1 + src/pages/[locale]/index.astro | 120 ++++++++++++++++++--------------- 2 files changed, 67 insertions(+), 54 deletions(-) diff --git a/src/lib/content/components.ts b/src/lib/content/components.ts index d0656a57..7bf6d83c 100644 --- a/src/lib/content/components.ts +++ b/src/lib/content/components.ts @@ -13,6 +13,7 @@ import Link from "@/components/link.astro"; export function useMDXComponents(): MDXComponents { return { + // @ts-expect-error It's fine. a: Link, Callout, Download, diff --git a/src/pages/[locale]/index.astro b/src/pages/[locale]/index.astro index e76f92ce..a5735e9b 100644 --- a/src/pages/[locale]/index.astro +++ b/src/pages/[locale]/index.astro @@ -90,15 +90,17 @@ const { hero } = page; const event = await reader().collections[collectionName].readOrThrow(id); return ( - +
  • + +
  • ); } @@ -109,15 +111,17 @@ const { hero } = page; await reader().collections[collectionName].readOrThrow(id); return ( - +
  • + +
  • ); } @@ -127,15 +131,17 @@ const { hero } = page; const page = await reader().collections[collectionName].readOrThrow(id); return ( - +
  • + +
  • ); } @@ -170,15 +176,17 @@ const { hero } = page; const event = await reader().collections[collectionName].readOrThrow(id); return ( - +
  • + +
  • ); } @@ -189,15 +197,17 @@ const { hero } = page; await reader().collections[collectionName].readOrThrow(id); return ( - +
  • + +
  • ); } @@ -207,15 +217,17 @@ const { hero } = page; const page = await reader().collections[collectionName].readOrThrow(id); return ( - +
  • + +
  • ); }