# eslint-import-resolver-babel-plugin-root-import

> fork of eslint-import-resolver-babel-root-import that works

Latest version **1.1.1** (published 2018-02-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install eslint-import-resolver-babel-plugin-root-import
pnpm add eslint-import-resolver-babel-plugin-root-import
yarn add eslint-import-resolver-babel-plugin-root-import
bun add eslint-import-resolver-babel-plugin-root-import
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2018-02-22 |
| First published | 2017-07-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 73.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 25 |
| Author | unconfident |
| Maintainers | chenbingqi, unconfident |
| Keywords | eslint, eslint-plugin-import, eslint-import-resolver, babel, babel-plugin, module, babel-root-import, babel-plugin-root-import, rewrite, resolve, rename, mapping, require, import |

## Links

- npm: https://www.npmjs.com/package/eslint-import-resolver-babel-plugin-root-import
- Repository: https://github.com/unconfident/eslint-import-resolver-babel-plugin-root-import
- Homepage: https://github.com/unconfident/eslint-import-resolver-babel-plugin-root-import#readme
- Issues: https://github.com/unconfident/eslint-import-resolver-babel-plugin-root-import/issues
- npm.io page: https://npm.io/package/eslint-import-resolver-babel-plugin-root-import

## Dependencies (2)

- [json5](https://npm.io/package/json5.md) ^0.5.0
- [eslint-import-resolver-node](https://npm.io/package/eslint-import-resolver-node.md) ^0.2.1

## 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
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2018-02-22
- 1.1.0 — 2018-02-08
- 1.0.0 — 2018-02-08
- 0.0.11 — 2017-07-19
- 0.0.9 — 2017-07-19
- 0.0.8 — 2017-07-19
- 0.0.7 — 2017-07-19
- 0.0.6 — 2017-07-19
- 0.0.5 — 2017-07-19
- 0.0.4 — 2017-07-19

## README

# eslint-import-resolver-babel-plugin-root-import

A [babel-plugin-root-import] resolver for [eslint-plugin-import].

This is a fork of [eslint-import-resolver-babel-root-import] that works with 
latest version of babel plugin.

## Installation

```sh
npm install --save-dev eslint-plugin-import eslint-import-resolver-babel-plugin-root-import
```

## Usage

Inside your `.eslintrc` file, pass this resolver to `eslint-plugin-import`:

```json
"settings": {
  "import/resolver": "babel-plugin-root-import"
}
```

And see [babel-plugin-root-import] to know how to configure your prefix/suffix. 
Configuration will be parsed down from `.babelrc` file

### Example

```json
{
  "extends": "airbnb",
  "rules": {},
  "settings": {
    "import/resolver": {
      "babel-plugin-root-import": {}
    }
  }
}
```

Or if you don't use `.babelrc` and keep your babel configuration in, say, webpack
config you can pass those options to resolver directly through `.eslintrc` file:

```json
{
  "extends": "airbnb",
  "rules": {},
  "settings": {
    "import/resolver": {
      "babel-plugin-root-import": {
        "rootPathPrefix": "@",
        "rootPathSuffix": "src/js"
      }
    }
  }
}
```

## License

MIT, see [LICENSE.md](/LICENSE.md) for details.


[babel-plugin-root-import]: https://github.com/entwicklerstube/babel-plugin-root-import
[eslint-plugin-import]: https://github.com/benmosher/eslint-plugin-import
[eslint-import-resolver-babel-root-import]: https://github.com/olalonde/eslint-import-resolver-babel-root-import

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