【问题标题】:How to integrate eslint in angular with Jenkins build如何在 Angular 中将 eslint 与 Jenkins 构建集成
【发布时间】:2021-03-20 17:05:08
【问题描述】:

我在这里发现了一个类似的问题:

How to integrate Eslint with jenkins?

但是,我有一个使用 ESLint 进行 linting 的 Angular 项目, 并通过以下方式启动它:

npx ng lint projectname --format checkstyle > checkstyle-results.xml

不过这也包含了一些非xml的输出,所以无法解析结果。

【问题讨论】:

    标签: angular jenkins eslint checkstyle


    【解决方案1】:

    在您的通话中添加--silent 标志:

    npx ng lint projectname --format checkstyle --silent > checkstyle-result.xml
    

    【讨论】:

      猜你喜欢
      • 2015-11-09
      • 1970-01-01
      • 2016-01-22
      • 2015-08-20
      • 2020-04-04
      • 2017-12-07
      • 2011-10-02
      • 2021-09-08
      • 2019-04-02
      相关资源
      最近更新 更多