nuxt / eslint

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

Error when overriding `nuxt/javascript` config #408

Closed markbrouch closed 5 months ago

markbrouch commented 5 months ago

Environment

Package

@nuxt/eslint

Reproduction

https://stackblitz.com/edit/github-xbgijp?file=eslint.config.mjs

Describe the bug

The .override('@eslint/js/recommended', {}) config does not work in nuxt dev tools eslint panel and gives the error:

Available names are: nuxt/javascript, nuxt/typescript/setup, nuxt/typescript/rules, nuxt/vue/setup, nuxt/vue/rules, nuxt/import/rules, nuxt/configs, nuxt/vue/single-root, nuxt/rules, nuxt/disables/routes, nuxt/import-globals

However, if I use nuxt/javascript, then the CLI gives the error:

Available names are: @eslint/js/recommended, nuxt/typescript/setup, nuxt/typescript/rules, nuxt/vue/setup, nuxt/vue/rules, nuxt/import/rules, nuxt/configs, nuxt/vue/single-root, nuxt/rules, nuxt/disables/routes, nuxt/import-globals

Additional context

Nuxt dev tools eslint panel doesn't seem to work in StackBlitz, but the StackBlitz link can be used to copy the eslint config to a local project for testing.

Logs

No response