统一前端命名风格(API文件camelCase vs 页面目录kebab-case) #783

Closed
opened 2026-07-23 20:42:27 +08:00 by xiaoxia · 0 comments
Owner

问题描述

前端API文件用camelCase命名,页面目录用kebab-case命名,风格不统一,新人容易混淆。

目标

建立明确的命名规范并统一,提升代码一致性和可维护性。

验收标准

  • 全前端命名风格一致
  • 制定并发布前端命名规范文档
  • 配置ESLint/Stylelint规则自动检查
  • 存量文件按规范逐步迁移
## 问题描述 前端API文件用camelCase命名,页面目录用kebab-case命名,风格不统一,新人容易混淆。 ## 目标 建立明确的命名规范并统一,提升代码一致性和可维护性。 ## 验收标准 - [ ] 全前端命名风格一致 - [ ] 制定并发布前端命名规范文档 - [ ] 配置ESLint/Stylelint规则自动检查 - [ ] 存量文件按规范逐步迁移
xiaoxia added this to the 代码质量清理专项 milestone 2026-07-23 20:42:27 +08:00
xiaoxia added the frontendP2refactor labels 2026-07-23 20:42:27 +08:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: xiaoxia/xiaoxia-saas#783