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