error Component name “Home“ should always be multi-word vue/multi-word-component-names
## errorComponent name "Home" should always be multi-wordvue/multi-word-component-names## ✖ 1 problem (1 error, 0 warnings)
·
error Component name “Home” should always be multi-word vue/multi-word-component-names
✖ 1 problem (1 error, 0 warnings)
You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.
报错的大概意思是: 组件名“Home”应该总是多字的vue/多字的组件名
命名错误
在vue.config.js里加一句lintOnSave: false
- 关闭 elsint 检测
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true,
lintOnSave: false
})
重新运行即可
更多推荐
已为社区贡献4条内容
所有评论(0)