mirror of
https://github.com/duthaho/claudekit.git
synced 2026-06-12 05:04:56 +03:00
54 lines
1018 B
JSON
54 lines
1018 B
JSON
{
|
|
"permissions": {
|
|
"allow": [
|
|
"Bash(git:*)",
|
|
"Bash(npm:*)",
|
|
"Bash(pnpm:*)",
|
|
"Bash(yarn:*)",
|
|
"Bash(pip:*)",
|
|
"Bash(poetry:*)",
|
|
"Bash(python:*)",
|
|
"Bash(node:*)",
|
|
"Bash(pytest:*)",
|
|
"Bash(ruff:*)",
|
|
"Bash(eslint:*)",
|
|
"Bash(prettier:*)",
|
|
"Bash(tsc:*)",
|
|
"Bash(docker:*)",
|
|
"Bash(gh:*)",
|
|
"Read(*)",
|
|
"Write(*)",
|
|
"Edit(*)"
|
|
],
|
|
"deny": []
|
|
},
|
|
"hooks": {
|
|
"PostToolUse": [
|
|
{
|
|
"matcher": {
|
|
"tool": "Write",
|
|
"files": ["*.py"]
|
|
},
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "ruff check --fix $FILE 2>/dev/null || true"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"tool": "Write",
|
|
"files": ["*.ts", "*.tsx"]
|
|
},
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "npx eslint --fix $FILE 2>/dev/null || true"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|