Skip to content

no-internal-modules: configuration to opt in/out to enable/disable exports linting #1920

Open
@Hotell

Description

@Hotell

Some time ago no-internal-modules rule added ES modules exports linting as a "fix" -> minor version bump (which was a breaking change btw).

From my experience, linting exports with this rule doesn't make much sense, as barrel/public-api files, can re-export from any nested path.

for example angular public api patterns, nx patterns (with React as well)

For better imagination I'm adding showcase of scaffold/public API

2020-10-05 at 2 20 PM

feature proposal

  • to mitigate these kind of discussions, I'd like to propose to add configuration API to this rule to opt out/in for linting exports
rules: {
        'import/no-internal-modules': ['error',{lintExports:false}],
      }

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