mirror of
https://github.com/zoriya/v10.git
synced 2026-08-05 13:48:14 +00:00
chore(ci): format astro with biome
This commit is contained in:
Vendored
+5
-1
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -70,8 +70,6 @@
|
||||
"files": {
|
||||
"includes": [
|
||||
"**",
|
||||
"!**/.astro",
|
||||
"!**/*.astro",
|
||||
"!**/.vercel",
|
||||
"!**/.turbo",
|
||||
"!**/.next",
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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")}>
|
||||
|
||||
@@ -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 });
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user