@angular/cli 6.0 tslint teamcity 格式化不再起作用

@angular/cli 6.0 tslint teamcity formatting doesn't work anymore

在以前的@angular/cli版本中,我只是运行:ng lint --format tslint-teamcity-reporter,但这不再有效了。

在新的 angular.json 格式中,我尝试创建一个名为 teamcity:

的新配置

"lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { "tsConfig": ["src/tsconfig.app.json", "src/tsconfig.spec.json"], "exclude": ["**/node_modules/**"] }, "configurations": { "teamcity": { "format": "msbuild" } } }

但输出格式选项不包含与 TeamCity 相关的任何内容。如何添加以前使用的格式化程序?谢谢

从 Angular 版本 6.1(刚刚发布)开始,自定义格式化程序再次启用:-)

"configurations": {
    "ci": {
      "format": "tslint-teamcity-reporter"
    }
}