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
不要分号;
浙公网安备 33010602011771号