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

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"
]
}
}
主站蜘蛛池模板: 无为县| 屏边| 比如县| 筠连县| 乐清市| 曲沃县| 孟州市| 榕江县| 灵寿县| 衡阳县| 揭阳市| 西安市| 大埔区| 普定县| 磐安县| 武定县| 同江市| 周至县| 玛纳斯县| 潮安县| 迭部县| 安吉县| 古丈县| 泰宁县| 灯塔市| 哈尔滨市| 吉木乃县| 尼玛县| 青阳县| 寻乌县| 恩施市| 大渡口区| 山丹县| 新疆| 泽库县| 福安市| 泾川县| 江陵县| 辛集市| 金乡县| 苏尼特右旗|