Skip to content

Vite

Use Vite support from the main v2 package.

bash
pnpm add -D @santi020k/eslint-config-basic

The default install above remains recommended. If you use the manual-dependency lite package, install this framework config package too:

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

Most projects can also rely on auto-detection and use eslintConfig() with no framework 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.