0.2.0 • Published 2 years ago

eslint-config-ts-parser-service v0.2.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

eslint-config-ts-parser-service

npm Package

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
  ]
}