Skip to content

Commit f95ebf5

Browse files
author
Alex Stelea
committed
format code using biome 2.0
1 parent f1e7a51 commit f95ebf5

297 files changed

Lines changed: 8358 additions & 7975 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/commands/commit.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
1) run lint
22
1) fix errors
33
2) run tests
4-
1) fix errors and start from step 1
4+
1) run tests with pnpm test:ci
5+
2) fix errors and start from step 1
56
3) run build
67
1) if build errors, fix errors and start from step 1
78
4) commit all

.claude/settings.local.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
"Bash(ls:*)",
2626
"Bash(npx yaml-lint:*)",
2727
"Bash(gh pr create:*)",
28-
"Bash(gh workflow:*)"
28+
"Bash(gh workflow:*)",
29+
"Bash(biome check:*)",
30+
"Bash(pnpm biome check:*)"
2931
],
3032
"deny": []
3133
}

apps/admin/biome.jsonc

Lines changed: 35 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,37 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3-
"vcs": {
4-
"enabled": true,
5-
"clientKind": "git",
6-
"useIgnoreFile": true
7-
},
8-
"files": { "ignoreUnknown": false, "ignore": [] },
9-
"formatter": { "enabled": true },
10-
"organizeImports": { "enabled": true },
11-
"linter": {
12-
"enabled": true,
13-
"rules": {
14-
"nursery": {
15-
"useSortedClasses": {
16-
"level": "warn",
17-
"fix": "safe",
18-
"options": {
19-
"functions": ["clsx", "cva", "cn"]
20-
}
21-
}
22-
},
23-
"recommended": true
24-
}
25-
}
2+
"root": false,
3+
"$schema": "https://biomejs.dev/schemas/2.1.3/schema.json",
4+
"vcs": {
5+
"enabled": true,
6+
"clientKind": "git",
7+
"useIgnoreFile": true
8+
},
9+
"files": {
10+
"ignoreUnknown": false,
11+
"includes": ["**", "!.next", "!node_modules", "!.turbo"]
12+
},
13+
"formatter": { "enabled": true },
14+
"assist": { "actions": { "source": { "organizeImports": "on" } } },
15+
"linter": {
16+
"enabled": true,
17+
"rules": {
18+
"nursery": {
19+
"useSortedClasses": {
20+
"level": "warn",
21+
"fix": "safe",
22+
"options": {
23+
"functions": ["clsx", "cva", "cn"]
24+
}
25+
}
26+
},
27+
"recommended": true
28+
}
29+
},
30+
"javascript": {
31+
"formatter": {
32+
"quoteStyle": "single",
33+
"indentStyle": "space",
34+
"indentWidth": 2
35+
}
36+
}
2637
}

apps/admin/components.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
2-
"$schema": "https://ui.shadcn.com/schema.json",
3-
"style": "new-york",
4-
"rsc": true,
5-
"tsx": true,
6-
"tailwind": {
7-
"config": "",
8-
"css": "src/styles/globals.css",
9-
"baseColor": "neutral",
10-
"cssVariables": true,
11-
"prefix": ""
12-
},
13-
"aliases": {
14-
"components": "~/components",
15-
"utils": "~/lib/utils",
16-
"ui": "~/components/ui",
17-
"lib": "~/lib",
18-
"hooks": "~/hooks"
19-
},
20-
"iconLibrary": "lucide"
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "new-york",
4+
"rsc": true,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "",
8+
"css": "src/styles/globals.css",
9+
"baseColor": "neutral",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "~/components",
15+
"utils": "~/lib/utils",
16+
"ui": "~/components/ui",
17+
"lib": "~/lib",
18+
"hooks": "~/hooks"
19+
},
20+
"iconLibrary": "lucide"
2121
}

apps/admin/package.json

Lines changed: 76 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,78 @@
11
{
2-
"name": "admin",
3-
"version": "0.1.0",
4-
"private": true,
5-
"type": "module",
6-
"scripts": {
7-
"build": "next build",
8-
"clean": "rm -rf .next",
9-
"check": "biome check .",
10-
"check:unsafe": "biome check --write --unsafe .",
11-
"check:write": "biome check --write .",
12-
"dev": "next dev --turbo --port 3001",
13-
"preview": "next build && next start",
14-
"start": "next start",
15-
"typecheck": "tsc --noEmit"
16-
},
17-
"dependencies": {
18-
"@hookform/resolvers": "^5.0.1",
19-
"@radix-ui/react-alert-dialog": "^1.1.14",
20-
"@radix-ui/react-avatar": "^1.1.3",
21-
"@radix-ui/react-collapsible": "^1.1.11",
22-
"@radix-ui/react-dialog": "^1.1.6",
23-
"@radix-ui/react-dropdown-menu": "^2.1.6",
24-
"@radix-ui/react-icons": "^1.3.2",
25-
"@radix-ui/react-label": "^2.1.2",
26-
"@radix-ui/react-popover": "^1.1.7",
27-
"@radix-ui/react-scroll-area": "^1.2.3",
28-
"@radix-ui/react-select": "^2.1.6",
29-
"@radix-ui/react-separator": "^1.1.2",
30-
"@radix-ui/react-slot": "^1.1.2",
31-
"@radix-ui/react-switch": "^1.1.3",
32-
"@radix-ui/react-tabs": "^1.1.3",
33-
"@t3-oss/env-nextjs": "catalog:",
34-
"@tanstack/react-query": "catalog:",
35-
"@trpc/client": "catalog:",
36-
"@trpc/react-query": "catalog:",
37-
"@trpc/server": "catalog:",
38-
"api": "workspace:*",
39-
"bignumber.js": "catalog:",
40-
"class-variance-authority": "^0.7.1",
41-
"clsx": "^2.1.1",
42-
"cmdk": "^1.1.1",
43-
"date-fns": "catalog:",
44-
"date-fns-tz": "catalog:",
45-
"db": "workspace:*",
46-
"drizzle-orm": "catalog:",
47-
"framer-motion": "^12.6.3",
48-
"lucide-react": "^0.487.0",
49-
"next": "catalog:",
50-
"next-themes": "^0.4.6",
51-
"postgres": "catalog:",
52-
"react": "catalog:",
53-
"react-day-picker": "8.10.1",
54-
"react-dom": "catalog:",
55-
"react-hook-form": "^7.55.0",
56-
"server-only": "catalog:",
57-
"sonner": "catalog:",
58-
"superjson": "catalog:",
59-
"tailwind-merge": "^3.2.0",
60-
"tw-animate-css": "^1.2.5",
61-
"zod": "catalog:"
62-
},
63-
"devDependencies": {
64-
"@biomejs/biome": "1.9.4",
65-
"@tailwindcss/postcss": "^4.0.15",
66-
"@types/node": "^20.14.10",
67-
"@types/react": "^19.0.0",
68-
"@types/react-dom": "^19.0.0",
69-
"drizzle-kit": "^0.30.5",
70-
"postcss": "^8.5.3",
71-
"tailwindcss": "^4.0.15",
72-
"typescript": "^5.8.2"
73-
},
74-
"ct3aMetadata": {
75-
"initVersion": "7.39.3"
76-
},
77-
"packageManager": "pnpm@9.15.0"
2+
"name": "admin",
3+
"version": "0.1.0",
4+
"private": true,
5+
"type": "module",
6+
"scripts": {
7+
"build": "next build",
8+
"clean": "rm -rf .next",
9+
"check": "biome check .",
10+
"check:unsafe": "biome check --write --unsafe .",
11+
"check:write": "biome check --write .",
12+
"dev": "next dev --turbo --port 3001",
13+
"preview": "next build && next start",
14+
"start": "next start",
15+
"typecheck": "tsc --noEmit"
16+
},
17+
"dependencies": {
18+
"@hookform/resolvers": "^5.0.1",
19+
"@radix-ui/react-alert-dialog": "^1.1.14",
20+
"@radix-ui/react-avatar": "^1.1.3",
21+
"@radix-ui/react-collapsible": "^1.1.11",
22+
"@radix-ui/react-dialog": "^1.1.6",
23+
"@radix-ui/react-dropdown-menu": "^2.1.6",
24+
"@radix-ui/react-icons": "^1.3.2",
25+
"@radix-ui/react-label": "^2.1.2",
26+
"@radix-ui/react-popover": "^1.1.7",
27+
"@radix-ui/react-scroll-area": "^1.2.3",
28+
"@radix-ui/react-select": "^2.1.6",
29+
"@radix-ui/react-separator": "^1.1.2",
30+
"@radix-ui/react-slot": "^1.1.2",
31+
"@radix-ui/react-switch": "^1.1.3",
32+
"@radix-ui/react-tabs": "^1.1.3",
33+
"@t3-oss/env-nextjs": "catalog:",
34+
"@tanstack/react-query": "catalog:",
35+
"@trpc/client": "catalog:",
36+
"@trpc/react-query": "catalog:",
37+
"@trpc/server": "catalog:",
38+
"api": "workspace:*",
39+
"bignumber.js": "catalog:",
40+
"class-variance-authority": "^0.7.1",
41+
"clsx": "^2.1.1",
42+
"cmdk": "^1.1.1",
43+
"date-fns": "catalog:",
44+
"date-fns-tz": "catalog:",
45+
"db": "workspace:*",
46+
"drizzle-orm": "catalog:",
47+
"framer-motion": "^12.6.3",
48+
"lucide-react": "^0.487.0",
49+
"next": "catalog:",
50+
"next-themes": "^0.4.6",
51+
"postgres": "catalog:",
52+
"react": "catalog:",
53+
"react-day-picker": "8.10.1",
54+
"react-dom": "catalog:",
55+
"react-hook-form": "^7.55.0",
56+
"server-only": "catalog:",
57+
"sonner": "catalog:",
58+
"superjson": "catalog:",
59+
"tailwind-merge": "^3.2.0",
60+
"tw-animate-css": "^1.2.5",
61+
"zod": "catalog:"
62+
},
63+
"devDependencies": {
64+
"@biomejs/biome": "1.9.4",
65+
"@tailwindcss/postcss": "^4.0.15",
66+
"@types/node": "^20.14.10",
67+
"@types/react": "^19.0.0",
68+
"@types/react-dom": "^19.0.0",
69+
"drizzle-kit": "^0.30.5",
70+
"postcss": "^8.5.3",
71+
"tailwindcss": "^4.0.15",
72+
"typescript": "^5.8.2"
73+
},
74+
"ct3aMetadata": {
75+
"initVersion": "7.39.3"
76+
},
77+
"packageManager": "pnpm@9.15.0"
7878
}

0 commit comments

Comments
 (0)