nuxt-modules / eslint

ESLint module for Nuxt.js
MIT License
160 stars 15 forks source link

Module no longer recognizes types from top level options when using Nuxt 3.10 release #123

Closed cn-2k closed 6 months ago

cn-2k commented 7 months ago

When updating to nuxt 3.10 release the top level options from eslint module no longer regonizes types imported from the module.

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  devtools: { enabled: false },
  modules: [
    '@nuxtjs/eslint-module'
  ],
  eslint: {
    /* Can't have auto types here */
  }
})

I think that this issue is related to: https://nuxt.com/blog/v3-10#bundler-module-resolution (@danielroe)

Check this reproducible example on stackblitz: https://stackblitz.com/edit/nuxt-starter-d8a7lf?file=nuxt.config.ts