From fcec13eca0760f44789b75cae5ced2c72fb4f1ec Mon Sep 17 00:00:00 2001 From: Sil Date: Wed, 30 Sep 2026 21:07:16 +0200 Subject: [PATCH 1/2] Use the standard repository setup - packageManager (none) -> pnpm@11.28.0 - add format script - check "astro check" -> "prettier --check . && astro check" - .nvmrc (none) -> 24 Co-Authored-By: Claude Opus 5.5 (1M context) --- .nvmrc | 1 + package.json | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 .nvmrc diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..a45fd52 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +24 diff --git a/package.json b/package.json index e10ae99..165ae38 100644 --- a/package.json +++ b/package.json @@ -6,11 +6,12 @@ "astro": "astro", "dev": "astro dev", "start": "astro dev", - "check": "astro check", + "check": "prettier --check . && astro check", "preview": "astro preview", "build": "astro build", "build:prod": "astro check && astro build", - "build:test": "astro check && astro build && astro preview --host" + "build:test": "astro check && astro build && astro preview --host", + "format": "prettier --write ." }, "dependencies": { "@astrojs/sitemap": "^3.6.0", @@ -37,5 +38,6 @@ "prettier": "3.6.2", "prettier-plugin-astro": "0.14.1", "prettier-plugin-tailwindcss": "^0.7.0" - } + }, + "packageManager": "pnpm@11.28.0" } From a60ca6e6d43263d34b378d3d8188a099a721bebe Mon Sep 17 00:00:00 2001 From: Sil Date: Wed, 30 Sep 2026 21:07:16 +0200 Subject: [PATCH 2/2] Format with Prettier Co-Authored-By: Claude Opus 5.5 (1M context) --- AGENTS.md | 3 +++ src/components/blocks/cta-8.astro | 6 +----- src/components/blocks/hero-12.astro | 9 +-------- src/components/blocks/hero-13.astro | 7 +------ src/components/blocks/pricings-1.astro | 6 +----- src/components/blocks/pricings-3.astro | 6 +----- src/components/ui/footer/footer-copyright.astro | 8 ++++---- .../ui/native-select/native-select-option.astro | 1 - src/components/ui/native-select/native-select.astro | 1 - src/components/ui/table/index.ts | 1 - src/components/ui/table/table-body.astro | 1 - src/components/ui/table/table-caption.astro | 1 - src/components/ui/table/table-cell.astro | 1 - src/components/ui/table/table-footer.astro | 1 - src/components/ui/table/table-head.astro | 1 - src/components/ui/table/table-row.astro | 1 - src/components/ui/tabs/index.ts | 1 - src/components/ui/tabs/tabs-content.astro | 1 - src/components/ui/tabs/tabs-trigger.astro | 1 - src/components/ui/tabs/tabs.astro | 1 - src/schemas/blocks/pricings-embed-1.ts | 4 +++- 21 files changed, 15 insertions(+), 47 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 9e29bf0..0eae93b 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -3,15 +3,18 @@ Notes for AI agents working in this repo. ## Project basics + - Package manager: `pnpm` - Build: `pnpm build` ## Content + schemas + - Content collections live in `src/content/`. - Schemas live in `src/schemas/`. - Pages are rendered via `src/pages/[...page].astro`. ## Layout merging + - A default layout is loaded from `layouts/index`. - A type-based layout is loaded from `layouts/` when present. - Layout data merges into page data; page data overrides layout data. diff --git a/src/components/blocks/cta-8.astro b/src/components/blocks/cta-8.astro index 17d92ee..bd4664b 100644 --- a/src/components/blocks/cta-8.astro +++ b/src/components/blocks/cta-8.astro @@ -76,11 +76,7 @@ const { class: className, id, links, item } = Astro.props { links?.map(({ icon, text, ...link }, i) => ( - diff --git a/src/components/blocks/hero-12.astro b/src/components/blocks/hero-12.astro index 37036c3..44feefd 100644 --- a/src/components/blocks/hero-12.astro +++ b/src/components/blocks/hero-12.astro @@ -29,14 +29,7 @@ interface Props { } } -const { - class: className, - id, - title, - description, - links, - image, -} = Astro.props +const { class: className, id, title, description, links, image } = Astro.props ---
diff --git a/src/components/blocks/hero-13.astro b/src/components/blocks/hero-13.astro index a73e0be..5905a88 100644 --- a/src/components/blocks/hero-13.astro +++ b/src/components/blocks/hero-13.astro @@ -27,12 +27,7 @@ interface Props { } } -const { - class: className, - id, - links, - image, -} = Astro.props +const { class: className, id, links, image } = Astro.props ---
diff --git a/src/components/blocks/pricings-1.astro b/src/components/blocks/pricings-1.astro index c134e8c..2104a77 100644 --- a/src/components/blocks/pricings-1.astro +++ b/src/components/blocks/pricings-1.astro @@ -3,11 +3,7 @@ import { Button } from "@/components/ui/button" import { Icon } from "@/components/ui/icon" import { List, ListItem } from "@/components/ui/list" import { Price, PriceUnit, PriceValue } from "@/components/ui/price" -import { - Section, - SectionGrid, - SectionProse, -} from "@/components/ui/section" +import { Section, SectionGrid, SectionProse } from "@/components/ui/section" import { Tile, TileActions, diff --git a/src/components/blocks/pricings-3.astro b/src/components/blocks/pricings-3.astro index 0c0da04..b5fdfc0 100644 --- a/src/components/blocks/pricings-3.astro +++ b/src/components/blocks/pricings-3.astro @@ -3,11 +3,7 @@ import { Button } from "@/components/ui/button" import { Icon } from "@/components/ui/icon" import { List, ListItem } from "@/components/ui/list" import { Price, PriceUnit, PriceValue } from "@/components/ui/price" -import { - Section, - SectionProse, - SectionSpread, -} from "@/components/ui/section" +import { Section, SectionProse, SectionSpread } from "@/components/ui/section" import { Tile, TileActions, diff --git a/src/components/ui/footer/footer-copyright.astro b/src/components/ui/footer/footer-copyright.astro index bb6ae07..77a915b 100644 --- a/src/components/ui/footer/footer-copyright.astro +++ b/src/components/ui/footer/footer-copyright.astro @@ -1,13 +1,13 @@ --- -import type { HTMLAttributes } from "astro/types"; +import type { HTMLAttributes } from "astro/types" -import { cn } from "@/lib/utils"; +import { cn } from "@/lib/utils" interface Props extends HTMLAttributes<"p"> {} -const { class: className, ...props } = Astro.props; +const { class: className, ...props } = Astro.props -const slot = await Astro.slots.render("default"); +const slot = await Astro.slots.render("default") --- { diff --git a/src/components/ui/native-select/native-select-option.astro b/src/components/ui/native-select/native-select-option.astro index 06873f4..48dda40 100644 --- a/src/components/ui/native-select/native-select-option.astro +++ b/src/components/ui/native-select/native-select-option.astro @@ -9,4 +9,3 @@ const { ...props } = Astro.props - diff --git a/src/components/ui/native-select/native-select.astro b/src/components/ui/native-select/native-select.astro index f13fdf9..86fcbe8 100644 --- a/src/components/ui/native-select/native-select.astro +++ b/src/components/ui/native-select/native-select.astro @@ -31,4 +31,3 @@ const { class: className, ...props } = Astro.props data-slot="native-select-icon" /> - diff --git a/src/components/ui/table/index.ts b/src/components/ui/table/index.ts index f4c88a0..3fa5823 100644 --- a/src/components/ui/table/index.ts +++ b/src/components/ui/table/index.ts @@ -6,4 +6,3 @@ export { default as TableRow } from "./table-row.astro" export { default as TableHead } from "./table-head.astro" export { default as TableCell } from "./table-cell.astro" export { default as TableCaption } from "./table-caption.astro" - diff --git a/src/components/ui/table/table-body.astro b/src/components/ui/table/table-body.astro index 1731b6d..a1dee8e 100644 --- a/src/components/ui/table/table-body.astro +++ b/src/components/ui/table/table-body.astro @@ -15,4 +15,3 @@ const { class: className, ...props } = Astro.props > - diff --git a/src/components/ui/table/table-caption.astro b/src/components/ui/table/table-caption.astro index 2144ab1..aafe948 100644 --- a/src/components/ui/table/table-caption.astro +++ b/src/components/ui/table/table-caption.astro @@ -15,4 +15,3 @@ const { class: className, ...props } = Astro.props > - diff --git a/src/components/ui/table/table-cell.astro b/src/components/ui/table/table-cell.astro index b5f44c6..825f17c 100644 --- a/src/components/ui/table/table-cell.astro +++ b/src/components/ui/table/table-cell.astro @@ -18,4 +18,3 @@ const { class: className, ...props } = Astro.props > - diff --git a/src/components/ui/table/table-footer.astro b/src/components/ui/table/table-footer.astro index 90a6db4..7784acd 100644 --- a/src/components/ui/table/table-footer.astro +++ b/src/components/ui/table/table-footer.astro @@ -18,4 +18,3 @@ const { class: className, ...props } = Astro.props > - diff --git a/src/components/ui/table/table-head.astro b/src/components/ui/table/table-head.astro index 4bc7eb9..c3df532 100644 --- a/src/components/ui/table/table-head.astro +++ b/src/components/ui/table/table-head.astro @@ -18,4 +18,3 @@ const { class: className, ...props } = Astro.props > - diff --git a/src/components/ui/table/table-row.astro b/src/components/ui/table/table-row.astro index 648f266..18142fd 100644 --- a/src/components/ui/table/table-row.astro +++ b/src/components/ui/table/table-row.astro @@ -18,4 +18,3 @@ const { class: className, ...props } = Astro.props > - diff --git a/src/components/ui/tabs/index.ts b/src/components/ui/tabs/index.ts index 9a61f34..4332b6e 100644 --- a/src/components/ui/tabs/index.ts +++ b/src/components/ui/tabs/index.ts @@ -2,4 +2,3 @@ export { default as Tabs } from "./tabs.astro" export { default as TabsList } from "./tabs-list.astro" export { default as TabsTrigger } from "./tabs-trigger.astro" export { default as TabsContent } from "./tabs-content.astro" - diff --git a/src/components/ui/tabs/tabs-content.astro b/src/components/ui/tabs/tabs-content.astro index 03f4be1..bbfb8c0 100644 --- a/src/components/ui/tabs/tabs-content.astro +++ b/src/components/ui/tabs/tabs-content.astro @@ -27,4 +27,3 @@ const slot = await Astro.slots.render("default") ) } - diff --git a/src/components/ui/tabs/tabs-trigger.astro b/src/components/ui/tabs/tabs-trigger.astro index 827529a..6b9b9b6 100644 --- a/src/components/ui/tabs/tabs-trigger.astro +++ b/src/components/ui/tabs/tabs-trigger.astro @@ -34,4 +34,3 @@ const slot = await Astro.slots.render("default") ) } - diff --git a/src/components/ui/tabs/tabs.astro b/src/components/ui/tabs/tabs.astro index 36c44d8..8074c22 100644 --- a/src/components/ui/tabs/tabs.astro +++ b/src/components/ui/tabs/tabs.astro @@ -102,4 +102,3 @@ const slot = await Astro.slots.render("default") // Re-initialize after page navigation (for view transitions) document.addEventListener("astro:page-load", initTabs) - diff --git a/src/schemas/blocks/pricings-embed-1.ts b/src/schemas/blocks/pricings-embed-1.ts index 4ba4709..5ba4cd2 100644 --- a/src/schemas/blocks/pricings-embed-1.ts +++ b/src/schemas/blocks/pricings-embed-1.ts @@ -11,4 +11,6 @@ export const pricingsEmbed1Schema = (ctx: SchemaContext) => .partial() .strict() -export type PricingsEmbed1Schema = z.infer> +export type PricingsEmbed1Schema = z.infer< + ReturnType +>