[PR #203] [MERGED] style: format #865

Closed
opened 2026-03-03 01:06:34 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/certimate-go/certimate/pull/203
Author: @fudiwei
Created: 10/15/2024
Status: Merged
Merged: 10/16/2024
Merged by: @usual2970

Base: mainHead: main


📝 Commits (6)

📊 Changes

187 files changed (+2422 additions, -3982 deletions)

View changed files

.editorconfig (+10 -0)
📝 .github/ISSUE_TEMPLATE/bug_report.md (+4 -3)
📝 .github/ISSUE_TEMPLATE/feature_request.md (+2 -3)
📝 .github/workflows/push_image.yml (+1 -1)
📝 .gitignore (+10 -9)
.vscode/extensions.json (+6 -0)
.vscode/settings.json (+20 -0)
.vscode/settings.tailwind.json (+55 -0)
📝 CONTRIBUTING.md (+10 -6)
📝 CONTRIBUTING_EN.md (+9 -1)
📝 Dockerfile_build (+1 -1)
📝 Makefile (+1 -1)
📝 README.md (+28 -26)
📝 README_EN.md (+10 -10)
📝 docker/docker-compose.yml (+7 -7)
📝 internal/applicant/aliyun.go (+2 -2)
📝 internal/applicant/applicant.go (+10 -11)
📝 internal/applicant/cloudflare.go (+2 -1)
📝 internal/applicant/godaddy.go (+2 -2)
📝 internal/applicant/huaweicloud.go (+3 -3)

...and 80 more files

📄 Description

此 PR 无功能性更新或破坏性变化,旨在约束项目的团队协作编码规范。

#198


对于前端部分:

  • 引入了 EditorConfig,具体配置见 /.editorconfig
  • 引入了 Prettier,具体配置见 /ui/.prettierrc.cjs
  • 配置 VSCode,保存时自动触发格式化。
  • 使用 ESLint 重新格式化 /ui/ 目录下的全部代码文件。

除上述因代码格式化引发的文件变更外,还额外:

  • 移除了部分未使用的 SVG 图标资源。
  • 修正了部分 typo(诸如 Form 写成了 From 之类的)。
  • 调整了 import 顺序,将来自 node_modules 的依赖模块导入统一放至开头、本项目内的模块导入放至次位。
  • 规范了 import 方式,将本项目跨多级目录的模块导入由 import from '../x/y/z' 统一调整为 import from '@/x/y/z' 的路径别名形式。

对于后端部分:

  • 引入了 gofumpt
  • 配置 VSCode,保存时自动触发格式化(需开发者先自行 go install 安装 gofumpt,参见其仓库 README)。
  • 使用 gofumpt 重新格式化 /internal/ 目录下的全部代码文件。

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/certimate-go/certimate/pull/203 **Author:** [@fudiwei](https://github.com/fudiwei) **Created:** 10/15/2024 **Status:** ✅ Merged **Merged:** 10/16/2024 **Merged by:** [@usual2970](https://github.com/usual2970) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (6) - [`b0923d5`](https://github.com/certimate-go/certimate/commit/b0923d54ee387a35391b1e2348fa2cda55ae53ce) chore: config vscode eslint - [`7ef8853`](https://github.com/certimate-go/certimate/commit/7ef885319e9e08f0c6db636715f69ff86e5bfd7c) style: format - [`cf3de10`](https://github.com/certimate-go/certimate/commit/cf3de10effb51583d2e60c1f6e25caf4a811d87e) chore: config gofumpt - [`26be47d`](https://github.com/certimate-go/certimate/commit/26be47d07200f6f1e51b3037a5cad94e088da841) style: format - [`a4d1c9a`](https://github.com/certimate-go/certimate/commit/a4d1c9a7c095f4f9171e4cedd80250a1a3e013ca) Merge branch 'main' into main - [`0bc042a`](https://github.com/certimate-go/certimate/commit/0bc042ae31e225fea2dbab425ba62d2c0c4c53a9) Merge branch 'main' into main ### 📊 Changes **187 files changed** (+2422 additions, -3982 deletions) <details> <summary>View changed files</summary> ➕ `.editorconfig` (+10 -0) 📝 `.github/ISSUE_TEMPLATE/bug_report.md` (+4 -3) 📝 `.github/ISSUE_TEMPLATE/feature_request.md` (+2 -3) 📝 `.github/workflows/push_image.yml` (+1 -1) 📝 `.gitignore` (+10 -9) ➕ `.vscode/extensions.json` (+6 -0) ➕ `.vscode/settings.json` (+20 -0) ➕ `.vscode/settings.tailwind.json` (+55 -0) 📝 `CONTRIBUTING.md` (+10 -6) 📝 `CONTRIBUTING_EN.md` (+9 -1) 📝 `Dockerfile_build` (+1 -1) 📝 `Makefile` (+1 -1) 📝 `README.md` (+28 -26) 📝 `README_EN.md` (+10 -10) 📝 `docker/docker-compose.yml` (+7 -7) 📝 `internal/applicant/aliyun.go` (+2 -2) 📝 `internal/applicant/applicant.go` (+10 -11) 📝 `internal/applicant/cloudflare.go` (+2 -1) 📝 `internal/applicant/godaddy.go` (+2 -2) 📝 `internal/applicant/huaweicloud.go` (+3 -3) _...and 80 more files_ </details> ### 📄 Description 此 PR 无功能性更新或破坏性变化,旨在约束项目的团队协作编码规范。 > [#198](https://github.com/usual2970/certimate/pull/198#issuecomment-2412704695) --- 对于前端部分: - 引入了 EditorConfig,具体配置见 `/.editorconfig`。 - 引入了 Prettier,具体配置见 `/ui/.prettierrc.cjs`。 - 配置 VSCode,保存时自动触发格式化。 - 使用 ESLint 重新格式化 `/ui/` 目录下的全部代码文件。 除上述因代码格式化引发的文件变更外,还额外: - 移除了部分未使用的 SVG 图标资源。 - 修正了部分 typo(诸如 `Form` 写成了 `From` 之类的)。 - 调整了 `import` 顺序,将来自 `node_modules` 的依赖模块导入统一放至开头、本项目内的模块导入放至次位。 - 规范了 `import` 方式,将本项目跨多级目录的模块导入由 `import from '../x/y/z'` 统一调整为 `import from '@/x/y/z'` 的路径别名形式。 --- 对于后端部分: - 引入了 [gofumpt](https://github.com/mvdan/gofumpt)。 - 配置 VSCode,保存时自动触发格式化(需开发者先自行 `go install` 安装 gofumpt,参见其仓库 README)。 - 使用 gofumpt 重新格式化 `/internal/` 目录下的全部代码文件。 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 01:06:34 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/certimate#865
No description provided.