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

Refactor: remove is-builtin-module dep #2475

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zanminkian
Copy link
Contributor

No description provided.

@github-actions github-actions bot changed the title refactor: remove is-builtin-module dep Refactor: remove is-builtin-module dep Oct 10, 2024
Copy link
Collaborator

@fregante fregante left a comment

Choose a reason for hiding this comment

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

👍 CI is failing for external issues (vs code syntax; lack of token)

@sindresorhus
Copy link
Owner

sindresorhus commented Nov 19, 2024

The built-in method matches on a list of APIs that depend on which Node.js version the linter is running on. This can create inconsistent results, meaning it can pass locally, but fail in CI, etc. I think it's better to just wait and then update to https://github.com/sindresorhus/is-builtin-module v4 when we can require ESM, as it uses a static list.

@zanminkian
Copy link
Contributor Author

Using static list seems reasonable. I think we should progressively migrate the rules to .mjs or .mts for better maintainability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants