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

相关文章:

  • 2021-12-13
  • 2022-12-23
  • 2021-09-18
  • 2022-01-05
  • 2021-05-19
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-17
  • 2022-01-08
  • 2022-12-23
  • 2022-02-12
  • 2021-08-07
  • 2021-10-29
  • 2021-07-14
相关资源
相似解决方案