Skip to content

Change Request: Add support for process.getBuiltinModule() #428

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

Open
1 of 6 tasks
ota-meshi opened this issue Mar 27, 2025 · 0 comments
Open
1 of 6 tasks

Change Request: Add support for process.getBuiltinModule() #428

ota-meshi opened this issue Mar 27, 2025 · 0 comments

Comments

@ota-meshi
Copy link
Member

ota-meshi commented Mar 27, 2025

eslint-plugin-n version

v17.17.0

What problem do you want to solve?

I think process.getBuiltinModule('fs') should be treated the same as require('fs') or import fs from 'fs'.
It would be nice if the rules in this plugin could also check process.getBuiltinModule('fs').

What do you think is the correct solution?

Add support for process.getBuiltinModule()

Participation

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

Additional comments

I think we first need to list which rules it affects.

I think the following rules are probably subject to change:

What do you think?

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

No branches or pull requests

1 participant