前端项目启动时报错:Use // eslint-disable-next-line to ignore the next line

灰太狼 2024-03-26 22:47 118阅读 0赞

前端项目启动时报错:Use // eslint-disable-next-line to ignore the next line

首先说一下这个问题产生的原因:

  • 项目创建时设置了使用 eslint 进行代码规范检查。

解决办法:

  • 找到webpack.base.conf.js文件,并且将下满这行代码注释掉。
  • …(config.dev.useEslint ? [createLintingRule()] : []),
  • 具体位置如下图所示:
  • img

发表评论

表情:
评论列表 (有 0 条评论,118人围观)

还没有评论,来说两句吧...

相关阅读