vue-cli创建项目报错Component name "xxx" should always be multi-word
在项目的package.json中找到"eslintConfig"字段的"rules",添加"vue/multi-word-component-names":"off"
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/essential",
"eslint:recommended"
],
"parserOptions": {
"parser": "@babel/eslint-parser",
"requireConfigFile": false
},
"rules": {
"vue/multi-word-component-names":"off"
}
},
参考:ESLint官网