mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-30 22:26:38 +08:00
fix(frontend): prettier config
This commit is contained in:
@@ -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
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user