error Component name "Index" should always be multi-word vue/multi-word-component-names
时间: 2023-12-05 21:06:13 浏览: 78
根据引用和引用,错误信息"Component name "Index" should always be multi-word"是由eslint的规则"vue/multi-word-component-names"引发的。该规则要求组件名称应该是多个单词组成的。为了解决这个问题,你可以按照引用中的方法,在你的.eslintrc.js文件中的rules配置中添加以下代码:"vue/multi-word-component-names": "off"。这样就可以关闭名称校验,不再要求组件名称必须是多个单词组成的。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [在 vue eslint 报错 error “Component name “*****“ should always be multi-word”,该怎么办?](https://blog.csdn.net/qq_57587705/article/details/124674660)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [【Vue】在vue中命名的时候会遇到 component name “index“ should always be multi-word的解决方案](https://blog.csdn.net/Trees__/article/details/126190961)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文