eslint-config-ts-parser-service
v0.2.0
Published
Config with @typescript-eslint parser service
Downloads
6
Readme
eslint-config-ts-parser-service
Easily configure ESLint to use the @typescript-eslint parser service to resolve import paths.
Installation
npm i -D eslint-config-ts-parser-service
Set up the parser
Make sure you've got the @typescript-eslint/parser
and @typescript-eslint/eslint-plugin
working. Check out their documentations.
Features
Currently, this package only provides a resolver for import paths. More features may be added in the future.
Resolver
Let eslint-plugin-import
use the parser service to resolve import paths by simply extending your eslint config with ts-parser-service/resolver
. For example,
// .eslintrc.json
{
"extends": [
"eslint:recommended",
"ts-parser-service/resolver", // <- Add this
]
}