# eslint-import-resolver-node

> Node default behavior import resolution plugin for eslint-plugin-import.

Latest version **0.4.0** (published 2026-05-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install eslint-import-resolver-node
pnpm add eslint-import-resolver-node
yarn add eslint-import-resolver-node
bun add eslint-import-resolver-node
```

## Health

**Score 50/100 (C)** — status: active.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2026-05-15 |
| First published | 2015-11-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5947 |
| Author | Ben Mosher |
| Maintainers | jfmengels, ljharb, benmosher |
| Keywords | eslint, eslintplugin, esnext, modules, eslint-plugin-import |

## Links

- npm: https://www.npmjs.com/package/eslint-import-resolver-node
- Repository: https://github.com/import-js/eslint-plugin-import
- Issues: https://github.com/import-js/eslint-plugin-import/issues
- npm.io page: https://npm.io/package/eslint-import-resolver-node

## Dependencies (3)

- [debug](https://npm.io/package/debug.md) ^3.2.7
- [resolve](https://npm.io/package/resolve.md) ^2.0.0-next.7
- [is-core-module](https://npm.io/package/is-core-module.md) ^2.16.2

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 0.4.0 (latest) — 2026-05-15
- 0.2.0 (next) — 2016-03-25
- 0.3.10 — 2026-04-02
- 0.3.9 — 2023-08-08
- 0.3.8 — 2023-08-05
- 0.3.7 — 2023-01-11
- 0.3.6 — 2021-08-15
- 0.3.5 — 2021-08-08
- 0.3.4 — 2020-06-16
- 0.3.3 — 2020-01-11
- 0.3.2 — 2018-01-05
- 0.3.1 — 2017-06-23
- 0.3.0 — 2016-12-15
- 0.2.3 — 2016-08-20
- 0.2.2 — 2016-07-14
- … 3 more at https://npm.io/package/eslint-import-resolver-node/versions

## README

# eslint-import-resolver-node

[![npm](https://img.shields.io/npm/v/eslint-import-resolver-node.svg)](https://www.npmjs.com/package/eslint-import-resolver-node)

Default Node-style module resolution plugin for [`eslint-plugin-import`](https://www.npmjs.com/package/eslint-plugin-import).

Published separately to allow pegging to a specific version in case of breaking
changes.

Config is passed directly through to [`resolve`](https://www.npmjs.com/package/resolve#resolve-sync-id-opts) as options:

```yaml
settings:
  import/resolver:
    node:
      extensions:
        # if unset, default is just '.js', but it must be re-added explicitly if set
        - .js
        - .jsx
        - .es6
        - .coffee

      paths:
        # an array of absolute paths which will also be searched
        # think NODE_PATH
        - /usr/local/share/global_modules

      # this is technically for identifying `node_modules` alternate names
      moduleDirectory:

        - node_modules # defaults to 'node_modules', but...
        - bower_components

        - project/src  # can add a path segment here that will act like
                       # a source root, for in-project aliasing (i.e.
                       # `import MyStore from 'stores/my-store'`)
```

or to use the default options:

```yaml
settings:
  import/resolver: node
```

---
_Source: https://npm.io/package/eslint-import-resolver-node · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
