Tslint - 忽略包含字符串的文件:“spec”?

Com*_*ode 5 typescript tslint typescript2.0

我需要忽略所有包含 spec int 名称的文件,例如 MyStuff.spec.ts

如何让 tslint 忽略此类文件?

Com*_*ode 3

在 tsconfig json 添加:

  "exclude":[
    "node_modules",
    "**/__test*", //exclude all that *__test*
    "**/*.spec.ts" // exclude all that contain "spec.ts" in name
  ]
Run Code Online (Sandbox Code Playgroud)