官术网_书友最值得收藏!

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"
]
}
}
主站蜘蛛池模板: 深水埗区| 什邡市| 台江县| 东台市| 白朗县| 施秉县| 宁化县| 诸暨市| 武清区| 防城港市| 蓬莱市| 乌拉特中旗| 芮城县| 嵩明县| 北安市| 五指山市| 阳城县| 凤冈县| 朝阳区| 庄浪县| 建宁县| 通许县| 贡觉县| 家居| 二连浩特市| 武陟县| 濉溪县| 株洲县| 揭阳市| 英超| 财经| 手游| 天柱县| 宁陵县| 安福县| 和田市| 牡丹江市| 郎溪县| 定远县| 修武县| 桑植县|