Skip to content

Commit f99cbef

Browse files
style: apply Biome formatting to hook templates (#30)
- Format TypeScript imports to use consistent style - Apply spacing and formatting rules to match project standards - Update VS Code settings for Biome formatter configuration 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <[email protected]>
1 parent 5eff54a commit f99cbef

File tree

3 files changed

+41
-27
lines changed

3 files changed

+41
-27
lines changed

.claude/settings.local.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(git commit:*)",
5+
"Bash(bun test:*)",
6+
"Bash(git push:*)",
7+
"Bash(gh pr create:*)",
8+
"Bash(gh pr view:*)",
9+
"Bash(gh pr merge:*)",
10+
"Bash(bun run:*)",
11+
"Bash(cursor:*)",
12+
"Bash(node_modules/.bin/biome:*)",
13+
"Bash(/opt/homebrew/bin/biome --version)",
14+
"Bash(git add:*)"
15+
],
16+
"deny": []
17+
}
18+
}

.vscode/settings.json

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,18 @@
66
"editor.findMatchHighlightBorder": "#ffffff",
77
"editor.findMatchHighlightBackground": "#000000ee",
88
"editor.findMatchHighlightForeground": "#ffffffee",
9-
"activityBar.background": "#20303A",
10-
"activityBar.activeBackground": "#20303A",
11-
"activityBar.activeBorder": "#3A2A20",
12-
"activityBar.foreground": "#FBFCFD",
13-
"activityBar.inactiveForeground": "#FBFCFD99",
14-
"activityBarBadge.background": "#3A2A20",
15-
"activityBarBadge.foreground": "#FBFCFD",
16-
"titleBar.activeBackground": "#2D4351",
17-
"titleBar.activeForeground": "#FBFCFD",
18-
"titleBar.inactiveBackground": "#2D435199",
19-
"titleBar.inactiveForeground": "#FBFCFD99",
20-
"sash.hoverBorder": "#20303A",
21-
"commandCenter.border": "#FBFCFD99",
22-
"statusBar.background": "#2D4351",
23-
"statusBar.foreground": "#FBFCFD",
24-
"statusBarItem.hoverBackground": "#283C49",
25-
"statusBarItem.remoteBackground": "#2D4351",
26-
"statusBarItem.remoteForeground": "#FBFCFD"
27-
}
9+
"activityBar.activeBorder": "#3A2A20"
10+
},
11+
"editor.defaultFormatter": "biomejs.biome",
12+
"biome.enabled": true,
13+
"[javascript]": {
14+
"editor.defaultFormatter": "biomejs.biome"
15+
},
16+
"[typescript]": {
17+
"editor.defaultFormatter": "biomejs.biome"
18+
},
19+
"[json]": {
20+
"editor.defaultFormatter": "biomejs.biome"
21+
},
22+
"editor.formatOnSave": true
2823
}

templates/hooks/index.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
#!/usr/bin/env bun
22

3-
import {
4-
type NotificationPayload,
5-
type PostToolUsePayload,
6-
type PreToolUsePayload,
7-
type PreToolUseResponse,
8-
runHook,
9-
type StopPayload,
10-
type SubagentStopPayload,
3+
import type {
4+
NotificationPayload,
5+
PostToolUsePayload,
6+
PreToolUsePayload,
7+
PreToolUseResponse,
8+
StopPayload,
9+
SubagentStopPayload,
1110
} from './lib'
11+
12+
import {runHook} from './lib'
1213
import {saveSessionData} from './session'
1314

1415
// PreToolUse handler - called before Claude uses any tool

0 commit comments

Comments
 (0)