🎨 Fix lint errors using Biome

This commit is contained in:
2025-07-01 19:50:35 +02:00
parent 45226136f3
commit 1e0ab6b0c8
2 changed files with 10 additions and 7 deletions

View File

@ -16,7 +16,10 @@ interface Props {
const { project } = Astro.props
const entry = await getEntry("projects", project)
const { Content } = await render(entry!)
if (!entry) {
throw new Error("Project not found")
}
const { Content } = await render(entry)
const {
lang,
title,
@ -28,7 +31,7 @@ const {
source,
createdAt,
updatedAt,
} = entry!.data
} = entry.data
function localeDateString(isoString: string): string {
let template = "DD-MM-YYYY"