diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-15 16:58:47 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-15 16:58:47 +0900 |
| commit | 897f22233810919ba01608bffbfa69f2bb926388 (patch) | |
| tree | cb6a140e4b818921386e8b2a0a79354e1359a5f6 | |
| parent | 6e6b83173e35b0e8351e558ae685e226d9d44636 (diff) | |
| download | kioku-897f22233810919ba01608bffbfa69f2bb926388.tar.gz kioku-897f22233810919ba01608bffbfa69f2bb926388.tar.zst kioku-897f22233810919ba01608bffbfa69f2bb926388.zip | |
refactor: rename lint/typecheck scripts to check namespace
Consolidate typecheck and lint into a unified `pnpm check` command
with `check:ts` and `check:lint` sub-commands. Update CI workflow
to use the single check step and update docs accordingly.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
| -rw-r--r-- | .github/workflows/ci.yaml | 7 | ||||
| -rw-r--r-- | CLAUDE.md | 10 | ||||
| -rw-r--r-- | README.md | 6 | ||||
| -rw-r--r-- | package.json | 6 |
4 files changed, 13 insertions, 16 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 86db887..c451aef 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -27,11 +27,8 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile - - name: Lint - run: pnpm lint - - - name: Typecheck - run: pnpm typecheck + - name: Check + run: pnpm check - name: Test run: POSTGRES_USER=test POSTGRES_PASSWORD=test POSTGRES_DB=test POSTGRES_HOST=localhost POSTGRES_PORT=5432 pnpm test @@ -10,9 +10,9 @@ pnpm dev # Start backend server (hot reload) pnpm dev:client # Start frontend dev server (port 5173) pnpm build # Build both server and client pnpm test # Run tests (Vitest) -pnpm typecheck # TypeScript type checking -pnpm lint # Lint with Biome -pnpm lint:fix # Auto-fix lint issues +pnpm check # Run all checks (TypeScript + lint) +pnpm check:ts # TypeScript type checking +pnpm check:lint # Lint with Biome pnpm format # Format with Biome pnpm db:generate # Generate database migrations pnpm db:migrate # Run database migrations @@ -25,7 +25,7 @@ See [docs/dev/architecture.md](docs/dev/architecture.md) for details. ## Code Style -- **Formatter/Linter**: Biome (run `pnpm lint` to check, `pnpm lint:fix` to auto-fix) +- **Formatter/Linter**: Biome (run `pnpm check:lint` to check, `pnpm format` to auto-format) - **Indentation**: Tabs - **Quotes**: Double quotes for JS/TS - **Imports**: Organized by Biome (auto-sorted) @@ -51,4 +51,4 @@ Test environment uses `JWT_SECRET=test-secret-key` and mock factories for test d ## CI Pipeline -Lint → Typecheck → Test → Build (see `.github/workflows/ci.yaml`) +Check (lint + typecheck) → Test → Build (see `.github/workflows/ci.yaml`) @@ -65,9 +65,9 @@ pnpm dev:client # Frontend dev server (port 5173) | `pnpm build` | Build both server and client | | `pnpm start` | Start production server | | `pnpm test` | Run tests | -| `pnpm typecheck` | Run TypeScript type checking | -| `pnpm lint` | Lint code with Biome | -| `pnpm lint:fix` | Lint and auto-fix issues | +| `pnpm check` | Run all checks (TypeScript + lint) | +| `pnpm check:ts` | Run TypeScript type checking | +| `pnpm check:lint` | Lint code with Biome | | `pnpm db:migrate` | Run database migrations | | `pnpm db:studio` | Open Drizzle Studio (database GUI) | | `pnpm user:add` | Add a new user (interactive) | diff --git a/package.json b/package.json index 3c1c63e..db840b7 100644 --- a/package.json +++ b/package.json @@ -13,9 +13,9 @@ "start": "node dist/server/index.js", "test": "vitest run", "test:watch": "vitest", - "typecheck": "tsc --noEmit", - "lint": "biome check .", - "lint:fix": "biome check --write .", + "check": "pnpm check:ts && pnpm check:lint", + "check:ts": "tsc --noEmit", + "check:lint": "biome check .", "format": "biome format --write .", "db:generate": "drizzle-kit generate", "db:migrate": "drizzle-kit migrate", |
