@routerhub/agent-rules 1.0.29 → 1.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.base.md +1 -0
- package/package.json +1 -1
package/AGENTS.base.md
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
## 样式与 UI 约束
|
|
21
21
|
|
|
22
22
|
- 新增或修改样式时,统一使用 `*.module.scss`,不要在业务页面新增普通 `.css` 样式。
|
|
23
|
+
- 在 React 项目中,新增样式必须使用 `scss` 实现;在 `tsx` 文件中统一通过 `style.xxx`(CSS Modules 导入对象)方式引用样式。
|
|
23
24
|
- `scss` 中的类名统一使用小驼峰命名(如 `topupButton`),不使用下划线或中划线。
|
|
24
25
|
- 不允许使用 `span` 标签选择器。
|
|
25
26
|
- 如果必须存在类名(历史代码场景),类名使用小驼峰命名,不使用下划线或中划线。
|