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

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.

主站蜘蛛池模板: 建湖县| 黎城县| 中卫市| 宿州市| 汉川市| 南木林县| 河津市| 龙口市| 济阳县| 东莞市| 临朐县| 永春县| 吉水县| 娄底市| 商河县| 福州市| 西乌| 三河市| 同心县| 沙坪坝区| 汝南县| 平原县| 阜南县| 泾源县| 肥西县| 麻江县| 轮台县| 揭西县| 永仁县| 浏阳市| 阿克| 会昌县| 沙坪坝区| 镇安县| 兖州市| 呼图壁县| 南雄市| 芮城县| 和静县| 龙里县| 若尔盖县|