How to exclude a folder from tslint?

后端 未结 3 1911
陌清茗
陌清茗 2021-01-11 14:56

I like to exclude the test folder form linting with tslint in vscode. So I have placed an exclude into my tslint.json config file. Unfortunately the exclude sta

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-11 15:33

    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"
    

提交回复
热议问题