- 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"
]
}
}
推薦閱讀
- pcDuino開發實戰
- 樂學Windows操作系統
- 發布!設計與部署穩定的分布式系統(第2版)
- Linux內核完全注釋(20周年版·第2版)
- Instant Optimizing Embedded Systems using Busybox
- 巧學活用Windows 7
- 細說Linux基礎知識
- Linux內核設計的藝術:圖解Linux操作系統架構設計與實現原理
- Windows 8實戰從入門到精通(超值版)
- Hadoop Real-World Solutions Cookbook
- Linux應用大全 基礎與管理
- iOS 10快速開發:18天零基礎開發一個商業應用
- 完美應用Ubuntu(第2版)
- 電腦辦公(Windows 7+Office 2016)入門與提高
- Linux從入門到精通