add claude specific configuration and instruction

This commit is contained in:
2026-03-31 12:28:50 +02:00
parent 27de32ce9f
commit 49c2e0668d
5 changed files with 70 additions and 0 deletions

23
.claude/settings.json Normal file
View File

@@ -0,0 +1,23 @@
{
"permissions": {
"deny": [
"Read(.env*)",
"Read(**/*.pem)",
"Read(**/*.key)"
]
},
"hooks": {
"PostToolUse": [
{
"matcher": "Write|Edit|MultiEdit",
"hooks": [
{
"type": "command",
"command": "filepath=$(jq -r '.tool_input.file_path // .tool_input.path // empty' /dev/stdin) && [ -n \"$filepath\" ] && pnpm exec prettier --write \"$filepath\" 2>/dev/null && [[ \"$filepath\" =~ \\.(ts|tsx|js|jsx)$ ]] && pnpm exec eslint --fix \"$filepath\" 2>/dev/null || true",
"timeout": 25
}
]
}
]
}
}