Override eslint flat config issue
Not sure if this is a bug or if I'm doing it wrong since I'm new to eslint 9.0 flat configs, but...
I'm using the new nuxt eslint config (https://eslint.nuxt.com/) and I'm trying to override the
no-unused-vars
rule in my eslint.config.mjs file like this:
However, when I run eslint .
on my project I get an error saying: 'Error: ESLintFlatConfigUtils: Failed to locate config with name "nuxt/javascript"'. I can fix this problem by changing the override name to @eslint/js/recommended
, but this causes nuxt dev tools to show an error: 'Error: ESLintFlatConfigUtils: Failed to locate config with name "@eslint/js/recommended"'. It seems like dev tools and eslint are opposed with the names available, possibly due to some kind of aliasing under the hood?
For reference, these are the available names in nuxt dev tools:
And these are the available names to eslint from the CLI:
1 Reply
filed an issue here: https://github.com/nuxt/eslint/issues/408
GitHub
Error when overriding
nuxt/javascript
config · Issue #408 · nuxt/...Environment Operating System: Darwin Node Version: v18.16.1 Nuxt Version: 3.11.1 CLI Version: 3.11.1 Nitro Version: 2.9.4 Package Manager: [email protected] Builder: - User Config: rootDir, devtools, type...