Skip to content

Commit 77f5b02

Browse files
committed
add typecheck as npm cmd, pre-commit hook
1 parent a788b23 commit 77f5b02

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.githooks/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ set -e
44
set -o pipefail
55

66
npm run lint
7+
npm run typecheck

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"build": "tsc",
1818
"lint": "eslint --ext js,ts,tsx src",
1919
"lint:fix": "npm run lint -- --fix",
20+
"typecheck": "tsc --noEmit",
2021
"test": "jest --config jestconfig.json --passWithNoTests",
2122
"prepare": "npm run build",
2223
"prepublishOnly": "npm run test && npm run lint",

0 commit comments

Comments
 (0)