eslint-plugin-ts-parser-service
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