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

Excluding files

We can exclude files from the linting process. This is useful for excluding third-party code. We do this by specifying an array of files in an exclude field in the linterOptions field:

{
"extends": ["tslint:recommended"],
"linterOptions": {
"exclude": ["node_modules/**/*.ts"]
}
}

The preceding configuration excludes third-party node packages from the linting process.

Now that we've added TSLint to our tool belt, we are going to add another tool that will automatically format our code for us. This will help our code adhere to some of the code formattings TSLint rules.

主站蜘蛛池模板: 淮阳县| 盐源县| 仪征市| 内黄县| 新郑市| 珲春市| 乡宁县| 贵定县| 鹤山市| 莱西市| 平泉县| 古浪县| 龙海市| 崇信县| 平罗县| 固安县| 东阳市| 德庆县| 彭山县| 囊谦县| 玉屏| 上饶县| 平江县| 台南县| 静安区| 民县| 全椒县| 昂仁县| 青龙| 斗六市| 凌云县| 定日县| 华宁县| 井研县| 天全县| 定南县| 光泽县| 嘉义市| 龙陵县| 黄平县| 吉首市|