Skip to content

no-extraneous-deps: strip out webpack loaders from imports #954

Open
@donaldpipowitch

Description

@donaldpipowitch

As far as I know I can only ignore imports with webpack loaders, but I'd like them to be supported in certain rules.

E.g. I have something like this:

'import-inject-loader?showNotification!..' should be listed in the project's dependencies. Run 'npm i -S import-inject-loader?showNotification!..' to add it (import/no-extraneous-dependencies)

With an import like import {} from 'import-inject-loader?showNotification!../../src/form/FormModel';. But it would be nice, if it would just be treated as import {} from '../../src/form/FormModel'; natively.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions