Skip to content

Nuxt

Use Nuxt support from the lean v3 composer. Install the @santi020k/eslint-config-nuxt package.

bash
pnpm add -D @santi020k/eslint-config-basic @santi020k/eslint-config-nuxt @santi020k/eslint-config-vue eslint
import { defineConfig } from '@santi020k/eslint-config-basic'
export default await defineConfig({
frameworks: {
nuxt: true,
vue: true
},
typescript: true
})

With the required config packages installed, the one-line recommended entry auto-detects the framework; custom configs can use defineConfig() without a frameworks object — when Nuxt is detected, both the Nuxt and Vue configs are enabled automatically.

  • Nuxt-specific rules from @nuxt/eslint-plugin, including nuxt/prefer-import-meta.
  • Runtime-aware globals for server/ directory files and nuxt.config.*.
  • Composition through the same @santi020k/eslint-config-basic entry point as every other framework.
  • Compatibility with advanced overrides if you pass a custom config array or factory instead of true.
  • Pair this config with the Vue config — auto-detection handles this for you.
  • This framework package is a public, optional dependency in v3; the basic composer loads it only when enabled.

Did this page help?

One click helps us spot documentation that needs another pass. No personal data is sent.