Skip to content

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

Closed
@ota-meshi

Description

@ota-meshi

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?

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