bug随记

遵守ESLint,在项目中使用console后,yarn build报错,如下图。
ESLint 报错 error Unexpected console statement no-console

是不是觉得很不舒服,下面简单配置即可解决。
在package.json中的eslintConfig:{} 中的 “rules”:{},增加一行代码: “no-console”:“off”
ESLint 报错 error Unexpected console statement no-console

相关文章:

  • 2022-01-01
  • 2021-08-26
  • 2021-11-19
  • 2021-11-28
  • 2022-01-08
  • 2021-06-01
  • 2021-12-07
  • 2021-08-07
猜你喜欢
  • 2021-11-17
  • 2021-10-22
  • 2021-05-01
  • 2021-05-23
  • 2021-06-05
  • 2021-12-04
  • 2021-09-05
相关资源
相似解决方案