Skip to content

Commit c0a1350

Browse files
t3dotggclaude
andcommitted
chore(tooling): pre-commit hook runs knip
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent d1449e2 commit c0a1350

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎vite.config.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ export default defineConfig({
151151
staged: {
152152
// In order, so lint reads the formatted file. CI lint failures cost a full round trip.
153153
"*": ["vp fmt --no-error-on-unmatched-pattern", "vp lint --no-error-on-unmatched-pattern"],
154+
// knip checks the whole repo, so it takes no file list. Any code or manifest change can leave
155+
// a file, export, or dependency unused.
156+
"{*.{js,jsx,ts,tsx,mjs,cjs,mts,cts},package.json,knip.jsonc}": () => "vp run knip:check",
154157
},
155158
fmt: {
156159
ignorePatterns: [

0 commit comments

Comments
 (0)