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

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.

主站蜘蛛池模板: 天祝| 乌兰察布市| 乌拉特前旗| 额尔古纳市| 县级市| 大悟县| 渭源县| 陵水| 武城县| 泾川县| 乌审旗| 通山县| 罗田县| 汉川市| 宁海县| 沁阳市| 达孜县| 易门县| 湟源县| 滦平县| 黔西| 阿坝| 自贡市| 闵行区| 井冈山市| 嫩江县| 宜兰市| 育儿| 八宿县| 梁河县| 靖安县| 石河子市| 钦州市| 延吉市| 通化县| 黄龙县| 光泽县| 临城县| 自贡市| 北辰区| 遂川县|