eslint-plugin-import icon indicating copy to clipboard operation
eslint-plugin-import copied to clipboard

ESLint plugin with rules that help validate proper imports.

Results 362 eslint-plugin-import issues
Sort by recently updated
recently updated
newest added

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...

enhancement

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...

enhancement

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...

docs

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,...

bug

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...

bug

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...

question

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...

package: resolver/webpack

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.

bug

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...

enhancement
rule proposal

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...

resolver
`exports` support