mirror of
https://github.com/Dasemu/meta-social-mcp.git
synced 2026-11-27 07:46:33 +00:00
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>
26 lines
657 B
JSON
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"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|