From 086ad98480d8898b610965bc23ef934173f9fdfc Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 15 Feb 2026 17:13:41 +0900 Subject: refactor: rename format script to fix namespace with lint auto-fix Add pnpm fix (runs fix:lint + fix:format), pnpm fix:lint (biome check --write), and rename pnpm format to pnpm fix:format for consistency with the existing check namespace convention. --- CLAUDE.md | 6 ++++-- package.json | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 118ac71..507c72d 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -13,7 +13,9 @@ pnpm test # Run tests (Vitest) 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 fix # Auto-fix lint and format +pnpm fix:lint # Auto-fix lint issues with Biome +pnpm fix:format # Auto-format with Biome pnpm db:generate # Generate database migrations pnpm db:migrate # Run database migrations pnpm db:push # Push schema changes to DB @@ -25,7 +27,7 @@ See [docs/dev/architecture.md](docs/dev/architecture.md) for details. ## Code Style -- **Formatter/Linter**: Biome (run `pnpm check:lint` to check, `pnpm format` to auto-format) +- **Formatter/Linter**: Biome (run `pnpm check:lint` to check, `pnpm fix` to auto-fix) - **Indentation**: Tabs - **Quotes**: Double quotes for JS/TS - **Imports**: Organized by Biome (auto-sorted) diff --git a/package.json b/package.json index db840b7..88171cc 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,9 @@ "check": "pnpm check:ts && pnpm check:lint", "check:ts": "tsc --noEmit", "check:lint": "biome check .", - "format": "biome format --write .", + "fix": "pnpm fix:lint && pnpm fix:format", + "fix:lint": "biome check --write .", + "fix:format": "biome format --write .", "db:generate": "drizzle-kit generate", "db:migrate": "drizzle-kit migrate", "db:push": "drizzle-kit push", -- cgit v1.3-1-g0d28