From 12b3940c1317f1b9b593433796961b917549a99b Mon Sep 17 00:00:00 2001 From: florian-lefebvre Date: Mon, 15 Jul 2024 14:48:07 +0000 Subject: [PATCH] [ci] lint --- astro.config.ts | 2 +- src/components/Tags.astro | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/astro.config.ts b/astro.config.ts index 04b7ef7..c556aa6 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -58,7 +58,7 @@ export default defineConfig({ { label: 'External resources', badge: 'Updated', - link: '/external-resources' + link: '/external-resources', }, ], components: { diff --git a/src/components/Tags.astro b/src/components/Tags.astro index a8ff176..43bcef5 100644 --- a/src/components/Tags.astro +++ b/src/components/Tags.astro @@ -11,7 +11,7 @@ const tagsParams = Astro.url.searchParams.getAll("tag"); // Set is used to remove duplicates const allTags = Array.from( - new Set(allResources.flatMap((resource) => resource.data.tags ?? [])) + new Set(allResources.flatMap((resource) => resource.data.tags ?? [])), ); const { tags } = Astro.props; @@ -24,7 +24,7 @@ const filteredTags = const style = allTags .map( (tag) => - `.sl-markdown-content:has([data-tag=${JSON.stringify(tag)}]:checked) .card-wrapper[data-tags*=${JSON.stringify(tag)}] { display: block; }` + `.sl-markdown-content:has([data-tag=${JSON.stringify(tag)}]:checked) .card-wrapper[data-tags*=${JSON.stringify(tag)}] { display: block; }`, ) .join("\n"); ---