我是靠谱客的博主 优美蛋挞,这篇文章主要介绍1:1 error Component name “About“ should always be multi-word vue/multi-word-component-names解决代码规范,现在分享给大家,希望可以做个参考。

在启动vue项目时 出现错误:
1:1 error Component name “About” should always be multi-word vue/multi-word-component-names

原因是:语法检查的时候把不规范的代码(即命名不规范)当成了错误

解决方法:

在 vue.config.js文件中添加配置:lintOnSave: false, 如下:

const { defineConfig } = require(‘@vue/cli-service’)
module.exports = defineConfig({
transpileDependencies: true,
lintOnSave: false
})

最后

以上就是优美蛋挞最近收集整理的关于1:1 error Component name “About“ should always be multi-word vue/multi-word-component-names解决代码规范的全部内容,更多相关1:1内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(375)

评论列表共有 0 条评论

立即
投稿
返回
顶部