Skip to content

Commit 8091768

Browse files
committed
ci(config): 增加提交前lint暂存区文件
1 parent bb95754 commit 8091768

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
"rimraf": "^5.0.1"
7979
},
8080
"simple-git-hooks": {
81+
"pre-commit": "npx esno scripts/lint-script.ts",
8182
"commit-msg": "npx esno scripts/cmv-script.ts"
8283
}
8384
}

0 commit comments

Comments
 (0)