Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support 'node:' prefix in import/require statements. #2877

Conversation

GoldStrikeArch
Copy link

Added plugin 'prefer-node-builtin-imports'.
The plugin is based on 'prefer-node-protocol' rule from 'eslint-plugin-unicorn' plugin.
This plugin has 0 dependencies and is very minimalistic. All test cases are copied from eslint-plugin-unicorn_test

…refer-node-protocol' rule from 'eslint-plugin-unicorn' plugin. This plugin has 0 dependencies
Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would break in a bunch of the node versions we support, and philosophically I prefer to never, ever use the node: protocol.

@ljharb ljharb added the wontfix label Sep 6, 2023
@ljharb ljharb closed this Sep 6, 2023
@GoldStrikeArch GoldStrikeArch deleted the issue2717/prefer-node-builtin-imports branch July 3, 2024 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

3 participants