@vta/eslint-config-typescript
v2.0.0
Published
eslint config for Typescript project
Downloads
5
Readme
@vta/eslint-config-typescript
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": {}
}