Vue3 报错:Component name "index" should always be multi-word vue/multi-word-component-names
0x00 问题描述
Vue3在编译的时候报错error Component name "index" should always be multi-word vue/multi-word-component-names。
0x01 解决方法
解决方法是关闭语法检查,在vue.config.js中增加下面配置
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true,
lintOnSave:false
})