5.0.5 • Published 1 year ago

typescript-eslint-language-service v5.0.5

Weekly downloads
3,982
License
MIT
Repository
github
Last release
1 year ago

typescript-eslint-language-service

github actions npm version deps GitHub license

TypeScript language service plugin to check ESLint errors.

Screencast

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

npm install typescript-eslint-language-service -D

Configure

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

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

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

Plugin options

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

5.0.5

1 year ago

5.0.4

1 year ago

5.0.3

1 year ago

5.0.2

1 year ago

5.0.1

1 year ago

5.0.0

2 years ago

4.1.5

3 years ago

4.1.4

3 years ago

4.1.3

3 years ago

4.1.2

3 years ago

4.1.1

4 years ago

4.1.0

4 years ago

4.0.1

4 years ago

4.0.0

4 years ago

3.1.0

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.1.8

4 years ago

2.1.6

4 years ago

2.1.5

4 years ago

2.1.4

4 years ago

2.1.3

4 years ago

2.1.2

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

1.4.1

4 years ago

2.0.0

4 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago