Skip to content

eslint之multi-word-component-names

例如报错提示:

Component name "Temp" should always be multi-word vue/multi-word-component-names
Component name "Temp" should always be multi-word vue/multi-word-component-names

这个的含义是组件命名不能为单字母,例如 hello.vue,建议改成多字母的形式,例如: helloWorld.vue

具体请参考:
vue/multi-word-component-names | eslint-plugin-vue

javascript - Component name "Temp" should always be multi-word vue/multi-word-component-names - Stack Overflow