Skip to content

Change Request: Recommend custom .npmrc for pnpm use of ESLintΒ #19421

@nzakas

Description

@nzakas

ESLint version

HEAD

What problem do you want to solve?

Lately we've had multiple issues filed related to how pnpm resolves dependencies:

#19418
#19414

These tend to be related to pnpm not being able to find a dependency due to the differences in how it installs and resolves modules vs. npm.

What do you think is the correct solution?

Instead of fighting these on an ongoing basis, I think we should just add to the README and docs to include an .npmrc file with the following:

auto-install-peers=true
node-linker=hoisted

As long as something works in npm, I just don't think it's worth the time to figure out what pnpm is doing differently.

Participation

  • I am willing to submit a pull request for this change.

Additional comments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationRelates to ESLint's documentationenhancementThis change enhances an existing feature of ESLintpatch candidateThis issue may necessitate a patch release in the next few days

    Type

    No type

    Projects

    Status

    Complete

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions