0.1.1 • Published 8 months ago

nuxt-eslint-auto-explicit-import v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Nuxt ESLint - Auto {Explicit} Import

npm version npm downloads License Nuxt

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.

example commit

!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
})
0.1.1

8 months ago

0.1.0

9 months ago

0.0.2

1 year ago

0.0.1

1 year ago