ESLint报错“Component name "Temp" s

2022-10-26  本文已影响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.

上一篇下一篇

猜你喜欢

热点阅读