aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-02-15 17:13:41 +0900
committernsfisis <nsfisis@gmail.com>2026-02-15 17:13:41 +0900
commit086ad98480d8898b610965bc23ef934173f9fdfc (patch)
treec54887e7d96db82f4ac1f2e0927200b24e27abd0
parent95bb8c70a98fabae2a60b251489a59065b2978d1 (diff)
downloadkioku-086ad98480d8898b610965bc23ef934173f9fdfc.tar.gz
kioku-086ad98480d8898b610965bc23ef934173f9fdfc.tar.zst
kioku-086ad98480d8898b610965bc23ef934173f9fdfc.zip
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.
-rw-r--r--CLAUDE.md6
-rw-r--r--package.json4
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",