How to exclude a folder from tslint?

后端 未结 3 1914
陌清茗
陌清茗 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:14

    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"
        ]
      }
    }
    

提交回复
热议问题