Expected indentation of 8 spaces but found 6

使用ESlint进行代码提示,经常报如下提示:
  ✘  http://eslint.org/docs/rules/key-spacing  Missing space before value for key 'variables'
  src\components\Admin\LogIn.vue:45:19
          variables:{
                     ^

或者

  ✘  http://eslint.org/docs/rules/indent       Expected indentation of 10 spaces but found 8
  src\components\Admin\LogIn.vue:48:1
          }
   ^
然后发现,最后还有关闭的办法
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.

在js头部添加如下,忽略避免不能进入正常测试环境

// eslint-disable-next-line
/* eslint-disable */ 

顺利进入

 DONE  Compiled successfully in 508ms                                                                                                             20:51:01

 I  Your application is running here: http://localhost:8080



你可能感兴趣的:(javascript,bugLog,tool,vue,eslint)