mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-07 02:46:55 +08:00
format code
This commit is contained in:
@@ -1 +1,11 @@
|
||||
yarn test
|
||||
#!/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 .
|
||||
Reference in New Issue
Block a user