How to exclude a folder from tslint?

Deadly 提交于 2019-12-01 03:49:19

Latest update: this can now be set in in tslint.json (the following configuration works with tslint 5.11)

{
  "linterOptions": {
    "exclude": [
      "bin",
      "build",
      "config",
      "coverage",
      "node_modules"
    ]
  }
}
MBushveld

It seems that this is an open feature request. Further information can be found here: https://github.com/palantir/tslint/issues/73

Update: for those who use VSCode with tslint as editor/linting you can add the following to the VSCode config:

 // Configure glob patterns of file paths to exclude from linting
"tslint.exclude": "**/PATH_eg_TESTS/**/*.ts"
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!