fix(frontend): prettier config

This commit is contained in:
ryan
2026-07-13 15:04:28 +08:00
parent 85d5c8568c
commit 08e8eea932
7 changed files with 51 additions and 3 deletions
+9 -1
View File
@@ -40,6 +40,14 @@ GOCACHE=/tmp/openflare-go-cache go test ./...
make code-check
```
自动格式化后端 Go 与前端 TypeScript、JavaScript、CSS 等源码:
```bash
make prettier
```
该命令使用 `gofmt` 格式化后端,并使用项目固定版本的 Prettier 格式化 `frontend/` 源码;构建产物、依赖、公开静态资源和锁文件会被忽略。
## Frontend
开发:
@@ -155,4 +163,4 @@ pnpm dev
```bash
cd docs
pnpm build:embed
```
```