DEV Community

Cover image for How to resolve "multi-word vue/multi-word-component-names" issue in VueJs 3 default option.
Gayathri R
Gayathri R

Posted on • Edited on

12 2

How to resolve "multi-word vue/multi-word-component-names" issue in VueJs 3 default option.

Problem:-

While running the VueJs application failed with "Multi-word vue/multi-word-component-names" error.

/home/user/tutorials/animations-vuejs/src/components/HelloWorld.vue
  35:9  error  Component name "hello" should always be multi-word  vue/multi-word-component-names

✖ 1 problem (1 error, 0 warnings)

Enter fullscreen mode Exit fullscreen mode

Solution:-

This problem is due to the 'eslint' setting issues. By default, the linting rule is enabled in Vuejs (Default ([Vue 3] babel, eslint)).

You can resolve this problem in two ways,

Method - 1:

Rename the component name. Here in this case the component name provided is 'hello', you can change this as a multi-word like 'HelloWorld'.

export default {
  name: 'HelloWorld',
  props: {
    msg: String
  }
}
Enter fullscreen mode Exit fullscreen mode

Method - 2:

Disable the linting rule. By disabling the 'eslint' execute the below command.

$ npm remove @vue/cli-plugin-eslint

Top comments (0)

The best way to debug slow web pages cover image

The best way to debug slow web pages

Tools like Page Speed Insights and Google Lighthouse are great for providing advice for front end performance issues. But what these tools can’t do, is evaluate performance across your entire stack of distributed services and applications.

Watch video

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay