build: 集成基础配置

This commit is contained in:
陈凯龙
2021-12-07 16:36:59 +08:00
parent 5dbcf2397c
commit ced99de9b1
5 changed files with 32 additions and 0 deletions

10
.husky/pre-commit Normal file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
. "$(dirname "$0")/common.sh"
[ -n "$CI" ] && exit 0
# Format and submit code according to lintstagedrc.js configuration
npm run lint:lint-staged
npm run ts:check
npm run lint:pretty