镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
This repository was archived by the owner on Jun 24, 2026. It is now read-only.
This repository was archived by the owner on Jun 24, 2026. It is now read-only.

Add a rule to the Node ESLint plugin to flag packages that are now built in to Node.js #110

Closed

Description

@iansu

We've started incorporating some third-party packages like mkdirp and rimraf into Node core. We could add a rule to the Node ESLint plugin that would flag this to users if they're using the package in their code. In some cases the npm packages provide additional functionality, for example rimraf also provides binlinks so we probably only want to flag certain usages.

Activity

  1. ljharb commented on Apr 16, 2021

    @ljharb
    SponsorMember

    That would be a harmful rule imo, unless the package explicitly declares an engines.node for which those packages are unnecessary.

  2. iansu commented on Apr 16, 2021

    @iansu
    ContributorAuthor

    The ESLint rule could maybe define that? This is a just a placeholder issue that I created during our meeting today. It's certainly not a fully thought out proposal. We did discuss that something like this could have some negative affects as well and we'll be discussing it more in future meetings.

  3. ljharb commented on Apr 16, 2021

    @ljharb
    SponsorMember

    Absolutely it could :-) i just want to caution against anything that could encourage package maintainers to unnecessarily drop support for a platform version, thus cutting off users.

  4. iansu commented on Apr 16, 2021

    @iansu
    ContributorAuthor

    Yeah, that's definitely a good perspective. We'll be discussing this more and getting more input from the community before moving ahead with anything.

  5. joesepi commented on Jun 25, 2021

    @joesepi
    Member

    We've decided (in today's meeting) to close this and open a more generic issue around alerting end users to new features in core when they are using a package/shim/whatever.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions