Vue中Eslint报错整理

错误提示:

1、缩进空格不规范,导致一场

EslintL Excepted indentation of 2 spaces but found 8 意思是只能有两个space,但是发现了8个,超出了6个的意思

EslintL Excepted indentation of 0 spaces but found 8 意思是只能有0个space,但是发现了8个,超出了8个的意思

总而言之,这两个异常基本都是超出了空间,如图:

Vue中Eslint报错整理

但是我把这个export缩紧两个空格,就不报错了,如下,这是占位符空间的问题

Vue中Eslint报错整理

2、

转载于:https://my.oschina.net/mdxlcj/blog/3001711