Skip to content

pnpm project-local CLI can pass oxlint an invalid eslint-plugin-react-hooks directory path #833

Description

@urjitc

React Doctor 0.5.6 reports incomplete lint results when installed into one pnpm project and run from that project with pnpm exec react-doctor.

Command:

pnpm add -D react-doctor@0.5.6
pnpm exec react-doctor . --scope changed --verbose --no-score

Output:

Failed to parse oxlint output: Failed to parse oxlint configuration file.

  x Failed to load JS plugin: /path/to/project/node_modules/.pnpm/eslint-plugin-react-hooks@7.1.1_eslint@9.39.4_jiti@2.7.0_/node_modules/

No issues detected, but lint checks failed — results are incomplete.

Expected:
React Doctor should pass oxlint the resolved plugin entry file/package path, not the parent node_modules/ directory.

This seems related to the prior react-hooks-js / eslint-plugin-react-hooks resolution class of issues (#141, #496), but the observed failure is specifically an invalid jsPlugins path ending in /node_modules/.
I also saw #627, which appears likely to remove this dependency path entirely, so this may already be fixed by that unreleased direction.

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions