Skip to content

fix(hook): delegate lint scripts to package managers - #3289

Open
ousamabenyounes wants to merge 2 commits into
rtk-ai:developfrom
ousamabenyounes:fix/hook-lint-script-rewrite
Open

ousamabenyounes wants to merge 2 commits into
rtk-ai:developfrom
ousamabenyounes:fix/hook-lint-script-rewrite

Conversation

@ousamabenyounes

@ousamabenyounes ousamabenyounes commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Changes

  • Preserve project scripts for npm/pnpm run lint and pnpm lint.
  • Keep explicit ESLint/Biome commands on rtk lint; leave recursive pnpm flags unsupported.

Validation

  • Two regression tests fail before the fix and pass after.
  • Baseline and final local CI pass with the same invocation: RUN_COVERAGE=0 ./run-ci.sh.
  • GitHub CI is green.

Related: #3286 (duplicate of #1489).

@ousamabenyounes
ousamabenyounes force-pushed the fix/hook-lint-script-rewrite branch from 380097e to 90cd6a9 Compare October 16, 2026 22:32
Adding the `lint` script alias to the `rtk pnpm` rule let the pnpm
global-option strip adopt `pnpm -r lint` as `pnpm lint`, classifying it
Supported and rewriting to `rtk pnpm -r lint`. A workspace-wide lint
script run is not something `rtk pnpm` can honestly filter, so it must
stay Unsupported like on develop (rtk-ai#3275). Exclude script-alias
subcommands from the flag-first strip adoption; bare `pnpm lint`
delegation (rtk-ai#3289) is unaffected.
@ousamabenyounes

Copy link
Copy Markdown
Contributor Author

Fixed the pnpm lint regression. The two failing tests now pass; local CI and GitHub CI are green.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant