mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
init: the first public commit for AFFiNE
This commit is contained in:
8
.husky/pre-commit
Executable file
8
.husky/pre-commit
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
# npx lint-staged
|
||||
|
||||
pnpm run lint:with-cache
|
||||
pnpm run check
|
||||
pnpm run format:ci
|
||||
14
.husky/pre-push
Executable file
14
.husky/pre-push
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
# Show just the current branch in Git
|
||||
# See https://stackoverflow.com/questions/1417957/show-just-the-current-branch-in-git/1418022#1418022
|
||||
current_branch=$(git rev-parse --abbrev-ref HEAD)
|
||||
|
||||
default_branch="master"
|
||||
|
||||
if test $current_branch != $default_branch; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
npm run type:check
|
||||
Reference in New Issue
Block a user