【问题标题】:tslint does not exclude files in tsconfig.json when using --projecttslint 使用 --project 时不排除 tsconfig.json 中的文件
【发布时间】:2018-09-07 05:01:55
【问题描述】:

我使用--project 指向我的tsconfig.json,其中我有一个exclude 属性,如下所示:

"exclude": [
  "foldertoexclude/**/*.ts"
]

但是,该文件夹仍在检查中。我做错了什么?

【问题讨论】:

    标签: tslint


    【解决方案1】:

    您可以尝试以下方法,看看是否有效:

    {
        // The following will hide the js and map files in the editor
        "files.exclude": {     
            "foldertoexclude":true
         }
    }
    

    【讨论】:

    • 抱歉,我不再从事该项目,因此无法测试您的代码。还是谢谢你!
    猜你喜欢
    • 2019-09-17
    • 2016-07-28
    • 2021-02-20
    • 2017-01-16
    • 1970-01-01
    • 2020-04-07
    • 2018-07-05
    • 2016-06-09
    • 2023-04-03
    相关资源
    最近更新 更多