nuxt-eslint-auto-explicit-import
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i nuxt-eslint-auto-explicit-import

Weekly Downloads

252

Version

0.1.1

License

MIT

Unpacked Size

5.22 kB

Total Files

9

Last publish

Collaborators

  • antfu