From dcfdf077e7270ce44f57052e16bc79cd77c4e94d Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Wed, 13 May 2026 14:22:43 -0700 Subject: [PATCH] Add staged pre-commit checks --- .vite-hooks/pre-commit | 1 + vite.config.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.vite-hooks/pre-commit b/.vite-hooks/pre-commit index 05b9080e..e0686b6a 100644 --- a/.vite-hooks/pre-commit +++ b/.vite-hooks/pre-commit @@ -1 +1,2 @@ vp lint +vp staged diff --git a/vite.config.ts b/vite.config.ts index 2b8e5e29..421e45f6 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,6 +1,9 @@ import { defineConfig } from "vite-plus"; export default defineConfig({ + staged: { + "*": "vp check --fix", + }, lint: { ignorePatterns: ["npm/**", "crates/yaak-templates/pkg/**", "**/bindings/gen_*.ts"], options: {