eslint | 检查

expected space or tab after '//' in comment
注释后加一个空格

import in body of module; reorder to top
导入的样式 要放在前面

Expected indentation of 2 spaces but found 4 ...
一般是export default 这块的问题,不能要空格
不要空格太丑了,直接在 .eslintrc.js文件中加上: 'indent': 'off'
重新npm run serve 就可以了。

Missing space before function parentheses
方法需要一个空格
比如 data () {}
data后面是要一个空格的

Extra semicolon
不要分号;

posted @ 2021-03-18 11:06  五字妹妹实在是棒  阅读(151)  评论(0)    收藏  举报
返回顶部