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

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.

主站蜘蛛池模板: 宁阳县| 四川省| 金湖县| 威信县| 定陶县| 武清区| 沂南县| 临城县| 蓝田县| 甘谷县| 武平县| 绿春县| 徐水县| 旬邑县| 九台市| 贞丰县| 如皋市| 陇西县| 七台河市| 阿图什市| 建始县| 泸水县| 东丽区| 牙克石市| 广东省| 灵武市| 阿克陶县| 高雄市| 金山区| 吉安县| 谷城县| 南城县| 庆安县| 山丹县| 泸西县| 竹山县| 张家川| 米脂县| 古蔺县| 永丰县| 和田市|