NuxtN
Nuxt14mo ago
Jure

Basic nuxt/eslint configuration

I have fresh Nuxt project with only @nuxt/eslint module and some things are bothering me regarding the configuration...

Module was added to Nuxt with: npx nuxi module add eslint

This add dependency under the "dependencies" and not under the "devDependencies" like this command would if following documentation for manual setup:

pnpm add -D @nuxt/eslint eslint typescript

Is this a problem with nuxi command... since this is a dev dependency, isn't it?


Another thing is no-undef eslint rule which is showing error for defineNuxtConfig and I guess al other globals.

I have manually disabled the rule in eslint.config.mjs file... But shouldn't be this disabled by default because of all the auto-imports enabled by default?
Screenshot_2024-11-01_at_16.39.45.png
Screenshot_2024-11-01_at_16.38.41.png
Was this page helpful?