eslint-plugin-import
eslint-plugin-import copied to clipboard
ESLint plugin with rules that help validate proper imports.
This is the proposal for `no-relative-parent-imports` rule improvement. ### Context When `no-relative-parent-imports` rule is enabled, it doesn't allow to import from relative parents at all, for example: ```javascript // Both...
It is not uncommon to import something that is provided by a babel-plugin. One such example is [babel-plugin-rewire](https://github.com/speedskater/babel-plugin-rewire). It provides `__Rewire__` and `__ResetDependency__` to "override" local variables. I purpose adding...
It seems that eslint-plugin-import is much more discriminate about what characters and what parts of a URI are used in an import statement than Webpack is. Is there a complete...
Currently, [this logic is flawed](https://github.com/benmosher/eslint-plugin-import/blob/master/src/rules/no-extraneous-dependencies.js#L34) so that if you set `packageDir` option to either string or array - it will override the `readPkgUp` logic. I think this logic should remain,...
Hello! This specific code doesn't warn about the need of a new line after import: ```js import { NamedExport } from 'path/to/module'; /** * Doc bla bla */ const defaultExport...
Hi, I'm trying to configure eslint with the airbnb config for my react native project. To have nicer import statements I've a package.json in my src folder in which i...
I started using [`webpack-config`](https://www.npmjs.com/package/webpack-config) for my `webpack.config.js` files, and would like to use this file as my resolver. But import-webpack-resolver won't recognize it. Is there any way to add support...
As of webpack v2, the webpack configuration file can export a Promise: https://webpack.js.org/configuration/configuration-types/#exporting-a-promise. The webpack resolver does not attempt to resolve that promise to use the configuration.
This is the best plugin I've found that works to find unused files with webpack. However I like keeping some exports available even if unused, this makes it difficult to...
I am using: * eslint: v7.6.0 * babel-eslint: 11.0.0-beta.2 * eslint-plugin-import: 2.22.0 sourcecode: ```js import { Provider } from 'react-redux' ``` output: ```bash 10:26 error Parse errors in imported module...