docs: update AGENTS.md outdated info

- Remove non-existent config/pageTheme.ts and config/theme.ts
- Update style guide from MUI sx to Tailwind CSS + shadcn/ui
- Replace MUI with Tailwind CSS and shadcn/ui in tech stack
This commit is contained in:
雨霖铃
2026-05-23 13:21:50 +08:00
parent df3eee8749
commit 0d60961a82
+3 -4
View File
@@ -44,8 +44,6 @@ Pre-commit hook (`.husky/pre-commit` 调用 `lint-staged`):
```
config/features.tsx # 功能定义(路由 + 元数据的单一事实来源)
config/pageTheme.ts # 页面级主题常量
config/theme.ts # MUI 全局主题
entrypoints/ # 扩展入口点 (popup/, options/, sidepanel/, background.ts, content.ts)
pages/ # 功能页面组件 (懒加载)
components/ # 可复用 UI 组件
@@ -101,7 +99,7 @@ Hook。Router 同时使用 `chrome.storage.local` 和 `localStorage` 做快照
- 禁止使用 `any` (测试文件除外)
- 未使用变量/参数: 使用 `_` 前缀 (如 `_unused`)
- 样式: 复杂页面样式放 `config/pageTheme.ts`,简单样式用 MUI `sx` prop
- 样式: 使用 Tailwind CSS + shadcn/ui (通过 `className``cn()` 工具)
- 格式: Prettier (`.prettierrc`: 100 字符宽, 单引号, 尾逗号 all, LF 换行)
- ESLint 使用 `typescript-eslint``projectService: true`(无需手动维护 project 路径)
@@ -109,7 +107,8 @@ Hook。Router 同时使用 `chrome.storage.local` 和 `localStorage` 做快照
- WXT: ^0.20.26
- React: ^19.2.6
- MUI: ^7.3.8
- Tailwind CSS: ^3.4.19
- shadcn/ui (基于 Radix UI + class-variance-authority)
- TypeScript: ^5.9.3
- Vitest: ^4.1.7
- i18next: ^26.2.0