mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-06 18:36:55 +08:00
11 lines
310 B
Bash
11 lines
310 B
Bash
#!/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}'
|
|
|
|
# 可以加入一个Git命令来确保这些改动被包含在push中
|
|
git add . |