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

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"
]
}
}
主站蜘蛛池模板: 新竹市| 河间市| 仁怀市| 晋江市| 根河市| 中西区| 沭阳县| 东宁县| 吉水县| 常熟市| 教育| 临桂县| 界首市| 民和| 蕲春县| 南雄市| 革吉县| 图木舒克市| 乐陵市| 龙岩市| 嵊州市| 松溪县| 左云县| 辉南县| 嘉峪关市| 望都县| 广灵县| 聂荣县| 浦县| 瓦房店市| 九寨沟县| 雷山县| 临夏县| 同德县| 合肥市| 济阳县| 青海省| 马尔康县| 黄山市| 娱乐| 临江市|