mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-09 15:02:30 +02:00
perf(hooks): move post-edit-format and post-edit-typecheck to strict-only (#757)
* perf(hooks): move post-edit-format and post-edit-typecheck to strict-only These hooks fire synchronously on every Edit call with 15-30s timeouts each. During multi-file refactors this adds 5-10 minutes of overhead. Moving them from standard,strict to strict-only means they won't fire in the default profile but are still available for users who want the extra validation. Fixes #735 * Also update OpenCode plugin to strict-only for format/typecheck The OpenCode plugin had the same standard,strict profile for post:edit:format and post:edit:typecheck, so OpenCode users on the default profile would still get the per-edit overhead.
This commit is contained in:
parent
fdb10ba116
commit
0c7deb26a3
2 changed files with 4 additions and 4 deletions
|
|
@ -182,7 +182,7 @@
|
|||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "node \"${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags.js\" \"post:edit:format\" \"scripts/hooks/post-edit-format.js\" \"standard,strict\""
|
||||
"command": "node \"${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags.js\" \"post:edit:format\" \"scripts/hooks/post-edit-format.js\" \"strict\""
|
||||
}
|
||||
],
|
||||
"description": "Auto-format JS/TS files after edits (auto-detects Biome or Prettier)"
|
||||
|
|
@ -192,7 +192,7 @@
|
|||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "node \"${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags.js\" \"post:edit:typecheck\" \"scripts/hooks/post-edit-typecheck.js\" \"standard,strict\""
|
||||
"command": "node \"${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags.js\" \"post:edit:typecheck\" \"scripts/hooks/post-edit-typecheck.js\" \"strict\""
|
||||
}
|
||||
],
|
||||
"description": "TypeScript check after editing .ts/.tsx files"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue