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

_An array of `RegExp` pattern strings_ must be set to the [`ignore`](https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-unresolved.md#ignore) option of the `import/no-unresolved` rule. With a string, linters (and text editors) don't know that it contains a...

enhancement

With PixiJS v8, advanced blend modes are imported as follows (see for instance https://pixijs.com/8.x/examples/basic/blend-modes): ```js import "pixi.js/advanced-blend-modes"; ``` However, this triggers the lint error `Unable to resolve path to module...

I have seen various discussions about this rule, but not quite in the exact same context, so I am unsure if that could be merged with an existing issue: I...

version: `2.26.0` Example: > It seems that the following import statements can't be combined into one ```ts import type { Foo } from 'pathToModule'; import type * as AllTypes from...

help wanted
typescript

As part of normal dev work I added a snapshot (Jest) file to a workspace in my repo. This apparently broke Eslint. When I remove the snapshot file the TypeError...

help wanted

Config `import/recommended` has a hardcoded `parserOptions.ecmaVersion` of 2018 This has the side effect of not being able to parse my `eslint.config.mjs` which uses nullish coalescing (Unless I override with `languageOptions.ecmaVersion...

The [`import/no-unused-modules`](https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-unused-modules.md) rule doesn't work when the ESLint configuration file doesn't have a standard name. In my projects, I group the configuration files in a directory to avoid having too...

For the flat config it seems the only way to import the plugin is to load it from the generated flat configs through `flatConfigs`, and there's no way to import...

help wanted
docs

#2348 was supposed to get fixed in 2.30.0, but for my project the performance of `import/no-cycle` got even worse. With 2.29.1 it took 21s: ``` Rule | Time (ms) |...

I've got this: ``` "pathGroups": [ { "pattern": "react", "group": "external", "position": "before" }, { "pattern": "{app,components,constants,context,generated,images,pages,shared,testing}/**", "group": "internal", "position": "after" } ] ``` but for certain modules like `shared`...

question
import/export ordering