Vue运行出现问题Use // eslint-disable-next-line to ignore the next line. Use /* eslint-disable */ to ignore

Vue运行时出现如下问题

 WARNING  Compiled with 1 warnings                                                                                                                                          8:05:11 ├F10: AM┤


  ✘  https://google.com/#q=vue%2Frequire-v-for-key             Elements in iteration expect to have 'v-bind:key' directives
  src\components\SayHi.vue:11:9
          <li v-for="tech in technologies">
           ^

  ✘  http://eslint.org/docs/rules/no-multiple-empty-lines      More than 1 blank line not allowed
  src\components\SayHi.vue:29:1

   ^

  ✘  http://eslint.org/docs/rules/padded-blocks                Block must not be padded by blank lines
  src\components\SayHi.vue:31:3
    },
     ^

  ✘  http://eslint.org/docs/rules/space-before-function-paren  Missing space before function parentheses
  src\components\SayHi.vue:37:21
      say_hi: function(name) {
                       ^

  ✘  http://eslint.org/docs/rules/semi                         Extra semicolon
  src\components\SayHi.vue:38:26
        alert('hi:' + name);
                            ^5 problems (5 errors, 0 warnings)


Errors:
  1  https://google.com/#q=vue%2Frequire-v-for-key
  1  http://eslint.org/docs/rules/no-multiple-empty-lines
  1  http://eslint.org/docs/rules/padded-blocks
  1  http://eslint.org/docs/rules/space-before-function-paren
  1  http://eslint.org/docs/rules/semi

You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.

这是因为Eslint语法太严格导致的。
在这里插入图片描述

解决方案

在index.js中把useEslint改为false。
在这里插入图片描述

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值