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

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"
]
}
}
主站蜘蛛池模板: 杭锦旗| 双牌县| 建德市| 文成县| 秭归县| 阳曲县| 克拉玛依市| 共和县| 苏尼特左旗| 乳山市| 繁昌县| 东乌珠穆沁旗| 三门峡市| 汝州市| 光泽县| 苏尼特左旗| 平顺县| 商洛市| 苍山县| 洛南县| 景德镇市| 长丰县| 新竹市| 海口市| 凌海市| 雅安市| 昌平区| 莱阳市| 金川县| 肥乡县| 安远县| 安宁市| 阿克苏市| 新绛县| 通山县| 达尔| 虹口区| 思南县| 西安市| 凤庆县| 永仁县|