Skip to content

pnpm lint causing issue when ESLint isn't used #665

Closed as duplicate
Closed as duplicate

Description

@timothyclin

I have a project that uses pnpm and biome as linter.
RTK seems to insist rewrite pnpm lint to rtk lint, which is then dependent on ESLint that I do not use.
This causes the agent to get into a re-try loop. Despite several notes I provided in Agents.MD, the confusion seems big enough that the agents kept tripping over this. Sometimes it'd eventually figure out what to do.

Proof -

# Test RTK rewrite of pnpm lint
$ rtk rewrite "pnpm lint"
rtk lint

Activity

  1. timothyclin commented on Mar 17, 2026

    @timothyclin
    Author

    my current workaround is to use pnpm run lint, which rtk doesn't rewrite.

  2. TechWizard9999 commented on Mar 18, 2026

    @TechWizard9999
    Contributor

    I’m taking this issue. I’ll adjust rewrite behavior so pnpm lint is routed through rtk pnpm lint (not rtk lint) to avoid ESLint-specific loops, with tests, in a focused PR against develop.

  3. TechWizard9999 commented on Mar 18, 2026

    @TechWizard9999
    Contributor

    I’ve submitted a PR to address this issue: #678

    Changes include:

    • routing pnpm lint to rtk pnpm lint instead of forcing rtk lint
    • preserving pnpm lint arguments in rewrite output
    • adding regression tests for both plain and argumented pnpm lint rewrites

    Validation run:

    • cargo fmt --all --check
    • rtk cargo clippy --all-targets
    • rtk cargo test
    • ./target/debug/rtk rewrite "pnpm lint" => rtk pnpm lint

    Please review when you get a chance.

  4. added
    bug
    effort-small
    filter-quality
    on Mar 20, 2026
  5. pszymkowiak commented on Mar 20, 2026

    @pszymkowiak
    Collaborator

    wshm · Automated triage by AI

    🔍 Automated Triage

    🐛 Category bug
    🟡 Priority medium
    🎯 Confidence 85%

    Summary

    pnpm lint is unconditionally rewritten to rtk lint (which assumes ESLint), breaking projects that use alternative linters like biome; PR #678 is already in progress.

    This looks like a simple fix that could be auto-resolved. Repo maintainers can use /wshm fix to attempt it.


    Triaged automatically by wshm · This is an automated analysis, not a human review.

  6. added
    good first issue
    and removed on Apr 12, 2026
  7. dimitur2204 commented on Jun 24, 2026

    @dimitur2204

    Would be great to have it, it is quite annoying right now. I worked around by changing to running pnpm run lint

  8. PeterCardenas commented on Jul 20, 2026

    @PeterCardenas

    seems like there's config for this, fixed as of #1398. so i think can be closed?

    [hooks]
    exclude_commands = ["pnpm lint", "npm run lint", "biome check"]
  9. KuSh commented on Sep 13, 2026

    @KuSh
    Collaborator

    Closing as a duplicate of #3117, which reports the same rewrite of pnpm lint and biome invocations to the ESLint-only rtk lint filter and adds detail on how the resulting failure gets masked. Please follow up there.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:clibugeffort-smallfilter-qualitygood first issueneeds-reproductionpriority:medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions