Hook#buildwithclaude
0
Smart formatting
Dosya türüne göre akıllı kod biçimlendirmesi
yazan kuscubasiece·8 Eylül 2026
Kaynak: davepoon/claude-code-subagents-collection · MIT
Dosya türüne göre akıllı kod biçimlendirmesi
Kaynak: davepoon/claude-code-subagents-collection · MIT
curl -sL https://www.antrophiclove.com/api/kaynak/smart-formatting/rawBu içerik mevcut dosyaya elle harmanlanmalı: .claude/settings.json
Smart code formatting based on file type
PostToolUseEdit|MultiEditNone required
file_path=$(jq -r '.tool_input.file_path // empty')
case "$file_path" in
*.js|*.jsx|*.ts|*.tsx|*.json|*.css|*.md)
npx prettier --write "$file_path" 2>/dev/null || true
;;
*.py)
python3 -m black "$file_path" 2>/dev/null || true
;;
*.go)
gofmt -w "$file_path" 2>/dev/null || true
;;
esac