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,5 +1,4 @@
import { useLoaderData } from "@remix-run/react";
import { EmptyState } from "~/components/EmptyState";
import { PostPreview } from "~/components/PostPreview";
import { Title } from "~/components/Title";
import { findPosts } from "~/utils/posts.server";
@@ -19,15 +18,11 @@ export default function Blog() {
return (
<>
<Title>Here I blog about whatever get my attention</Title>
{posts.length > 0 ? (
<div className="flex flex-col items-center space-y-5">
{posts.map((post, i) => (
<PostPreview {...post} key={i} />
))}
</div>
) : (
<EmptyState />
)}
<div className="flex flex-col items-center space-y-5">
{posts.map((post) => (
<PostPreview {...post} key={post.title} />
))}
</div>
</>
);
}