mirror of
https://github.com/duthaho/claudekit.git
synced 2026-06-10 12:14:57 +03:00
40 lines
861 B
JSON
40 lines
861 B
JSON
{
|
|
"permissions": {
|
|
"allow": [
|
|
"Bash(git:*)",
|
|
"Bash(npm:*)",
|
|
"Bash(npx:*)",
|
|
"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": "Write",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "if [[ \"$FILE\" == *.py ]]; then ruff check --fix \"$FILE\" 2>/dev/null || true; elif [[ \"$FILE\" == *.ts || \"$FILE\" == *.tsx ]]; then npx eslint --fix \"$FILE\" 2>/dev/null || true; fi"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|