@@ -0,0 +1,4 @@
+#!/usr/bin/env sh
+. "$(dirname "$0")/h"
+
+npx --no-install commitlint --edit ""
@@ -0,0 +1,18 @@
+# 获取当前分支名
+branch_name=$(git rev-parse --abbrev-ref HEAD)
+echo "Current branch: $branch_name"
+# 检查是否在 main 或 pre 分支
+if [[ "$branch_name" == "main" || "$branch_name" == "pre" ]]; then
+ echo "Running full project type check and linting for branch $branch_name..."
+ npm run lint
+ npm run format
+ npm run tsc
+else
+ echo "Running staged files check for branch $branch_name..."
+ npx --no-install lint-staged
+fi
@@ -6,7 +6,7 @@ import { ThemeProvider } from './theme/theme-provider'
import { MotionLazy } from './components/animate/motion-lazy'
import Toast from './components/toast'
-const a: boolean = 1
+const a: boolean = 'a'
console.log(a + '2')
const { VITE_APP_TITLE: APPTITLE } = import.meta.env