Skip to content

Staged Config

vp staged and vp config read staged-file rules from the staged block in vite.config.ts. See the Commit hooks guide.

Example

ts
import { defineConfig } from 'vite-plus';

export default defineConfig({
  staged: {
    '*.{js,ts,tsx,vue,svelte}': 'vp check --fix',
  },
});