Component name "aside" should always be multi-word vue/multi-word-component-names
时间: 2023-12-05 10:07:57 浏览: 146
根据引用中提供的参考文章,解决这个问题的方法是在项目的.eslintrc.js文件中进行配置。具体地,可以使用overrides属性来对指定的文件进行规则的覆盖。在这种情况下,可以通过添加以下代码到.eslintrc.js文件中来禁用vue/multi-word-component-names规则:
```javascript
module.exports = {
// ...
overrides: [
{
files: ['src/views/**/*.vue'],
rules: {
'vue/multi-word-component-names': 0,
},
},
],
};
```
这样配置后,Component name "aside" should always be multi-word的错误将不再出现。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Vue报错【已解决】【Component name “xxx“ should always be multi-word vue/multi-word-component-names】](https://blog.csdn.net/m0_62742402/article/details/127668141)[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_2"}}] [.reference_item style="max-width: 50%"]
- *3* [Eslint检验项目报错 Component name xxx should always be multi-word vue/multi-word-component-names解决...](https://blog.csdn.net/august_shi/article/details/129879133)[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_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文