Plugin hooks.json
A plugin-scoped hooks file that auto-formats files after edits using the plugin's own script.
{
"hooks": {
"PostToolUse": [
{
"matcher": "Edit|Write",
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/format-check.js"
}
]
}
]
}
}