import-js / import-js/eslint-plugin-import

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

Open
#954 7 comments 1 reaction 1 assignee Claimed by @benmosher View on GitHub
accepted enhancement package: resolver/webpack semver-minor
Dominant language
JavaScript
Stars
5.9k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.