美文网首页
ESLint报错“Component name "Temp" s

ESLint报错“Component name "Temp" s

作者: 我一不小心就 | 来源:发表于2022-10-26 01:15 被阅读0次

    解决方法有两种:

    修改eslint的配置规则:

        "rules": {
          "no-debugger": "off",
          "no-console": "off",
          "vue/multi-word-component-names": "off" //加上这一句尤其关键
        }
    


    Your linter just tells you, that your component name should be a multi word like MyTemp instead of just Temp.

    相关文章

      网友评论

          本文标题:ESLint报错“Component name "Temp" s

          本文链接:https://www.haomeiwen.com/subject/llgzzrtx.html