- Advanced TypeScript Programming Projects
- Peter O'Hanlon
- 112字
- 2021-06-24 13:27:12
Formatting our code using tslint
Once we have created our application, we are using something called tslint, which analyzes our code by looking for potential problems. Note that support for this was automatically added when we created our application. The tslint version that runs applies a very aggressive set of rules against which we check our code. I have gone with the full set of tslint rules in my code base; however, if you want to relax the rules a bit, you just need to change the tslint.json file to something like the following:
{
"extends": [],
"defaultSeverity" : "warning",
"linterOptions": {
"exclude": [
"config/**/*.js",
"node_modules/**/*.ts",
"coverage/lcov-report/*.js"
]
}
}
推薦閱讀
- 電腦組裝與系統安裝
- Linux網絡管理與配置(第2版)
- Cybersecurity:Attack and Defense Strategies
- Linux運維實戰:CentOS7.6操作系統從入門到精通
- 玩到極致 iPhone 4S完全攻略
- Windows Vista融會貫通
- Linux Shell編程從入門到精通(第2版)
- Moodle 3.x Teaching Techniques(Third Edition)
- Android物聯網開發細致入門與最佳實踐
- Mastering Reactive JavaScript
- 從實踐中學習Kali Linux無線網絡滲透測試
- NetDevOps入門與實踐
- 鴻蒙HarmonyOS手機應用開發實戰
- Android應用性能優化最佳實踐
- CSS揭秘