Skip to content

Rule proposal: no-core #158

@gajus

Description

@gajus

I have seen client app code import Node.js modules, e.g.

import querystring from 'querystring';

This will potentially import a huge library that will vary depending on the node version used to build the bundle. Bundle should not depend on the version of node used to build it.

This is hard to catch because it will just work until it suddenly stops with no way to traceback the issue in the code itself.

The rule should restrict import to only modules declared in package.json (or another strategy used to make sure that Node.js modules are not imported).

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