Skip to content
项目

fi3ework/vite-plugin-checker

在 GitHub 查看

关于

💬 提供 TypeScript、ESLint、vue-tsc、Stylelint 等检查的 Vite 插件。

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
+2
15天
+3
1个月
+12

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

vite-plugin-checker

npm version npm downloads CI

A Vite plugin that runs TypeScript, vue-tsc, svelte-check, ESLint, Biome, oxlint, and Stylelint in worker threads. It reports problems in the terminal and in a browser overlay while you develop, and fails vite build when a check fails.

The vite-plugin-checker diagnostics page listing TypeScript and ESLint problems grouped by file

Quick start

Install the plugin and the checker you want to use:

npm install -D vite-plugin-checker typescript

Add it to your Vite config:

// vite.config.ts
import { defineConfig } from 'vite'
import checker from 'vite-plugin-checker'

export default defineConfig({
  plugins: [checker({ typescript: true })],
})

In a Svelte or SvelteKit project, the Svelte CLI can install the plugin and set up the svelte-check checker for you:

npx sv add vite-plugin-checker

Documentation

See the documentation for every checker, the overlay options, and recipes for Nuxt, Vitest, and backend integrations. Upgrading from 0.x? Read Migrating to v1.

The playground directory has an example project for each checker.

License

MIT License © 2022 fi3ework

探索相关项目

加载中…