From e8e9a402d6742d17066804d29a9def78cf8d58ad Mon Sep 17 00:00:00 2001 From: ramvignesh-b Date: Wed, 15 Apr 2026 13:20:05 +0530 Subject: [PATCH] chore: update pre-commit to include tsbuild check --- lefthook.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lefthook.yml b/lefthook.yml index 686a8cf..2895c42 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -18,3 +18,9 @@ pre-commit: glob: "**/*.{js,ts,jsx,tsx}" run: bunx @biomejs/biome check --write --no-errors-on-unmatched {staged_files} stage_fixed: true + + # Frontend: TypeScript + tsc: + root: "frontend/" + glob: "**/*.ts, **/*.tsx" + run: bunx tsc --noEmit --incremental --tsBuildInfoFile --ignoreConfig .tsbuildinfo {staged_files}