๐ VitePress
Use vite.configs.vitepress when your docs site is powered by VitePress and uses Vite client APIs such as import.meta.env and import.meta.glob.
This preset combines client-side env/glob safeguards with config checks that are also relevant in .vitepress/config.*.
Flat configโ
import vite from "@typpi/eslint-plugin-vite";
export default [vite.configs.recommended, vite.configs.vitepress];
When to use itโ
- your repository has a
.vitepress/config.*file - your VitePress theme/client code accesses
import.meta.env - your docs site loads modules or content with
import.meta.glob