🎨 Format using Biome

This commit is contained in:
2025-07-01 19:45:02 +02:00
parent a859439353
commit 45226136f3
6 changed files with 97 additions and 101 deletions

View File

@ -53,11 +53,7 @@ LinkedIn: linkedin.com/in/johndoe`,
if (input === "clear") { if (input === "clear") {
history = [] history = []
} else { } else {
history = [ history = [...history, `${currentDir} $ ${input}`, executeCommand(input)]
...history,
`${currentDir} $ ${input}`,
executeCommand(input),
]
} }
input = "" input = ""
} }

View File

@ -2,7 +2,7 @@ import { defineCollection, z } from "astro:content"
import { glob } from "astro/loaders" import { glob } from "astro/loaders"
const projectCollection = defineCollection({ const projectCollection = defineCollection({
loader: glob({ pattern: "**\/*.mdx", base: "./src/content/projects" }), loader: glob({ pattern: "**/*.mdx", base: "./src/content/projects" }),
schema: ({ image }) => schema: ({ image }) =>
z.object({ z.object({
lang: z.union([z.literal("en"), z.literal("nb")]), lang: z.union([z.literal("en"), z.literal("nb")]),
@ -19,7 +19,7 @@ const projectCollection = defineCollection({
}) })
const usesCollection = defineCollection({ const usesCollection = defineCollection({
loader: glob({ pattern: "**\/*.yaml", base: "./src/content/uses" }), loader: glob({ pattern: "**/*.yaml", base: "./src/content/uses" }),
schema: z.object({ schema: z.object({
title: z.string(), title: z.string(),
accessories: z.optional(z.array(z.string())), accessories: z.optional(z.array(z.string())),