# eslint-import-resolver-ts-parser

> Resolver using @typescript-eslint parser service. Plugin for eslint-plugin-import

Latest version **0.1.3** (published 2023-10-25) · ISC license · 0 weekly downloads

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

## Install

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

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2023-10-25 |
| First published | 2022-05-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | PaperStrike |
| Maintainers | sliphua |

## Links

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

## Recent versions

- 0.1.3 (latest) — 2023-10-25
- 0.1.2 — 2022-06-03
- 0.1.1 — 2022-05-28
- 0.1.0 — 2022-05-28

## README

# eslint-import-resolver-ts-parser

[![npm Package](https://img.shields.io/npm/v/eslint-import-resolver-ts-parser?logo=npm "eslint-import-resolver-ts-parser")](https://www.npmjs.com/package/eslint-import-resolver-ts-parser)

Resolver using [@typescript-eslint](https://github.com/typescript-eslint) parser service. Plugin for [`eslint-plugin-import`](https://www.npmjs.com/package/eslint-plugin-import).

This plugin reads options from `@typescript-eslint` parser service, and then uses `typescript` compiler APIs to resolve paths. It can resolve whatever `typescript` can resolve.

## Installation

```shell
npm i -D eslint-import-resolver-ts-parser
```

### Set up the parser

Make sure you've got the `@typescript-eslint/parser` and `@typescript-eslint/eslint-plugin` working. Check out their [documentations](https://typescript-eslint.io/docs/linting/).

### Attach listener

[Extend](https://eslint.org/docs/user-guide/configuring/configuration-files#extending-configuration-files) your eslint config with `plugin:ts-parser-service/listen`. For example,

```json5
// .eslintrc.json
{
  "extends": [
    "plugin:@typescript-eslint/recommended",
    "plugin:ts-parser-service/listen",
  ]
}
```

[`eslint-plugin-ts-parser-service`](https://www.npmjs.com/package/eslint-plugin-ts-parser-service) helps us get the parser service serving the parsing file.

### Configure resolver

Set `ts-parser` as the [`import/resolver`](https://github.com/import-js/eslint-plugin-import#resolvers). For example,

```json5
// .eslintrc.json
{
  // ...
  "settings": {
    "import/resolver": "ts-parser"
  }
}
```

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