【问题标题】:error Unexpected console statement no-console Jhipster错误 Unexpected console statement no-console Jhipster
【发布时间】:2020-10-28 15:10:09
【问题描述】:

我知道以前有人问过这个问题,但我无法阅读该错误。 我正在使用 VS 代码、node.js 和 maven。当我运行 npm start 和 mvn 来运行我的项目时发生错误。

我尝试在 tslint.json、.eslintrc.json 或 package.json 中添加以下内容。

"rules": {
    "no-console": false
}

我是初级开发者,你能指导我完成这个吗?这是我项目的根文件的图片。

【问题讨论】:

  • 是添加console.log语句还是生成的?您也可以忽略特定文件中的规则。

标签: angular jhipster eslint tslint


【解决方案1】:

应该是:

"no-console": "off"

【讨论】:

    猜你喜欢
    • 2015-07-29
    • 1970-01-01
    • 2018-03-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-12-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多