Seems very basic but I can't find anywhere an eslint setup that works with Nuxt3 auto-import, to avoid no-undef
errors. I'm not using typescript.
I tried the following packages: @antfu/eslint-config
, plugin:nuxt/recommended
, @nuxt/eslint-config
, @nuxtjs/eslint-config
, @nuxt/eslint-config-typescript
, with no luck so far.
The only thing that works for now is setting each reference in .eslintrc globals
...
npx @antfu/eslint-config@latest
. Read more on antfu/eslint-config. – Taal