Skip to content

Commit 2c72f32

Browse files
committed
Add lint tasks to Husky pre-commit hook
1 parent 319d67a commit 2c72f32

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎.husky/pre-commit‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ fi
1818
# Run TypeScript check (fast feedback on type errors)
1919
npm run check
2020

21+
# Run linters (fail fast on each)
22+
npm run lint:style
23+
npm run lint:code
24+
npm run lint:json
25+
2126
# Run unit tests (fast feedback)
2227
npm run test:unit
2328

0 commit comments

Comments
 (0)