关于前端:eslint语法报错导致vue项目运行报错

ERROR in [eslint] 
/Users/yangqing/Vue/v6/code/component/src/components/Left.vue
  1:1  error  Component name "Left" should always be multi-word  vue/multi-word-component-names

解决办法:

// 增加组件命名疏忽规定
    "vue/multi-word-component-names": ["error",{
      "ignores": ["Left","Right"]  //在这个数组中退出须要疏忽的组件名
    }],
    "no-unused-vars":"off"

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理