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, and this page is available as Markdown at https://vite-plugin-eslint2.modyqyw.top/zh/index.md.
  • 简体中文
  • vite-plugin-eslint2

    vite-plugin-eslint2
    Vite 的 ESLint 插件

    几分钟就能把 ESLint 接进 Vite 🚀

    vite-plugin-eslint2vite-plugin-eslint2
    🚀

    Vite 2-8,ESLint 7-10

    支持的版本区间里任意组合都能用。插件本身要 Node.js 18,各个 ESLint 大版本另有自己的 Node.js 下限。

    🧵

    不占主线程

    打开 lintInWorker,ESLint 在 worker 里跑,dev server 不卡,结果打到控制台。

    🎨

    看得清的浮层

    customOverlay 用 Shadow DOM 渲染错误和警告,不再把带 ANSI 颜色的终端输出塞进 Vite 原生浮层。