-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Description
I'd like to forbid deep internal imports from libraries, e.g.
import internalFunction from 'some-lib/deep/down/in/the/dark/internalFunction'
but allow importing from anywhere in the current project (i.e. any relative imports):
import whatever from '../../../some/project/folder/module'
import whatever from './app/some/module'
just like TSLint's no-submodule-imports
Currently, the last example always fails.
I tried to specify allow: ['./**/*', '../**/*']
but that doesn't make a difference.
Could there be an option added for this, e.g. nodeModulesOnly
, or ignoreRelativeImports
?
frederickfogerty, adjerbetian, eseliger, knoid, jchomicki and 9 more
Metadata
Metadata
Assignees
Labels
No labels