# @jacksongross/eslint-import-resolver-jsconfig

> Resolver for eslint-plugin-import to import alias from jsconfig paths

Latest version **1.0.0** (published 2022-11-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install @jacksongross/eslint-import-resolver-jsconfig
pnpm add @jacksongross/eslint-import-resolver-jsconfig
yarn add @jacksongross/eslint-import-resolver-jsconfig
bun add @jacksongross/eslint-import-resolver-jsconfig
```

## 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.0.0 |
| Published | 2022-11-21 |
| First published | 2022-11-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 6.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | jacksonGross |
| Maintainers | jacksongross |
| Keywords | eslint-import-resolver, eslint-import-plugin, alias, resolver, jsconfig, create-react-app, cra |

## Links

- npm: https://www.npmjs.com/package/@jacksongross/eslint-import-resolver-jsconfig
- Repository: https://github.com/jacksonGross/eslint-import-resolver-jsconfig
- Homepage: https://github.com/jacksonGross/eslint-import-resolver-jsconfig#readme
- Issues: https://github.com/jacksonGross/eslint-import-resolver-jsconfig/issues
- npm.io page: https://npm.io/package/@jacksongross/eslint-import-resolver-jsconfig

## Dependencies (3)

- [resolve](https://npm.io/package/resolve.md) ^1.20.0
- [find-root](https://npm.io/package/find-root.md) ^1.1.0
- [glob-parent](https://npm.io/package/glob-parent.md) ^6.0.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
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2022-11-21

## README

# eslint-import-resolver-jsconfig

This is resolver for [eslint-plugin-import](https://www.npmjs.com/package/eslint-plugin-import), which can import your alias from paths in your jsconfig file.

![jsconfig example](https://i.imgur.com/vlvtqdX.png)

I personally use it for easy eslint alias support with [create-react-app](https://github.com/facebook/create-react-app) and [react-app-rewired](https://github.com/timarney/react-app-rewired) + [react-app-rewire-alias](https://github.com/oklas/react-app-rewire-alias).

## Installation

```shell
npm install eslint-import-resolver-jsconfig --save-dev
```
## Usage

Pass this resolver and jsonconfig name to `eslint-plugin-import` using your `eslint` config file

```js
// .eslintrc.json

"settings": {
    "import/resolver": {
        "jsconfig": {
            "config": "jsconfig.json"
        }
    }
}
```
If it is necessary, pass array of extensions. Defaults are js and jsx.

```js
"jsconfig": {
    "config": "jsconfig.json",
    "extensions": [".js", ".jsx"]
}
```

## Special thanks

[eslint-import-resolver-webpack](https://github.com/import-js/eslint-plugin-import/blob/master/resolvers/webpack/README.md)

[eslint-import-resolver-custom-alias](https://github.com/laysent/eslint-import-resolver-custom-alias)

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