feat: replace eslint and prettier with biome

This commit is contained in:
Andrea
2024-10-05 22:56:41 +02:00
parent 75cccd1a44
commit d6b640ca33
13 changed files with 260 additions and 119 deletions

View File

@@ -1,7 +1,7 @@
import { remarkCodeHike } from "@code-hike/mdx";
import { readdir, readFile } from "fs/promises";
import { bundleMDX } from "mdx-bundler";
import path from "path";
import { readdir, readFile } from "node:fs/promises";
import path from "node:path";
type FrontMatter = {
title: string;
@@ -41,7 +41,7 @@ export type Post = Omit<FrontMatter, "published"> & {
};
export const findPosts = async () => {
const files = await readdir(`posts`);
const files = await readdir("posts");
const posts: Post[] = [];
for (const file of files.filter((file) => file.endsWith(".mdx"))) {
const filePath = path.join(process.cwd(), `posts/${file}`);