🎨 Fix lint errors using Biome
This commit is contained in:
@ -16,7 +16,10 @@ interface Props {
|
|||||||
const { project } = Astro.props
|
const { project } = Astro.props
|
||||||
|
|
||||||
const entry = await getEntry("projects", project)
|
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 {
|
const {
|
||||||
lang,
|
lang,
|
||||||
title,
|
title,
|
||||||
@ -28,7 +31,7 @@ const {
|
|||||||
source,
|
source,
|
||||||
createdAt,
|
createdAt,
|
||||||
updatedAt,
|
updatedAt,
|
||||||
} = entry!.data
|
} = entry.data
|
||||||
|
|
||||||
function localeDateString(isoString: string): string {
|
function localeDateString(isoString: string): string {
|
||||||
let template = "DD-MM-YYYY"
|
let template = "DD-MM-YYYY"
|
||||||
|
Reference in New Issue
Block a user