使用Eslint检验项目报错 Component name xxx should always be multi-word vue/multi-word-component-names

使用Eslint检验项目报错“Component name “Error“ should always be multi-word“解决办法

编辑 .eslintrc.js

module.exports = {
  ……
  overrides: [
    {
      files: ['src/views/**/*.vue'],
      rules: {
        'vue/multi-word-component-names': 0,
      },
    },
  ]
}

posted @ 2022-03-17 11:50  柯宝宝智商感人  阅读(6770)  评论(0编辑  收藏  举报