Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

TypeScript language service plugin for ESLint

License

NotificationsYou must be signed in to change notification settings

Quramy/typescript-eslint-language-service

Repository files navigation

github actionsnpm versiondepsGitHub 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 configureplugins 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

typePluginOptions={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

  • SetTS_ESLINT_SERVICE_DISABLED env parameter and restart your IDE to turn this plugin off.

If you use older version ofESLint packages

  • If your eslint version is < 8.0.0, installtypescript-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, installtypescript-eslint-language-service@3.1.x.
  • If your @typescript-eslint tool's version is <= 3.4.0, installtypescript-eslint-language-service@3.0.x.
  • If your @typescript-eslint tool's version is <= 2.x.x, installtypescript-eslint-language-service@2.x.x.

LICENSE

MIT

About

TypeScript language service plugin for ESLint

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors8


[8]ページ先頭

©2009-2025 Movatter.jp