chore: add pre-commit hook with husky — wajib lint pass sebelum commit
Deploy FileDrop / deploy (push) Failing after 10s

- Install husky v9, init .husky/pre-commit
- Hook runs 'bun run lint' and rejects commit on failure
- 'bun install' auto-activates hooks via prepare script

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Claude
2026-07-29 08:15:06 +07:00
parent af160e0f33
commit e1e228430f
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
bun run lint
+3 -1
View File
@@ -14,7 +14,8 @@
"test:web-api": "bun test --preload ./test/helpers/setup-env.ts test/web-api.test.ts",
"test:s3": "bun test --preload ./test/helpers/setup-env.ts test/s3-auth.test.ts && bun test --preload ./test/helpers/setup-env.ts test/s3-operations.test.ts && bun test --preload ./test/helpers/setup-env.ts test/web-api.test.ts",
"lint": "bunx biome check src test",
"format": "bunx biome format --write src test"
"format": "bunx biome format --write src test",
"prepare": "husky"
},
"dependencies": {
"@prisma/engines": "^7.8.0",
@@ -31,6 +32,7 @@
"@biomejs/biome": "^2.4.15",
"@types/node": "^25.8.0",
"drizzle-kit": "^0.31.10",
"husky": "^9.1.7",
"typescript": "^6.0.3"
}
}