Skip to content

Change Request: Spin out lib/unsupported-features as a standalone package? #511

Description

@JoshuaKGoldberg

eslint-plugin-n version

v17.23.2

What problem do you want to solve?

lib/unsupported-features is a treasure trove of info about which Node.js features were added in which Node.js versions. I'd like to use it in other tools that check for Node.js feature <> version compatibility. For example, the experimental flint-fyi/flint#932. And I'd be surprised if other linters such as Biome and Oxlint don't also end up including equivalents to n/no-unsupported-features/*.

But, lib/unsupported-features right now seems to be an internal implementation detail of the eslint-plugin-n package. There are no docs for it and the package doesn't export it in package.json or lib/index.js. There's no good, sanctioned way for us to intake that data that I can find.

What do you think is the correct solution?

Would the eslint-plugin-n team be open to publishing the data under lib/unsupported-features as a standalone package? Like a node-feature-support package or some similar name?

I imagine the two most common solutions to do so would be either:

  • Switching this repository to a monorepo
  • Creating a separate repository for the new package

Participation

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

Additional comments

I'd of course be happy to help maintain this if you're up for it and would find my help useful.

If this request is declined (totally understandable) I'll likely end up making my own library for this.

Thanks! ❤️

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions