nuxt-eslint-auto-explicit-import
v0.1.1
Published
Auto insert explicit import from your Nuxt app
Downloads
990
Readme
Nuxt ESLint - Auto {Explicit} Import
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 :)
Setup
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
})