Skip to content

Commit fc562bf

Browse files
davidsuclaude
andcommitted
chore: drop the knip:fix PostToolUse hook
Auto-running `knip --fix` after every Edit/Write fights the agent mid-change: an `export` added in one file is deleted as "exported but nobody imports" before the `import` in the consuming file is written. Knip is already enforced as a PR check (.github/workflows/knip.yml runs `bun run knip` on every PR to main), which is the right place for it — whole-repo validation once the change is complete, not after each edit. `typecheck` and `lint:fix` stay; they are edit-local and idempotent. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 3556287 commit fc562bf

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

‎.claude/settings.json‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@
1818
{
1919
"type": "command",
2020
"command": "bun run lint:fix 2>&1 | head -30"
21-
},
22-
{
23-
"type": "command",
24-
"command": "bun run knip:fix 2>&1 | head -50"
2521
}
2622
]
2723
},
@@ -35,10 +31,6 @@
3531
{
3632
"type": "command",
3733
"command": "bun run lint:fix 2>&1 | head -30"
38-
},
39-
{
40-
"type": "command",
41-
"command": "bun run knip:fix 2>&1 | head -50"
4234
}
4335
]
4436
}

0 commit comments

Comments
 (0)