Files
dasemuandClaude Sonnet 5 a1758b40b8 chore: bootstrap Claude setup
Add root CLAUDE.md, LESSONS.md, docs/ index, .claude hooks (syntax-check
on edit/write and on stop, since no linter/test suite is configured
yet), CI/version GitHub Actions workflows scoped to the existing
master branch, and translate .env.example comments to English.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-18 15:09:56 +02:00

26 lines
657 B
JSON

{
"hooks": {
"PostToolUse": [
{
"matcher": "Edit|Write",
"hooks": [
{
"type": "command",
"command": "file=$(cat | python3 -c 'import json,sys; print(json.load(sys.stdin).get(\"tool_input\",{}).get(\"file_path\",\"\"))'); case \"$file\" in *.js) node --check \"$file\" ;; esac"
}
]
}
],
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "cd \"$CLAUDE_PROJECT_DIR\" && status=0; for f in $(find src -name '*.js'); do node --check \"$f\" || status=1; done; exit $status"
}
]
}
]
}
}