Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:41:56 +08:00
commit 9bae611409
13 changed files with 964 additions and 0 deletions

39
hooks/hooks.json Normal file
View File

@@ -0,0 +1,39 @@
{
"description": "Auto-format, lint, and type-check files using Biome and TypeScript (git-aware)",
"hooks": {
"PostToolUse": [
{
"matcher": "Write|Edit|MultiEdit",
"hooks": [
{
"type": "command",
"command": "bun run ${CLAUDE_PLUGIN_ROOT}/hooks/biome-check.ts",
"timeout": 30
}
]
}
],
"Stop": [
{
"matcher": "*",
"hooks": [
{
"type": "command",
"command": "bun run ${CLAUDE_PLUGIN_ROOT}/hooks/biome-ci.ts",
"timeout": 60
}
]
},
{
"matcher": "*",
"hooks": [
{
"type": "command",
"command": "bun run ${CLAUDE_PLUGIN_ROOT}/hooks/tsc-ci.ts",
"timeout": 120
}
]
}
]
}
}