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

With the recent official support of ESLint TypeScript config ([ref](https://eslint.org/docs/latest/use/configure/configuration-files#typescript-configuration-files)), when trying to setup the [example config in the README file](https://github.com/import-js/eslint-plugin-import?tab=readme-ov-file#config---flat-with-config-in-typescript-eslint), I get the following issue: `Unable to resolve path...

typescript
docs

Hellow everyone i want group how write in the documentation https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/order.md#groups-array but i have problem newlines-between work between all group groups: [['external','builtin'], ['internal', 'parent', 'sibling', 'index']], **Example:** ``` import {...

question
import/export ordering

Some of the example paths don't match the file trees given. This also cleans up some of the file tree formatting and clarifies the wording to hopefully avoid confusion.

With the recent official support of ESLint TypeScript config ([ref](https://eslint.org/docs/latest/use/configure/configuration-files#typescript-configuration-files)), when trying to setup the [example config in the README file](https://github.com/import-js/eslint-plugin-import?tab=readme-ov-file#config---flat-with-config-in-typescript-eslint), I get the following typings issue: `'importPlugin.flatConfigs' is possibly...

typescript

Updating schema wrt https://github.com/import-js/eslint-plugin-import/pull/3127#discussion_r1926534364 EDIT: depends on #3129 for its added tests

Possible duplicate of #3113. I'm using using eslint-plugin-import v2.31.0 and eslint v8.57.1. I've got a large work project that I'm attempting to migrate from a legacy-style config to a flat...

performance

Hi Friends, I am trying to use the rule `'import/no-unused-modules': [2, { unusedExports: true }]` which, from research, requires the following eslintrc config: ``` settings: { 'import/parsers': { '@typescript-eslint/parser': ['.ts',...

help wanted
typescript

Hiya, like many projects my project is upgrading to the new flat eslint config format. Unfortunately the `eslint.config.js` doesn't type check properly currently: ``` Module '"/home/darius/yomitan/node_modules/eslint-plugin-import/lib/index"' has no default export.ts(1192)...

typescript

It looks like the docs for the `ignoreUnusedTypeExports` option of the rule `no-unused-modules` are wrong: > `ignoreUnusedTypeExports`: if `true`, TypeScript type exports without any static usage within other modules are...

docs