- 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.
推薦閱讀
- Microsoft Dynamics 365 Extensions Cookbook
- Manga Studio Ex 5 Cookbook
- C#完全自學教程
- Web交互界面設計與制作(微課版)
- 看透JavaScript:原理、方法與實踐
- Linux環境編程:從應用到內核
- Securing WebLogic Server 12c
- FLL+WRO樂高機器人競賽教程:機械、巡線與PID
- 零基礎輕松學SQL Server 2016
- C++寶典
- Hands-On JavaScript for Python Developers
- Mastering Adobe Captivate 7
- 從零開始:C語言快速入門教程
- 零基礎學Java(第5版)
- Java服務端研發知識圖譜