chore: replace oxlint with biome for linting
This commit is contained in:
12
AGENTS.md
12
AGENTS.md
@@ -25,7 +25,12 @@ No CI, no database migrations and no product features yet.
|
||||
- Verification commands, run from the repo root:
|
||||
- `bun run build`
|
||||
- `bun run lint` → `bun run typecheck` → `bun run test` (in that order)
|
||||
- Format with `bun run format` (Prettier). Linting uses **oxlint** in both apps.
|
||||
- **Lint with Biome** (`biome.json` at the repo root, one config for every workspace): `bun run lint`
|
||||
(per-package via turbo), `bun run lint:fix` (apply safe fixes), `bun run lint:ci` (whole repo, for CI).
|
||||
- **Format with Prettier** (`bun run format`). Biome's formatter and assist are deliberately disabled in
|
||||
`biome.json` so the two tools never fight each other.
|
||||
- `apps/web/src/components/ui/**` is excluded from Biome's recommended preset through an `overrides` entry:
|
||||
those files are vendored shadcn/ui source and get regenerated by the CLI.
|
||||
- Generated files are gitignored and must never be edited by hand: `apps/web/src/routeTree.gen.ts`,
|
||||
`apps/api/src/generated/`.
|
||||
|
||||
@@ -119,8 +124,9 @@ apps/web/src/
|
||||
`cd apps/web && ../../node_modules/.bin/shadcn add <component>` (this registry needs the `@shadcn/` prefix for
|
||||
some items, e.g. `@shadcn/field`).
|
||||
- `cn` comes from the `cn` package; `src/lib/utils.ts` re-exports it for local imports.
|
||||
- Prefer small feature components over one large route file. Route files export the `Route` object (which is why
|
||||
oxlint reports a fast-refresh warning on them — that warning is expected there).
|
||||
- Prefer small feature components over one large route file.
|
||||
- Biome does not flag the `Route` export of route files, so route files stay clean; only the vendored
|
||||
`components/ui` files are exempted from the recommended preset.
|
||||
|
||||
<!-- BEGIN:turborepo-agent-rules -->
|
||||
|
||||
|
||||
Reference in New Issue
Block a user