Tslint - 忽略包含字符串的文件:"spec"?
Tslint - ignore files containing string: "spec"?
我需要忽略所有包含 spec int 名称的文件,例如 MyStuff.spec.ts
如何让 tslint 忽略此类文件?
在 tsconfig json 添加:
"exclude":[
"node_modules",
"**/__test*", //exclude all that *__test*
"**/*.spec.ts" // exclude all that contain "spec.ts" in name
]
我需要忽略所有包含 spec int 名称的文件,例如 MyStuff.spec.ts
如何让 tslint 忽略此类文件?
在 tsconfig json 添加:
"exclude":[
"node_modules",
"**/__test*", //exclude all that *__test*
"**/*.spec.ts" // exclude all that contain "spec.ts" in name
]