Skip to content

Commit 96ff501

Browse files
committed
Run typecheck and lint on pre commit hook and cli
1 parent 046fc9f commit 96ff501

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
- uses: ./.github/actions/install-dependencies
2020
- run: pnpm clean
2121
- run: pnpm build
22+
- run: pnpm typecheck
23+
- run: pnpm lint
2224

2325
tests:
2426
name: Run all tests

lefthook.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ pre-commit:
33
prettier:
44
glob: '**/*.{js,jsx,ts,tsx,json,md,yml,yaml}'
55
run: pnpm prettier --write {staged_files} && git add {staged_files}
6+
lint:
7+
run: pnpm lint
8+
typecheck:
9+
run: pnpm typecheck
610
syncpack:
711
glob:
812
- "package.json"

0 commit comments

Comments
 (0)