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

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.

主站蜘蛛池模板: 荥经县| 桂平市| 吴江市| 镇江市| 化州市| 花垣县| 西盟| 专栏| 大化| 甘肃省| 美姑县| 宜昌市| 博爱县| 光山县| 万全县| 焦作市| 宝山区| 巴青县| 商河县| 隆子县| 洮南市| 互助| 宝应县| 普格县| 台湾省| 图木舒克市| 思茅市| 惠水县| 翼城县| 昌图县| 顺义区| 城市| 丹寨县| 云梦县| 昌邑市| 通州区| 英吉沙县| 尚志市| 宜州市| 阜南县| 金秀|