> For AI agents: the complete documentation index is available at https://vite-plugin-eslint2.modyqyw.top/zh/llms.txt, the full documentation bundle is available at https://vite-plugin-eslint2.modyqyw.top/zh/llms-full.txt.

# vite-plugin-eslint2

Vite 的 ESLint 插件

> 几分钟就能把 ESLint 接进 Vite 🚀

[起步 →](/zh/guide/getting-started) | [为什么用，为什么不用](/zh/guide/why) | [在 GitHub 查看](https://github.com/ModyQyW/vite-plugin-eslint2) | [Ask AI 🤖](https://deepwiki.com/ModyQyW/vite-plugin-eslint2)

## Features

- [🚀 **Vite 2-8，ESLint 7-10**](/zh/guide/getting-started): 支持的版本区间里任意组合都能用。插件本身要 Node.js 18，各个 ESLint 大版本另有自己的 Node.js 下限。
- [🧵 **不占主线程**](/zh/guide/options): 打开 lintInWorker，ESLint 在 worker 里跑，dev server 不卡，结果打到控制台。
- [🎨 **看得清的浮层**](/zh/guide/options): customOverlay 用 Shadow DOM 渲染错误和警告，不再把带 ANSI 颜色的终端输出塞进 Vite 原生浮层。
