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 395 eslint-plugin-import issues
Sort by recently updated
recently updated
newest added

Hi there, I'm trying to use `import/order` with this setting: ```json "import/order": [ "error", { "alphabetize": { "order": "asc", "caseInsensitive": false }, "groups": [ ["builtin", "external"], ["internal", "parent", "sibling", "index"]...

I'm using both eslint-plugin-import and [eslint-plugin-json](https://github.com/azeemba/eslint-plugin-json). When there are only `*.json` files in my project, I get "No files matching the pattern" error from the `import/no-unused-modules` rule, **and ESLint crashes**....

help wanted

Hello, I've faced with a problem that it's impossible to warn about unused modules in case the module has imports only to test files, for instance. **Example** Suppose, we have...

enhancement
help wanted

Before doing https://github.com/import-js/eslint-plugin-import/issues/1324 We should have a `varsIgnorePattern` or similar. There is cases where you don't want to remove all unsued exports. For example in some project when we have...

### Background I work in a monorepo where we don't use relative imports, but rather we have webpack configured to resolve imports to our JS source directory prior to looking...

enhancement
help wanted

Sending as a reference for https://github.com/import-js/eslint-plugin-import/pull/2829 -> https://github.com/eslint/eslint/issues/18087. This: 1. Copies `FileEnumerator.js` from ESLint's source as a `FileEnumeratorIsh` class 2. Uses `FileEnumeratorIsh` instead of the existing `FileEnumerator` imports in `no-unused-modules.js`...

This PR addresses the issue where multiple import type statements from the same module are not properly combined when the prefer-inline option is enabled. Specifically, the problem arises when importing...

typescript

When I: 1. Clone this repository on a Windows machine 2. `npm i` (successfully) 3. `npm i` again (as-is or trying to install a new dependency) It fails with: ```...

The thought here is that this rule would lint *`package.json` itself* and warn on any deps or dev deps that are not explicitly imported somewhere in the linted JS files....

rule proposal
evaluating

This correctly triggers `import/no-duplicates`: ```typescript import { useEffect } from "react"; import { useState } from "react"; ``` But this doesn't: ```typescript import { type ComponentProps, useEffect } from "react";...

bug
help wanted
typescript