把App组件内容删除就报了三个错误
eslint编译导致这些错误都是空格引起的
1.error trailing spaces not allowed
这是export default{},default与括号之间没有加空格导致的
export default {//这里把空格加上就号了
}
2.Trailing spaces not allowed no-trailing-spaces
这是template模板中的空格导致的
3.expected indentation of 0 spaces but found 2
这是首行缩进空格导致的
下面这两个错误在.eslintrc.js文件中加入这两条规则
rules: {
"no-irregular-whitespace": "off",
"indent": ["off", 2]
}