eslint-plugin-import icon indicating copy to clipboard operation
eslint-plugin-import copied to clipboard

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

Open Hotell opened this issue 5 years ago • 3 comments

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}],
      }

Hotell avatar Oct 05 '20 12:10 Hotell