Quramy / typescript-eslint-language-service

TypeScript language service plugin for ESLint
MIT License
246 stars 10 forks source link
editor-plugin eslint language-service plugin typescript

typescript-eslint-language-service

github actions npm version deps GitHub license

TypeScript language service plugin to check ESLint errors.

Screencast

Features

Usage

Requirements (peer dependencies)

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

If you use older version of ESLint packages

If you use older version of @typescript-eslint packages

LICENSE

MIT