import-js / import-js/eslint-plugin-import
no-extraneous-deps: strip out webpack loaders from imports
Open
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
Assessment
This issue has not been assessed yet.