# import recommended

Checks that imports resolve, named imports exist and nothing is exported twice.

- Linter: ESLint
- Package: `eslint-plugin-import` (https://github.com/import-js/eslint-plugin-import#config---flat-with-configts-in-typescript-eslint)
- Author: import-js (official)
- Rules: 8
- Weekly downloads: 80.3M, +33.7% last quarter
- Technologies: imports (8)

## Install

```sh
npm install -D eslint eslint-plugin-import
pnpm add -D eslint eslint-plugin-import
yarn add -D eslint eslint-plugin-import
bun add -d eslint eslint-plugin-import
```

## Config: `eslint.config.js`

```js
// eslint.config.js
import importPlugin from "eslint-plugin-import";

export default [
  importPlugin.flatConfigs.recommended,
];
```

## Rules it enables

| Rule | Severity | Description | Reach |
| --- | --- | --- | --- |
| [import/export](https://lintradar.dev/rules/import/export.md) | error | Forbid any invalid exports, i.e. re-export of the same name. | 123.9M |
| [import/default](https://lintradar.dev/rules/import/default.md) | error | Ensure a default export is present, given a default import. | 110.8M |
| [import/namespace](https://lintradar.dev/rules/import/namespace.md) | error | Ensure imported namespaces contain dereferenced properties as they are dereferenced. | 110.8M |
| [import/no-duplicates](https://lintradar.dev/rules/import/no-duplicates.md) | warn | Forbid repeated import of the same module in multiple places. | 98.1M |
| [import/no-named-as-default](https://lintradar.dev/rules/import/no-named-as-default.md) | warn | Forbid use of exported name as identifier of default export. | 92.7M |
| [import/no-named-as-default-member](https://lintradar.dev/rules/import/no-named-as-default-member.md) | warn | Forbid use of exported name as property of default export. | 92.7M |
| [import/named](https://lintradar.dev/rules/import/named.md) | error | Ensure named imports correspond to a named export in the remote file. | 90.2M |
| [import/no-unresolved](https://lintradar.dev/rules/import/no-unresolved.md) | error | Ensure imports point to a file/module that can be resolved. | 90.2M |

---

Web page: https://lintradar.dev/presets/import-recommended. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
