chore(ci): format astro with biome

This commit is contained in:
Darius Cepulis
2026-02-05 09:42:20 -06:00
parent aa189eec84
commit e3267fcfa6
6 changed files with 16 additions and 19 deletions
+5 -1
View File
@@ -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"
}
}
-2
View File
@@ -70,8 +70,6 @@
"files": {
"includes": [
"**",
"!**/.astro",
"!**/*.astro",
"!**/.vercel",
"!**/.turbo",
"!**/.next",
+2 -2
View File
@@ -18,10 +18,10 @@
* <!-- Always visible (no styles prop) -->
* <StyleCase>Universal content</StyleCase>
*/
import type { AnySupportedStyle } from "@/types/docs";
import type { AnySupportedStyle } from '@/types/docs';
interface Props {
styles?: AnySupportedStyle[];
styles?: AnySupportedStyle[];
}
const { styles } = Astro.props;
+7 -12
View File
@@ -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<Tag extends HTMLTag = "table"> = Polymorphic<{ as: Tag }> & {
maxWidth?: boolean;
class?: string;
type Props<Tag extends HTMLTag = 'table'> = 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;
---
<div class={clsx("my-12", maxWidth && "mx-auto max-w-3xl")}>
+1 -1
View File
@@ -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 });
+1 -1
View File
@@ -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