TypeScript language service plugin for ESLint
MIT License
TypeScript language service plugin to check ESLint errors.
typescript
@typescript-eslint/parser
>= 5.0.0eslint
>= 8.0.0npm install typescript-eslint-language-service -D
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.
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.
TS_ESLINT_SERVICE_DISABLED
env parameter and restart your IDE to turn this plugin off.ESLint
packages[email protected]
.@typescript-eslint
packages[email protected]
.[email protected]
.[email protected]
.MIT