add obs checker

This commit is contained in:
2024-02-21 12:35:24 +08:00
parent cc778d22b4
commit 6317699f6c
10 changed files with 77 additions and 14 deletions

View File

@@ -1,9 +1,3 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
# 自动修复 ESLint 检测到的问题
npx eslint --fix 'src/**/*.{js,jsx,ts,tsx}' || true
# 使用 Prettier 格式化代码
npx prettier --write 'src/**/*.{js,jsx,ts,tsx,json,css,md}'