From 7884f0a028369a7b145ef1488a0a3e6faf18478a Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 28 May 2024 20:36:46 +0000 Subject: [PATCH] style: format code with Prettier This commit fixes the style issues introduced in 54e79be according to the output from Prettier. Details: None --- astro.config.mjs | 18 +++++++++--------- src/content/posts/2024_05_28-Astro_is_hard.mdx | 16 +++++++++------- src/styles/_pill.scss | 6 ++++-- 3 files changed, 22 insertions(+), 18 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 554af88..5f60116 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -5,12 +5,12 @@ import mdx from "@astrojs/mdx"; // https://astro.build/config export default defineConfig({ - output: "static", - markdown: { - syntaxHighlight: "shiki", - shikiConfig: { - theme: syntaxTheme - } - }, - integrations: [mdx()] -}); \ No newline at end of file + output: "static", + markdown: { + syntaxHighlight: "shiki", + shikiConfig: { + theme: syntaxTheme, + }, + }, + integrations: [mdx()], +}); diff --git a/src/content/posts/2024_05_28-Astro_is_hard.mdx b/src/content/posts/2024_05_28-Astro_is_hard.mdx index 7fc472b..f4cce11 100644 --- a/src/content/posts/2024_05_28-Astro_is_hard.mdx +++ b/src/content/posts/2024_05_28-Astro_is_hard.mdx @@ -3,22 +3,24 @@ title: Astro is hard.... description: Arugh pubDate: 2024-05-28 tags: - - astro - - typescript + - astro + - typescript --- import Note from "../../components/Note.astro"; -- I've been trying to learn typescript through trying astro -- Astro is hard, due to all the issues I've encountered +- I've been trying to learn typescript through trying astro +- Astro is hard, due to all the issues I've encountered ```typescript -export async function getTagsBySlug(postTags: string[]): Promise[]> { +export async function getTagsBySlug( + postTags: string[], +): Promise[]> { // Collect all the tags from collections const allTags: CollectionEntry<"tags">[] = await getCollection("tags"); - + // Loop through all the tags in a post and the tags in the collections // To see if they match, if they do we'll return them const tags: CollectionEntry<"tags">[] = []; @@ -27,7 +29,7 @@ export async function getTagsBySlug(postTags: string[]): Promise