关于VUE3.0中的ERROR Failed to compile with error报错 关闭掉eslint严格格式

在Vue3.0项目中遇到ERROR Failed to compile错误,主要是由于ESLint的严格格式检查导致。通过关闭ESLint的lintOnSave选项或者使用特殊注释来忽略警告。可以在根目录创建vue.config.js文件,设置lintOnSave为false,以禁用保存时的ESLint检查。若要自动修复代码格式,可以使用快捷键alt+shift+f。
摘要由CSDN通过智能技术生成

ERROR Failed to compile with 1 error 下午7:08:39

error in ./src/components/Shop.vue

Module Error (from ./node_modules/eslint-loader/index.js):

C:\Users\taoyu\Desktop\jingdongmodel\src\components\Shop.vue

15:1 error Expected indentation of 2 spaces but found 4 indent

15:10 error Missing space before value for key ‘name’ key-spacing

16:1 error Expected indentation of 2 spaces but found 4 indent

16:5 error Extra space after key ‘props’ key-spacing

16:14 error There should be no space after ‘[’ array-bracket-spacing

16:21 error There should be no space before ‘]’ array-bracket-spacing

17:1 error Expected indentation of 2 spaces but found 4 indent

17:10 error Missing space before function parentheses space-before-function-paren

18:1 error Trailing spaces not allowed no-trailing-spaces

19:1 error Expected indentation of 2 spaces but found 4 indent

19:6 error Unexpected trailing co

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值