Skip to content
This repository was archived by the owner on Aug 2, 2025. It is now read-only.

Commit e99b12f

Browse files
committed
test: lint-staged and parallel validate
1 parent d6974e2 commit e99b12f

File tree

4 files changed

+1966
-49
lines changed

4 files changed

+1966
-49
lines changed

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
33

4-
npm run validate
4+
npm run check-types && npx lint-staged

.lintstagedrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"*.+(js|ts|tsx)": [
3+
"eslint"
4+
],
5+
"*.+(js|json|ts|tsx)": [
6+
"prettier --write"
7+
]
8+
}

0 commit comments

Comments
 (0)