Skip to content

Vite

Use Vite support from the lean v3 composer.

bash
pnpm add -D @santi020k/eslint-config-basic @santi020k/eslint-config-vite eslint
import { defineConfig } from '@santi020k/eslint-config-basic'
export default await defineConfig({
frameworks: {
vite: 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.

  • Browser runtime globals for Vite app code.
  • Node runtime handling for vite.config.* and vitest.config.*.
  • Config-file relaxations for Vite plugins installed as dev dependencies.

Did this page help?

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