# eslint-import-resolver-exports

> `package.json` `exports` field resolver for `eslint-plugin-import`

Latest version **1.0.0-beta.5** (published 2023-02-24) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0-beta.5 |
| Published | 2023-02-24 |
| First published | 2022-07-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Author | Fatih Aygün |
| Maintainers | cyco130 |

## Links

- npm: https://www.npmjs.com/package/eslint-import-resolver-exports
- Repository: https://github.com/cyco130/eslint-import-resolver-exports
- Homepage: https://github.com/cyco130/eslint-import-resolver-exports#readme
- Issues: https://github.com/cyco130/eslint-import-resolver-exports/issues
- npm.io page: https://npm.io/package/eslint-import-resolver-exports

## Dependencies (1)

- [resolve.exports](https://npm.io/package/resolve.exports.md) ^2.0.0

## Recent versions

- 1.0.0-beta.5 (latest) — 2023-02-24
- 1.0.0-beta.4 — 2023-01-14
- 1.0.0-beta.3 — 2022-09-05
- 1.0.0-beta.2 — 2022-07-19
- 1.0.0-beta.1 — 2022-07-19

## README

# eslint-import-resolver-exports

This package adds [`package.json#exports`](https://nodejs.org/api/packages.html#exports) support to [`eslint-plugin-import`](https://www.npmjs.com/package/eslint-plugin-import) using the [resolve.exports](https://github.com/lukeed/resolve.exports) package.

## Usage

Install with `npm install -D eslint-import-resolver-exports` and add it as a resolver to your ESLint configuration. You should always include another resolver (e.g. `eslint-import-resolver-node` or `eslint-import-resolver-typescript`) since this resolver only supports `package.json#exports` and not the other Node.js resolution features.

Example config:

```js
module.exports = {
  // ... other configuration options
  settings: {
    "import/resolver": {
      typescript: {
        project: [__dirname + "/tsconfig.json"],
      },
      exports: {
        // Accepts the same options as the `resolve.exports` package
        // See: https://github.com/lukeed/resolve.exports#optionsunsafe

        // All optional, default values are shown

        // Add "require" field to the conditions
        require: false,
        // Add "browser" field to the conditions
        browser: false,
        // List of additional/custom conditions
        conditions: [],
        // Ignore everything except the `conditions` option
        unsafe: false,
      },
    },
  },
};
```

## Credits and license

- By Fatih Aygün under [MIT license](./LICENSE)

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