# typescript-eslint-language-service

> TypeScript language service plugin for ESLint

Latest version **5.0.5** (published 2023-04-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install typescript-eslint-language-service
pnpm add typescript-eslint-language-service
yarn add typescript-eslint-language-service
bun add typescript-eslint-language-service
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 5.0.5 |
| Published | 2023-04-05 |
| First published | 2019-07-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 52.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 265 |
| Author | Quramy |
| Maintainers | quramy |
| Keywords | TypeScript, ESLint |

## Links

- npm: https://www.npmjs.com/package/typescript-eslint-language-service
- Repository: https://github.com/Quramy/typescript-eslint-language-service
- Homepage: https://github.com/Quramy/typescript-eslint-language-service#readme
- Issues: https://github.com/Quramy/typescript-eslint-language-service/issues
- npm.io page: https://npm.io/package/typescript-eslint-language-service

## 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

- 5.0.5 (latest) — 2023-04-05
- 5.0.4 — 2023-04-05
- 5.0.3 — 2023-03-28
- 5.0.2 — 2023-03-27
- 5.0.1 — 2023-03-27
- 5.0.0 — 2021-11-24
- 4.1.5 — 2021-08-13
- 4.1.4 — 2021-04-09
- 4.1.3 — 2020-12-30
- 4.1.2 — 2020-11-20
- 4.1.1 — 2020-10-26
- 4.1.0 — 2020-10-20
- 4.0.1 — 2020-09-09
- 4.0.0 — 2020-09-09
- 3.1.0 — 2020-08-15
- … 26 more at https://npm.io/package/typescript-eslint-language-service/versions

## README

# typescript-eslint-language-service

[![github actions](https://github.com/Quramy/typescript-eslint-language-service/workflows/build/badge.svg)](https://github.com/Quramy/typescript-eslint-language-service/actions)
[![npm version](https://badge.fury.io/js/typescript-eslint-language-service.svg)](https://badge.fury.io/js/typescript-eslint-language-service)
![deps](https://david-dm.org/quramy/typescript-eslint-language-service.svg)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/Quramy/ts-graphql-plugin/master/LICENSE.txt)

TypeScript language service plugin to check ESLint errors.

![Screencast](https://raw.githubusercontent.com/Quramy/typescript-eslint-language-service/master/cast.gif)

## Features

- Report ESLint errors as TypeScript semantic diagnostics
- Create code-fix for ESLint errors if they have fixer

## Usage

### Requirements (peer dependencies)

- `typescript`
- `@typescript-eslint/parser` >= 5.0.0
- `eslint` >= 8.0.0

### Install

```sh
npm install typescript-eslint-language-service -D
```

### Configure

And configure `plugins` section in your tsconfig.json, for example:

```json
{
  "compilerOptions": {
    "module": "commonjs",
    "target": "es5",
    "plugins": [
      {
        "name": "typescript-eslint-language-service"
      }
    ]
  }
}
```

It's ready to go. Launch your TypeScript IDE.

### Plugin options

```ts
type PluginOptions = {
  name: "typescript-eslint-language-service";
  watchDirs?: string[];
};
```

#### `watchDirs`

By default, this plugins watches only `.eslintrc.*` files that exist in your project root directory. If you want to watch other directories, add their names.

### Tips

- Set `TS_ESLINT_SERVICE_DISABLED` env parameter and restart your IDE to turn this plugin off.

### If you use older version of `ESLint` packages

- **If your eslint version is < 8.0.0, install `typescript-eslint-language-service@4.x.x`.**

### If you use older version of `@typescript-eslint` packages

- **If your @typescript-eslint tool's version is < 4.0.0, install `typescript-eslint-language-service@3.1.x`.**
- **If your @typescript-eslint tool's version is <= 3.4.0, install `typescript-eslint-language-service@3.0.x`.**
- **If your @typescript-eslint tool's version is <= 2.x.x, install `typescript-eslint-language-service@2.x.x`.**

## LICENSE

MIT

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