diff --git a/lefthook.yml b/lefthook.yml index 668f877..d0cf91e 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -17,7 +17,7 @@ pre-push: run: yarn tsc --noEmit svelte-check: - run: yarn svelte-check --threshold warning + run: yarn check:shadcn-excluded --threshold warning format-check: glob: "*.{ts,js,svelte,json,md}" diff --git a/package.json b/package.json index 81c5592..b59f328 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "prepare": "svelte-check --tsconfig ./tsconfig.json || echo ''", "check": "svelte-check --tsconfig ./tsconfig.json", "check:watch": "svelte-check --tsconfig ./tsconfig.json --watch", + "check:shadcn-excluded": "svelte-check --no-tsconfig --ignore \"src/shared/shadcn\"", "lint": "oxlint", "format": "dprint fmt", "format:check": "dprint check",