- Learn React with TypeScript 3
- Carl Rippon
- 92字
- 2021-06-10 19:16:40
Excluding files
We can exclude files from the linting process. This is useful for excluding third-party code. We do this by specifying an array of files in an exclude field in the linterOptions field:
{
"extends": ["tslint:recommended"],
"linterOptions": {
"exclude": ["node_modules/**/*.ts"]
}
}
The preceding configuration excludes third-party node packages from the linting process.
Now that we've added TSLint to our tool belt, we are going to add another tool that will automatically format our code for us. This will help our code adhere to some of the code formattings TSLint rules.
推薦閱讀
- 一步一步學(xué)Spring Boot 2:微服務(wù)項目實戰(zhàn)
- 案例式C語言程序設(shè)計
- WebAssembly實戰(zhàn)
- PyTorch自動駕駛視覺感知算法實戰(zhàn)
- Oracle從新手到高手
- INSTANT MinGW Starter
- UML+OOPC嵌入式C語言開發(fā)精講
- Web Development with MongoDB and Node(Third Edition)
- 匯編語言編程基礎(chǔ):基于LoongArch
- Advanced UFT 12 for Test Engineers Cookbook
- Training Systems Using Python Statistical Modeling
- SSH框架企業(yè)級應(yīng)用實戰(zhàn)
- Shopify Application Development
- Visual C++程序設(shè)計全程指南
- Implementing Domain:Specific Languages with Xtext and Xtend