@vta/eslint-config-typescript

2.0.0 • Public • Published

@vta/eslint-config-typescript

npm

A superset of @vta/eslint-config, add support for Typescript project, intergrated with @typescript-eslint

Install

yarn add @vta/eslint-config-typescript --dev

Usage

{
  "extends": ["@vta/typescript"]
}

We will firstly search tsconfig.eslint.json in your working directory to use for @typescript-eslint/parser, if cann't find , will use tsconfig.json, view detail.

if you want to use one specific tsconfig file,please use like this in your .eslintrc.json

{
  "parserOptions": {
    "project": "your tsconfig relative to working directory"
  }
}

All files that need to lint should list in your tsconfig file. If you want to lint react/vue or others files,please add them to your tsconfig's include

{
  "exclude": ["node_modules"],
  "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.js", "src/**/*.jsx", "src/**/*.vue"],
  "compilerOptions": {}
}

MIT License

Readme

Keywords

Package Sidebar

Install

npm i @vta/eslint-config-typescript

Weekly Downloads

0

Version

2.0.0

License

MIT

Unpacked Size

5.89 kB

Total Files

6

Last publish

Collaborators

  • vta