eslint-plugin-ts-parser-service
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

eslint-plugin-ts-parser-service

npm Package

Find the running @typescript-eslint parser service.

This adds a dummy TS rule to eslint that does nothing but expose the TS parser service.

Example

See eslint-import-resolver-ts-parser-service for a complete example.

// .eslintrc.json
{
  "extends": [
    "eslint:recommended",
    "plugin:@typescript-eslint/recommended",
    "plugin:ts-parser-service/listen", // <- spy
  ],
  "parser": "@typescript-eslint/parser",
  "plugins": [
    "@typescript-eslint",
  ],
  "root": true,
}
// index.ts
import { getParserServices } from 'eslint-plugin-ts-parser-service/listener';

getParserServices(); // -> TS ParserServices

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-plugin-ts-parser-service

Weekly Downloads

3

Version

0.2.0

License

ISC

Unpacked Size

4.92 kB

Total Files

10

Last publish

Collaborators

  • sliphua