- 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.
推薦閱讀
- 新一代通用視頻編碼H.266/VVC:原理、標準與實現
- Learning Elixir
- R語言游戲數據分析與挖掘
- Blender 3D Incredible Machines
- Oracle GoldenGate 12c Implementer's Guide
- Python機器學習之金融風險管理
- Mastering SciPy
- Swift iOS Programming for Kids
- 信息學競賽寶典:基礎算法
- 匯編語言程序設計教程
- Swift語言實戰晉級(第2版)
- Access 2013數據庫應用案例課堂
- Android性能優化之道:從底層原理到一線實踐
- 自動化測試實戰寶典:Robot Framework+Python從小工到專家
- D3.js:Cutting-edge Data Visualization