chore: replace oxlint with biome for linting

This commit is contained in:
Jose Selesan
2026-10-15 15:30:22 -03:00
parent 2b1d2152c4
commit bd519e7082
43 changed files with 633 additions and 793 deletions

View File

@@ -2,11 +2,11 @@
Monorepo with a Bun + Hono API and a React + Vite admin app.
| Workspace | What it is |
| ------------------ | ---------------------------------------------------------------------- |
| `apps/api` | Bun + Hono backend, Prisma (Postgres), Zod validation, Pino logging |
| `apps/web` | React + Vite + TypeScript frontend, shadcn/ui, TanStack Router + Query |
| `packages/shared` | `@superlist/shared` — Result pattern and RFC 9457 Problem Details types |
| Workspace | What it is |
| ----------------- | ----------------------------------------------------------------------- |
| `apps/api` | Bun + Hono backend, Prisma (Postgres), Zod validation, Pino logging |
| `apps/web` | React + Vite + TypeScript frontend, shadcn/ui, TanStack Router + Query |
| `packages/shared` | `@superlist/shared` — Result pattern and RFC 9457 Problem Details types |
See `STACK.md` for the stack and `AGENTS.md` for the architecture conventions.
@@ -41,19 +41,21 @@ Or a single workspace: `bun run dev --filter=@superlist/web`.
```bash
bun run build # turbo run build
bun run lint # oxlint
bun run lint # biome check (per package)
bun run typecheck # tsc
bun run test # bun test (api) / vitest (web, shared)
```
## Useful scripts
| Command | Effect |
| --------------------- | ------------------------------------------------------------- |
| `bun run db:generate` | Regenerate the Prisma client into `apps/api/src/generated` |
| `bun run db:migrate` | Create and apply a migration (development) |
| `bun run db:studio` | Open Prisma Studio |
| `bun run format` | Format the repo with Prettier |
| Command | Effect |
| --------------------- | ---------------------------------------------------------- |
| `bun run lint:fix` | Apply Biome's safe fixes across the repo |
| `bun run lint:ci` | `biome ci` — lint the whole repo exactly as CI would |
| `bun run format` | Format the repo with Prettier |
| `bun run db:generate` | Regenerate the Prisma client into `apps/api/src/generated` |
| `bun run db:migrate` | Create and apply a migration (development) |
| `bun run db:studio` | Open Prisma Studio |
## Auth