# named

Rule `import/named`. Ensure named imports correspond to a named export in the remote file.

- Source: import
- Technologies: Imports
- Kind: correctness
- Needs type information: no
- Autofix: no
- Reach: 90.2M weekly downloads of presets that enable it
- Trend: +29.3% last quarter
- Rank: #207 by reach, #1147 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `import/named` | yes | no | package `eslint-plugin-import` | [docs](https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/named.md) |
| Oxlint | `import/named` | no | no | plugin `import`, category nursery | [docs](https://oxc.rs/docs/guide/usage/linter/rules/import/named.html) |
| Biome | `correctness/noUnresolvedImports` | no | no | group correctness, since 2.0.0 | [docs](https://biomejs.dev/linter/rules/no-unresolved-imports/) |

## Code examples

### Correct: the rule accepts this

```js
// ./bar.js
import { foo } from './foo'

// ES7 proposal
export { foo as bar } from './foo'

// node_modules without jsnext:main are not analyzed by default
// (import/ignore setting)
import { SomeNonsenseThatDoesntExist } from 'react'
```

```js
// ./baz.js
import { notFoo } from './foo'

// ES7 proposal
export { notFoo as defNotBar } from './foo'

// will follow 'jsnext:main', if available
import { dontCreateStore } from 'redux'
```

Examples from the ESLint documentation.

## Enable it

### ESLint: `eslint.config.js`

```js
import importPlugin from "eslint-plugin-import";

export default [
  {
    plugins: { import: importPlugin },
    rules: {
      "import/named": "error",
    },
  },
];
```

### Oxlint: `.oxlintrc.json`

```json
{
  "plugins": [
    "import"
  ],
  "rules": {
    "import/named": "error"
  }
}
```

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "correctness": {
        "noUnresolvedImports": "error"
      }
    }
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [import recommended](https://lintradar.dev/presets/import-recommended.md) | ESLint | `eslint-plugin-import` | 8 | 80.3M | +33.7% |
| [Airbnb base](https://lintradar.dev/presets/airbnb-base.md) | ESLint | `eslint-config-airbnb-base` | 241 | 6.5M | +2.1% |
| [Airbnb](https://lintradar.dev/presets/airbnb.md) | ESLint | `eslint-config-airbnb` | 346 | 3.4M | +2.3% |

## Related rules

- [import/no-unresolved](https://lintradar.dev/rules/import/no-unresolved.md): Ensure imports point to a file/module that can be resolved.
- [import/no-named-as-default-member](https://lintradar.dev/rules/import/no-named-as-default-member.md): Forbid use of exported name as property of default export.
- [import/no-named-as-default](https://lintradar.dev/rules/import/no-named-as-default.md): Forbid use of exported name as identifier of default export.
- [import/no-duplicates](https://lintradar.dev/rules/import/no-duplicates.md): Forbid repeated import of the same module in multiple places.
- [import/no-anonymous-default-export](https://lintradar.dev/rules/import/no-anonymous-default-export.md): Forbid anonymous values as default exports.
- [import/namespace](https://lintradar.dev/rules/import/namespace.md): Ensure imported namespaces contain dereferenced properties as they are dereferenced.

---

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