New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰 eslint vue/multi-word-component-names naming limitation for routes #192
Comments
My workaround is to use a
See: vuejs/eslint-plugin-vue#245 But I find it sub optimal. |
What about the |
You can disable it in
This example file is with |
Thank you all, your comments have been very helpfull |
Versions
Reproduction
I tried to add a codesandbox link but this is an error during build that would not show on console
Steps to reproduce
/layouts
,/components
or/pages
error Component name "name" should always be multi-word
What is Expected?
For example if I create
pages/home.vue
orpages/home/index.vue
then I should be able to go tohttp://localhost:3000/home
according to the docsAlso according to docs I should be able to create
layouts/default.vue
What is actually happening?
During build it shows the error I mentioned before
If I rename my component to VHome.vue then it works but it's not ideal since that changes my route too
Current workaround
I changed my Nuxt version to v2.15.7 and it worked, it built and the routes were how I wanted. However if I upgrade to the latest version of Nuxt, I can go to
.eslintrc.js
and set:However this is not convenient because I have to put the name of every single file in the array
馃挅 Thank you for taking the time to review this, lmk if I can provide more information
The text was updated successfully, but these errors were encountered: