mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-20 23:35:51 +00:00
style: 完成所有文件的lint
This commit is contained in:
@@ -1862,12 +1862,16 @@ function mergeHooksSettings(
|
||||
|
||||
const merged = { ...base }
|
||||
|
||||
for (const [event, matchers] of Object.entries(additional) as [string, HookMatcher[]][]) {
|
||||
for (const [event, matchers] of Object.entries(additional) as [
|
||||
string,
|
||||
HookMatcher[],
|
||||
][]) {
|
||||
if (!merged[event as keyof HooksSettings]) {
|
||||
merged[event as keyof HooksSettings] = matchers
|
||||
} else {
|
||||
// Merge matchers for this event
|
||||
const existing = ((merged[event as keyof HooksSettings] as unknown) ?? []) as HookMatcher[]
|
||||
const existing = ((merged[event as keyof HooksSettings] as unknown) ??
|
||||
[]) as HookMatcher[]
|
||||
merged[event as keyof HooksSettings] = [...existing, ...matchers]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user