Skip to content

Commit 8f97ff8

Browse files
committed
chore: remove eslint and replace with biome
1 parent 22cc9ac commit 8f97ff8

33 files changed

Lines changed: 342 additions & 914 deletions

biome.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.2.6/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"ignoreUnknown": true,
10+
"includes": ["**", "!node_modules", "!.next", "!dist", "!build"]
11+
},
12+
"formatter": {
13+
"enabled": true,
14+
"indentStyle": "space",
15+
"indentWidth": 2
16+
},
17+
"linter": {
18+
"enabled": true,
19+
"rules": {
20+
"recommended": true,
21+
"a11y": {
22+
"noSvgWithoutTitle": "off"
23+
},
24+
"suspicious": {
25+
"noUnknownAtRules": "off"
26+
}
27+
},
28+
"domains": {
29+
"next": "recommended",
30+
"react": "recommended"
31+
}
32+
},
33+
"assist": {
34+
"actions": {
35+
"source": {
36+
"organizeImports": "on"
37+
}
38+
}
39+
}
40+
}

bun.lock

Lines changed: 12 additions & 587 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
"hooks": "@/hooks"
1919
},
2020
"iconLibrary": "lucide"
21-
}
21+
}

eslint.config.mjs

Lines changed: 0 additions & 16 deletions
This file was deleted.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"dev": "next dev --turbopack",
77
"build": "next build --turbopack",
88
"start": "next start",
9-
"lint": "next lint",
9+
"lint": "biome check",
10+
"format": "biome format --write",
11+
"format-and-lint:fix": "biome check --write",
1012
"ui:add": "bunx --bun shadcn@latest add"
1113
},
1214
"dependencies": {
@@ -39,12 +41,11 @@
3941
"zod": "^4.1.12"
4042
},
4143
"devDependencies": {
44+
"@biomejs/biome": "2.2.6",
4245
"@tailwindcss/postcss": "^4.1.14",
4346
"@types/node": "22",
4447
"@types/react": "^19.2.2",
4548
"@types/react-dom": "^19.2.2",
46-
"eslint": "^9.38.0",
47-
"eslint-config-next": "15.5.6",
4849
"postcss": "^8.5.6",
4950
"tailwindcss": "^4.1.14",
5051
"tw-animate-css": "^1.4.0",

postcss.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/** @type {import('postcss-load-config').Config} */
22
const config = {
33
plugins: {
4-
'@tailwindcss/postcss': {},
4+
"@tailwindcss/postcss": {},
55
},
66
};
77

src/app/layout.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import type { Metadata } from "next";
2-
import { GeistSans } from "geist/font/sans";
31
import { GeistMono } from "geist/font/mono";
2+
import { GeistSans } from "geist/font/sans";
3+
import type { Metadata } from "next";
44
import NextTopLoader from "nextjs-toploader";
55

66
import Navbar from "@/components/navbar";
7-
import { Toaster } from "@/components/ui/sonner";
87
import { ThemeProvider } from "@/components/theme-provider";
8+
import { Toaster } from "@/components/ui/sonner";
99

1010
import "./globals.css";
1111

src/app/robots.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { MetadataRoute } from "next";
1+
import type { MetadataRoute } from "next";
22

33
export default function robots(): MetadataRoute.Robots {
44
return {

src/app/user/[username]/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import Footer from "@/components/footer";
22
import { Preview } from "@/components/preview";
33

4-
export default async function Home(props: { params: Promise<{ username: string }> }) {
4+
export default async function Home(props: {
5+
params: Promise<{ username: string }>;
6+
}) {
57
const params = await props.params;
68
return (
79
<main className="container flex flex-col justify-between min-h-screen pt-36">

src/components/footer.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1+
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
12
import {
23
HoverCard,
34
HoverCardContent,
45
HoverCardTrigger,
56
} from "@/components/ui/hover-card";
6-
7-
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
87
import { Button } from "./ui/button";
98

109
export default function Footer() {

0 commit comments

Comments
 (0)