Skip to content

Commit 993de6b

Browse files
mashclaude
andcommitted
Add Claude Code settings
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c078289 commit 993de6b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.claude/settings.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"hooks": {
3+
"PostToolUse": [
4+
{
5+
"matcher": "Edit|Write",
6+
"hooks": [
7+
{
8+
"type": "command",
9+
"command": "FILE_PATH=$(jq -r '.tool_input.file_path // empty') && [[ \"$FILE_PATH\" == *.go ]] && goimports -w \"$FILE_PATH\" || true"
10+
}
11+
]
12+
}
13+
]
14+
}
15+
}

0 commit comments

Comments
 (0)