Closed GaborTorma closed 21 minutes ago
I have the same issue although I use the v4-compat
template for my Nuxt app, so I had to modify the layers structure a bit.
So I think .playground/pages/**/*
and .playground/app/pages/**/*
should be included, or maybe there is nothing to be done if this use the new <rootDir>
and <srcDir>
structure from Nuxt 4.
You can fix it by applying this change: https://github.com/nuxt/starter/commit/9bddae690a91b852c078f1b2cb328af1b57d60b2 with the upgraded v0.7.2 of @nuxt/eslint
Environment
Build Modules: -
Base repo from nuxt layer template with the following command:
npx nuxi init --template layer nuxt-layer
Package
@nuxt/eslint
Reproduction
https://stackblitz.com/~/github.com/GaborTorma/nuxt-eslint-playground-error
You need to see on the console. Lint automatically runs.
Describe the bug
1.
vue/multi-word-component-name
ruleDefault this off on nuxt pages and layers folder, but it not working in
.playground
folder.pages/index.vue
has no error, but the same file in playground (.playground/pages/index.vue
) has error.2.
vue/no-multiple-template-root
ruleDefault this is error on nuxt pages and layers folder, but it not working in
.playground
folder.pages/multiple-template-root.vue
has error, but the same file in playground (.playground/pages/multiple-template-root.vue
) has no error.Additional context
The problem is the
nuxt/disables/routes
andnuxt/vue/single-root
use a generated files path instead of using a general glob path. The right one is the following:Logs