Love auto imports but are concerned about the implicitness? This module is for you!
You can use composables anywhere as you would with auto import, and ESLint will insert the explicit import statement for you automatically.
This is a Nuxt module that extends the configuration for @nuxt/eslint
.
This could also be helpful if you are migrating away from implicit auto imports.
[!IMPORTANT] Experimental :)
npm i -D nuxt-eslint-auto-explicit-import @nuxt/eslint
export default defineNuxtConfig({
modules: [
// Both are required
'@nuxt/eslint',
'nuxt-eslint-auto-explicit-import'
],
})
// eslint.config.mjs
import withNuxt from './nuxt/eslint.config.mjs'
export default withNuxt({
// Your ESLint config
})