{ "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" } ] } ] } }