Repository navigation
feat: bug: hook rewrite of pnpm lint discards package.json script - #2776
wilmerdooley wants to merge 1 commit into
Conversation
Signed-off-by: wilmerdooley <[email protected]>
|
Hey @wilmerdooley This is related to issues #2663 and #2094Two related PR that both address a temporary fix :
The issue is at a higher level, and maintaining those hard coded lists is not a correct solution. Proposed fix :
This fixes both issues at the root, removes both lists (no more chasing npm versions or package-manager forms), and keeps every exit code faithful. #2776 currently drops pnpm lint to raw with no filter (0% savings), running it verbatim and filtering the output preserves the gain. |
|
Closing this in favour of #2860, which fixes #2094 by dropping |
Resolves #2094.
The PreToolUse hook rewrites
pnpm lint→rtk lint, discarding the body of the project'spackage.jsonlintscript. For projects whose script enforces flagseslintdoesn't default to (e.g.--max-warnings 0) or chains commands (e.g.pnpm check:foo && eslint ...), the rewrittenrtk lintinvokeseslintwith defaults and exits 0 even when the originalpnpm lintwould have exited 1.Summary
Test plan
cargo fmt --all && cargo clippy --all-targets && cargo testrtk <command>output inspected