You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: align dev tooling with stage monorepo (#13)
- Upgrade Biome 1.9 -> 2.4 with stricter rules (noExplicitAny: error,
noFocusedTests, noConsole allowing error/warn, useExportType) and
tab indentation. Reformat all source files.
- Add husky 9 + lint-staged pre-commit hook running biome check --write
on staged files.
- Add .github/workflows/ci.yml (drizzle drift, lint, typecheck, test,
build) and PULL_REQUEST_TEMPLATE.md.
- Switch package manager from npm to pnpm@10.24.0 with packageManager
field and onlyBuiltDependencies for native deps.
- Slim .gitignore from ~150 lines to 26 by removing patterns for
frameworks/tools this repo does not use.
- Update AGENTS.md, TESTING.md, and agent docs to reflect new style
and pnpm commands.
pnpm typecheck # tsc --noEmit for both root and web tsconfigs
17
17
```
18
18
19
+
The package manager is pinned via `packageManager` in `package.json`. Use `corepack enable` if pnpm isn't on your PATH.
20
+
19
21
### Database (Drizzle ORM + SQLite)
20
22
21
23
```bash
22
-
npm run db:generate # Generate a new migration into drizzle/ from schema changes
24
+
pnpm db:generate# Generate a new migration into drizzle/ from schema changes
23
25
```
24
26
25
27
The CLI uses an embedded SQLite database via `better-sqlite3`. There is no separate dev database to start — `getDb()` opens (or creates) the local SQLite file and runs pending migrations on first use.
@@ -88,14 +90,16 @@ Vite app with React 19, Tailwind 4, and shadcn/ui (new-york style, zinc base, lu
-`useImportType: error` — use type imports/exports
96
-
-`noExplicitAny: warn` and `noNonNullAssertion: warn` — treat warnings as failures in PRs
97
+
-`useImportType: error` / `useExportType: error` — use type imports/exports
98
+
-`noExplicitAny: error` and `noFocusedTests: error`
99
+
-`noConsole: warn` (allowing `console.error`/`console.warn`) — treat warnings as failures in PRs
100
+
-`organizeImports` runs on save/format
97
101
98
-
There are no pre-commit hooks configured; run `npm run lint` and `npm run test`yourself before pushing.
102
+
A `pre-commit` hook (husky + lint-staged) runs `biome check --write` against staged files. Run `pnpm lint`, `pnpm typecheck`, and `pnpm test`locally before pushing.
99
103
100
104
## Package Naming
101
105
@@ -114,7 +118,7 @@ This is a single-package repo published as `stagereview`. The CLI binary is `sta
114
118
## Git & Commit Workflow
115
119
116
120
- When executing a plan, commit incrementally — one logical unit of work per commit, not one giant commit at the end.
117
-
- Before every push, run `npx tsc --noEmit && npm run lint && npm run test` locally and ensure all checks pass. Never push with failing CI.
121
+
- Before every push, run `pnpm typecheck && pnpm lint && pnpm test` locally and ensure all checks pass. Never push with failing CI.
0 commit comments