-
Notifications
You must be signed in to change notification settings - Fork 15
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
Errors are repeated #111
Comments
@ricardogobbosouza We are seeing the same issue. While this also happens in earlier versions of Nuxt (e.g., 3.7.1), it is less noticable due to the way output is being written to the terminal (i.e., the multiple errors do not cause the text in the terminal to scroll) than it is in 3.7.2 and newer. Is it possible to get a fix for this issue? |
a big problem. especially with big projects. i tried to set lintOnStart to false to reduce the amount of repeating errors but it didn't do anything |
Same problem here.
|
I was able to disable it directly in the module section but not in a dedicated section for eslint. My current config: modules: [
// https://nuxt.com/modules/eslint
['@nuxtjs/eslint-module', { cache: false, lintOnStart: false }],
], |
@andrejp6k That's sort of beside the point. Yes, it is possible to prevent lint from running at startup but the point of this issue is that we want to run lint on startup but only have it print each error once at the end of the scan versus printing the errors multiple times. |
@andrejp6k Sorry, seeing your config made me focus on the modules: [
'@nuxt/devtools',
'@nuxtjs/eslint-module',
'@nuxtjs/i18n',
'@pinia/nuxt',
'@vueuse/nuxt',
'dayjs-nuxt',
],
...
eslint: {
cache: false,
exclude: [
'.nuxt',
'.output',
]
}, |
@robertpatrick I've noticed a comment that setting |
Unrelated to the problem at hand, I noticed your By the documentation It seems that the default including glob goes like this |
I'm getting a huge output from eslint with every error repeated a number of times. It shows fx.
✖ 61 problems (61 errors, 0 warnings) (repeated 42 times)
It's not always the same amount of repeats though.
I can reproduce it here with a very simple nuxt starter:
https://stackblitz.com/edit/nuxt-starter-aepdun?file=package.json,nuxt.config.ts,.eslintrc,app.vue
Notice the line
3:5 error Component name "NuxtWelcome" is not kebab-case vue/component-name-in-template-casing
is output twice.Now imagine that in a big project with hundreds of files.
The text was updated successfully, but these errors were encountered: