vue项目报错eslint-disable-next-line no-unused-vars

作为一个刚学vue的小白来说,vue是真的让人头大,好不容易搭好vue环境,结果在使用ElementUI时,又报错了
在这里插入图片描述
运行时报错eslint-disable-next-line no-unused-vars
解决方法:
在这里插入图片描述
其实是在项目中使用了eslint
在package.json中的"rules"加入

"generator-star-spacing": "off",
      "no-tabs":"off",
      "no-unused-vars":"off",
      "no-console":"off",
      "no-irregular-whitespace":"off",
      "no-debugger": "off"

在这里插入图片描述
应该不报错了,有说得不对的地方,希望多谅解!

猜你喜欢

转载自blog.csdn.net/Hyanl/article/details/106231939