From e3267fcfa6e21b2c4fcd0836f509004377546a13 Mon Sep 17 00:00:00 2001 From: Darius Cepulis Date: Thu, 5 Feb 2026 09:42:20 -0600 Subject: [PATCH] chore(ci): format astro with biome --- .vscode/settings.json | 6 +++++- biome.json | 2 -- site/src/components/docs/StyleCase.astro | 4 ++-- site/src/components/typography/Table.astro | 19 +++++++------------ site/src/pages/blog/[...page].astro | 2 +- site/src/pages/blog/authors/[author].astro | 2 +- 6 files changed, 16 insertions(+), 19 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 203c4cbf..762a064d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -15,5 +15,9 @@ "biome.requireConfiguration": true, "editor.defaultFormatter": "biomejs.biome", - "typescript.tsdk": "node_modules/typescript/lib" + "typescript.tsdk": "node_modules/typescript/lib", + + "[astro]": { + "editor.defaultFormatter": "biomejs.biome" + } } diff --git a/biome.json b/biome.json index 259bcbad..3f39ac2c 100644 --- a/biome.json +++ b/biome.json @@ -70,8 +70,6 @@ "files": { "includes": [ "**", - "!**/.astro", - "!**/*.astro", "!**/.vercel", "!**/.turbo", "!**/.next", diff --git a/site/src/components/docs/StyleCase.astro b/site/src/components/docs/StyleCase.astro index 9f7e788f..0f5389b7 100644 --- a/site/src/components/docs/StyleCase.astro +++ b/site/src/components/docs/StyleCase.astro @@ -18,10 +18,10 @@ * * Universal content */ -import type { AnySupportedStyle } from "@/types/docs"; +import type { AnySupportedStyle } from '@/types/docs'; interface Props { - styles?: AnySupportedStyle[]; + styles?: AnySupportedStyle[]; } const { styles } = Astro.props; diff --git a/site/src/components/typography/Table.astro b/site/src/components/typography/Table.astro index 5c7501f8..af5f0a13 100644 --- a/site/src/components/typography/Table.astro +++ b/site/src/components/typography/Table.astro @@ -1,19 +1,14 @@ --- -import type { HTMLTag, Polymorphic } from "astro/types"; -import { clsx } from "clsx"; -import { twMerge } from "tailwind-merge"; +import type { HTMLTag, Polymorphic } from 'astro/types'; +import { clsx } from 'clsx'; +import { twMerge } from 'tailwind-merge'; -type Props = Polymorphic<{ as: Tag }> & { - maxWidth?: boolean; - class?: string; +type Props = Polymorphic<{ as: Tag }> & { + maxWidth?: boolean; + class?: string; }; -const { - as: Tag = "table", - maxWidth = true, - class: className, - ...props -} = Astro.props; +const { as: Tag = 'table', maxWidth = true, class: className, ...props } = Astro.props; ---
diff --git a/site/src/pages/blog/[...page].astro b/site/src/pages/blog/[...page].astro index 5f36af79..7fcda5bc 100644 --- a/site/src/pages/blog/[...page].astro +++ b/site/src/pages/blog/[...page].astro @@ -19,7 +19,7 @@ export const getStaticPaths = (async ({ paginate }) => { posts.map(async (post) => ({ ...post, authors: await getEntries(post.data.authors), - })), + })) ); return paginate(postsWithAuthors, { pageSize: 10 }); diff --git a/site/src/pages/blog/authors/[author].astro b/site/src/pages/blog/authors/[author].astro index e7499167..fb2b703e 100644 --- a/site/src/pages/blog/authors/[author].astro +++ b/site/src/pages/blog/authors/[author].astro @@ -32,7 +32,7 @@ const postsWithAuthors = await Promise.all( sortedPosts.map(async (post) => ({ ...post, authors: await getEntries(post.data.authors), - })), + })) ); // Build JSON-LD schema for ProfilePage