nuxt / eslint

Collection of ESLint-related packages for Nuxt
https://eslint.nuxt.com
MIT License
539 stars 64 forks source link

Nuxt 4 Support #479

Closed offizium-berndstorath closed 1 month ago

offizium-berndstorath commented 1 month ago

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 commented 1 month ago
Screenshot 2024-08-14 at 14 34 36

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

antfu commented 1 month ago

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

offizium-berndstorath commented 1 month ago

@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