我喜欢排除test
在 vscode 中使用 tslint 进行文件夹表单 linting。所以我在 tslint.json 配置文件中放置了一个排除项。不幸的是,排除语句不起作用。有谁知道如何设置排除吗?
{
"exclude": "tests/**/*.ts",
"rulesDirectory": ["node_modules/tslint-microsoft-contrib"],
"rules": {
"export-name": true,
...
}
}
最新更新:现在可以在 tslint.json 中设置(以下配置适用于 tslint 5.11)
{
"linterOptions": {
"exclude": [
"bin",
"build",
"config",
"coverage",
"node_modules"
]
}
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)