biome setup

This commit is contained in:
Oliver Bryan
2026-01-14 23:17:45 +00:00
parent 9b699d48be
commit 10ce0f65c9
23 changed files with 233 additions and 226 deletions

View File

@@ -2,7 +2,7 @@
import { Icon } from "astro-icon/components";
import type { AstroModule, ProjectMetadata } from "../pages/index.astro";
interface Props {}
type Props = {};
const {} = Astro.props;
@@ -17,17 +17,17 @@ options.push({
});
// add all individual projects to options
Object.values(
import.meta.glob<AstroModule>("../pages/projects/*.astro", { eager: true })
).forEach((module) => {
const metadata = module.metadata as ProjectMetadata;
if (metadata && !metadata.hidden) {
options.push({
name: `${metadata.title}`,
location: `/projects/${metadata.slug}`,
});
}
});
Object.values(import.meta.glob<AstroModule>("../pages/projects/*.astro", { eager: true })).forEach(
(module) => {
const metadata = module.metadata as ProjectMetadata;
if (metadata && !metadata.hidden) {
options.push({
name: `${metadata.title}`,
location: `/projects/${metadata.slug}`,
});
}
},
);
---
<script>