Skip to content

fix(hook): preserve explicit linter rewrites#3017

Open
ychampion wants to merge 1 commit into
rtk-ai:developfrom
ychampion:fix/hook-preserve-explicit-linter
Open

fix(hook): preserve explicit linter rewrites#3017
ychampion wants to merge 1 commit into
rtk-ai:developfrom
ychampion:fix/hook-preserve-explicit-linter

Conversation

@ychampion

Copy link
Copy Markdown

Fixes #2906

Summary

  • keep biome and eslint in hook rewrites when the command names them explicitly
  • leave generic lint script rewrites on the existing auto-detection path

Test plan

  • cargo fmt --all --check && cargo clippy --all-targets --locked -- -D warnings && cargo test --locked
  • Manual testing: rtk hook check "pnpm exec biome ci ." -> rtk lint biome ci .

Constraint: explicit package-manager invocations must retain the requested linter identity.
Rejected: tighten generic linter detection | would change direct rtk lint extensibility beyond this bug.
Confidence: high
Scope-risk: narrow
Directive: keep generic lint-script rewrites on the existing auto-detection path.
Tested: cargo fmt --all --check; cargo clippy --all-targets --locked -- -D warnings; cargo test --locked; manual Biome, ESLint, and generic lint hook checks.

Signed-off-by: Yashas Gunderia <68075205+ychampion@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant