Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nuxt 4 Support #479

Closed
offizium-berndstorath opened this issue Aug 14, 2024 · 3 comments
Closed

Nuxt 4 Support #479

offizium-berndstorath opened this issue Aug 14, 2024 · 3 comments

Comments

@offizium-berndstorath
Copy link

Environment

Package

None

Reproduction

Package is @nuxt/eslint-config issue form is outdated

Use new Nuxt 4 Folder Structure

Describe the bug

Component Button inside app/components/base/Button.vue throws error Component name "Button" should always be multi-word..
Using the old folder structure this doesn't throw because it shouldnt as the component would be used as BaseButton (which is multi word)

Additional context

No response

Logs

No response

@antfu
Copy link
Member

antfu commented Aug 14, 2024

Screenshot 2024-08-14 at 14 34 36

It seems to me the configs are correctly inferred. Please provide a minimal reproduction, thanks

@antfu
Copy link
Member

antfu commented Aug 14, 2024

We temporarily closed this due to the lack of enough information. We could not identify whether it was a bug or a userland misconfiguration with the given info.
Please provide a minimal reproduction to reopen the issue.
Thanks.

Why reproduction is required

@antfu antfu closed this as completed Aug 14, 2024
@offizium-berndstorath
Copy link
Author

@antfu https://github.com/offizium-berndstorath/eslint-repro
Running pnpm lint inside src results in

/eslint-test/src/app/components/base/Button.vue
  1:1  error  Component name "Button" should always be multi-word  vue/multi-word-component-names

/eslint-test/src/app/pages/index.vue
  1:1  error  Component name "index" should always be multi-word  vue/multi-word-component-names

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants