Vite
Use Vite support from the lean v3 composer.
Install
Section titled “Install”pnpm add -D @santi020k/eslint-config-basic @santi020k/eslint-config-vite eslintnpm install -D @santi020k/eslint-config-basic @santi020k/eslint-config-vite eslintyarn add -D @santi020k/eslint-config-basic @santi020k/eslint-config-vite eslintbun add -d @santi020k/eslint-config-basic @santi020k/eslint-config-vite eslintConfigure
Section titled “Configure”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.
What It Adds
Section titled “What It Adds”- Browser runtime globals for Vite app code.
- Node runtime handling for
vite.config.*andvitest.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.