# no-unresolved

Rule `import/no-unresolved`. Ensure imports point to a file/module that can be resolved.

- 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: #208 by reach, #1148 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `import/no-unresolved` | yes | no | package `eslint-plugin-import` | [docs](https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/no-unresolved.md) |

## Enable it

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

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

export default [
  {
    plugins: { import: importPlugin },
    rules: {
      "import/no-unresolved": "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/named](https://lintradar.dev/rules/import/named.md): Ensure named imports correspond to a named export in the remote file.
- [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/no-unresolved. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
