@devflow-tools/plugin-react 0.1.0
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/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +496 -0
- package/dist/index.js.map +1 -0
- package/package.json +30 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,eAAO,MAAM,WAAW,EAAE,aA6fzB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,496 @@
|
|
|
1
|
+
export const reactPlugin = {
|
|
2
|
+
meta: {
|
|
3
|
+
name: "react",
|
|
4
|
+
version: "0.1.0",
|
|
5
|
+
description: "React 18 专家能力 — Bug 诊断、组件重构、性能优化、Hooks 审查",
|
|
6
|
+
icon: "⚛️",
|
|
7
|
+
tags: ["frontend", "react", "hooks", "jsx", "performance"],
|
|
8
|
+
},
|
|
9
|
+
knowledge: {
|
|
10
|
+
sources: [
|
|
11
|
+
{
|
|
12
|
+
name: "react-docs",
|
|
13
|
+
urls: [
|
|
14
|
+
"https://react.dev/reference/react",
|
|
15
|
+
"https://react.dev/reference/react/hooks",
|
|
16
|
+
"https://react.dev/learn",
|
|
17
|
+
],
|
|
18
|
+
pluginName: "react",
|
|
19
|
+
version: "18.3.1",
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
},
|
|
23
|
+
memory: {
|
|
24
|
+
project: {
|
|
25
|
+
stack: ["React 18", "React Router", "Zustand"],
|
|
26
|
+
conventions: [
|
|
27
|
+
{ key: "components", value: "使用函数组件 + Hooks", source: "manual", confidence: 0.9 },
|
|
28
|
+
{ key: "file-structure", value: "一个组件一个文件", source: "manual", confidence: 0.9 },
|
|
29
|
+
{ key: "props", value: "Props 使用 interface 定义", source: "manual", confidence: 0.8 },
|
|
30
|
+
{ key: "perf", value: "使用 React.memo 优化性能", source: "manual", confidence: 0.7 },
|
|
31
|
+
{ key: "hooks-naming", value: "自定义 Hooks 以 use 开头", source: "manual", confidence: 1.0 },
|
|
32
|
+
],
|
|
33
|
+
},
|
|
34
|
+
global: [
|
|
35
|
+
{
|
|
36
|
+
id: "react:hooks-rules",
|
|
37
|
+
source: "react",
|
|
38
|
+
title: "React Hooks 规则",
|
|
39
|
+
content: "只在最顶层调用 Hooks,不要在循环、条件或嵌套函数中调用。只在 React 函数组件或自定义 Hook 中调用 Hooks。",
|
|
40
|
+
embedding: [],
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
id: "react:useEffect-cleanup",
|
|
44
|
+
source: "react",
|
|
45
|
+
title: "useEffect 清理",
|
|
46
|
+
content: "useEffect 的返回值应为一个清理函数,用于取消订阅、清除定时器等副作用。React 18 在 Strict Mode 下会执行两次 useEffect 以帮助发现清理问题。",
|
|
47
|
+
embedding: [],
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
id: "react:rendering-optimization",
|
|
51
|
+
source: "react",
|
|
52
|
+
title: "渲染优化策略",
|
|
53
|
+
content: "使用 React.memo 避免不必要的重渲染。使用 useMemo 缓存计算结果,使用 useCallback 缓存回调函数。注意不要过早优化。",
|
|
54
|
+
embedding: [],
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
id: "react:error-boundary",
|
|
58
|
+
source: "react",
|
|
59
|
+
title: "错误边界模式",
|
|
60
|
+
content: "使用 ErrorBoundary 组件捕获渲染错误。配合 Suspense 处理异步加载。ErrorBoundary 只能捕获渲染期间的错误,不能捕获事件处理和异步代码中的错误。",
|
|
61
|
+
embedding: [],
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
id: "react:suspense-streaming",
|
|
65
|
+
source: "react",
|
|
66
|
+
title: "Suspense 与流式渲染",
|
|
67
|
+
content: "React 18 支持 Suspense 配合流式 SSR。使用 lazy() 动态导入组件。Suspense 的 fallback 在数据加载期间显示。结合 useDeferredValue 和 useTransition 优化用户体验。",
|
|
68
|
+
embedding: [],
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
},
|
|
72
|
+
workflow: {
|
|
73
|
+
steps: [],
|
|
74
|
+
templates: [
|
|
75
|
+
// ── Bug 诊断修复 ──
|
|
76
|
+
{
|
|
77
|
+
name: "bug-diagnosis",
|
|
78
|
+
description: "Bug 诊断修复流程:从报错到 PR 的完整链路",
|
|
79
|
+
version: "1.0.0",
|
|
80
|
+
steps: [
|
|
81
|
+
{
|
|
82
|
+
id: "capture-symptoms",
|
|
83
|
+
description: "收集错误信息(报错堆栈、Console、Network、截图)",
|
|
84
|
+
type: "simple",
|
|
85
|
+
timeout: 10000,
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
id: "locate-source",
|
|
89
|
+
description: "通过错误堆栈定位问题源文件",
|
|
90
|
+
type: "simple",
|
|
91
|
+
depends: ["capture-symptoms"],
|
|
92
|
+
timeout: 10000,
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
id: "git-recent-changes",
|
|
96
|
+
description: "查看最近相关文件的 Git 提交记录",
|
|
97
|
+
type: "simple",
|
|
98
|
+
depends: ["locate-source"],
|
|
99
|
+
timeout: 10000,
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
id: "analyze-deps",
|
|
103
|
+
description: "分析问题文件的依赖链路(上下游引用关系)",
|
|
104
|
+
type: "llm",
|
|
105
|
+
depends: ["locate-source"],
|
|
106
|
+
timeout: 15000,
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
id: "search-knowledge",
|
|
110
|
+
description: "搜索 React 官方文档中相关的 API 说明和最佳实践",
|
|
111
|
+
type: "simple",
|
|
112
|
+
depends: ["capture-symptoms"],
|
|
113
|
+
timeout: 10000,
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
id: "generate-fix",
|
|
117
|
+
description: "基于诊断信息生成修复方案",
|
|
118
|
+
type: "llm",
|
|
119
|
+
depends: ["git-recent-changes", "analyze-deps", "search-knowledge"],
|
|
120
|
+
timeout: 20000,
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
id: "type-check",
|
|
124
|
+
description: "运行 TypeScript 类型检查验证修复",
|
|
125
|
+
type: "simple",
|
|
126
|
+
depends: ["generate-fix"],
|
|
127
|
+
timeout: 30000,
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
id: "run-tests",
|
|
131
|
+
description: "运行相关测试用例确认修复有效",
|
|
132
|
+
type: "simple",
|
|
133
|
+
depends: ["type-check"],
|
|
134
|
+
timeout: 60000,
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
id: "human-review",
|
|
138
|
+
description: "人工审查修复方案并确认",
|
|
139
|
+
type: "manual",
|
|
140
|
+
depends: ["run-tests"],
|
|
141
|
+
timeout: 120000,
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
triggers: [
|
|
145
|
+
{ type: "cli", command: "bug" },
|
|
146
|
+
{ type: "mcp", tool: "diagnose_bug" },
|
|
147
|
+
],
|
|
148
|
+
},
|
|
149
|
+
// ── 新功能开发 ──
|
|
150
|
+
{
|
|
151
|
+
name: "new-feature",
|
|
152
|
+
description: "新功能开发流程:需求分析 → 代码 → 测试 → Review",
|
|
153
|
+
version: "1.0.0",
|
|
154
|
+
steps: [
|
|
155
|
+
{
|
|
156
|
+
id: "analyze-requirements",
|
|
157
|
+
description: "分析需求并拆解为可执行任务",
|
|
158
|
+
type: "llm",
|
|
159
|
+
timeout: 15000,
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
id: "impact-analysis",
|
|
163
|
+
description: "评估变更影响范围(哪些文件/模块会被影响)",
|
|
164
|
+
type: "llm",
|
|
165
|
+
depends: ["analyze-requirements"],
|
|
166
|
+
timeout: 15000,
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
id: "check-existing-patterns",
|
|
170
|
+
description: "检查项目中已有的类似实现模式",
|
|
171
|
+
type: "simple",
|
|
172
|
+
depends: ["analyze-requirements"],
|
|
173
|
+
timeout: 10000,
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
id: "implement",
|
|
177
|
+
description: "按照项目约定生成组件/Hook/类型代码",
|
|
178
|
+
type: "llm",
|
|
179
|
+
depends: ["impact-analysis", "check-existing-patterns"],
|
|
180
|
+
timeout: 30000,
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
id: "type-check",
|
|
184
|
+
description: "TypeScript 类型检查",
|
|
185
|
+
type: "simple",
|
|
186
|
+
depends: ["implement"],
|
|
187
|
+
timeout: 15000,
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
id: "write-tests",
|
|
191
|
+
description: "生成单元测试和集成测试",
|
|
192
|
+
type: "llm",
|
|
193
|
+
depends: ["implement"],
|
|
194
|
+
timeout: 20000,
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
id: "run-tests",
|
|
198
|
+
description: "运行全部测试确认通过",
|
|
199
|
+
type: "simple",
|
|
200
|
+
depends: ["type-check", "write-tests"],
|
|
201
|
+
timeout: 60000,
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
id: "code-review",
|
|
205
|
+
description: "自动代码审查 + 人工确认",
|
|
206
|
+
type: "manual",
|
|
207
|
+
depends: ["run-tests"],
|
|
208
|
+
timeout: 120000,
|
|
209
|
+
},
|
|
210
|
+
],
|
|
211
|
+
triggers: [
|
|
212
|
+
{ type: "cli", command: "feature" },
|
|
213
|
+
{ type: "mcp", tool: "new_feature" },
|
|
214
|
+
],
|
|
215
|
+
},
|
|
216
|
+
// ── 性能审计优化 ──
|
|
217
|
+
{
|
|
218
|
+
name: "performance-audit",
|
|
219
|
+
description: "性能审计:渲染分析 → 优化方案 → 基准对比",
|
|
220
|
+
version: "1.0.0",
|
|
221
|
+
steps: [
|
|
222
|
+
{
|
|
223
|
+
id: "profile-renders",
|
|
224
|
+
description: "使用 React DevTools Profiler 分析组件渲染次数和耗时",
|
|
225
|
+
type: "simple",
|
|
226
|
+
timeout: 20000,
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
id: "audit-memoization",
|
|
230
|
+
description: "检查 useMemo/useCallback/React.memo 使用情况",
|
|
231
|
+
type: "simple",
|
|
232
|
+
timeout: 15000,
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
id: "detect-rerenders",
|
|
236
|
+
description: "检测不必要的重渲染(props 引用变化、context 更新)",
|
|
237
|
+
type: "simple",
|
|
238
|
+
timeout: 15000,
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
id: "analyze-bundle",
|
|
242
|
+
description: "分析打包体积(大依赖、重复模块)",
|
|
243
|
+
type: "simple",
|
|
244
|
+
timeout: 20000,
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
id: "generate-report",
|
|
248
|
+
description: "生成性能分析报告和优化优先级排序",
|
|
249
|
+
type: "llm",
|
|
250
|
+
depends: ["profile-renders", "audit-memoization", "detect-rerenders", "analyze-bundle"],
|
|
251
|
+
timeout: 20000,
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
id: "apply-optimizations",
|
|
255
|
+
description: "应用优化(添加 memo、拆分组件、懒加载、虚拟列表)",
|
|
256
|
+
type: "llm",
|
|
257
|
+
depends: ["generate-report"],
|
|
258
|
+
timeout: 30000,
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
id: "benchmark-compare",
|
|
262
|
+
description: "优化前后渲染次数和打包体积对比",
|
|
263
|
+
type: "simple",
|
|
264
|
+
depends: ["apply-optimizations"],
|
|
265
|
+
timeout: 30000,
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
id: "approve-optimizations",
|
|
269
|
+
description: "人工确认优化方案",
|
|
270
|
+
type: "manual",
|
|
271
|
+
depends: ["benchmark-compare"],
|
|
272
|
+
timeout: 60000,
|
|
273
|
+
},
|
|
274
|
+
],
|
|
275
|
+
triggers: [
|
|
276
|
+
{ type: "cli", command: "perf" },
|
|
277
|
+
{ type: "mcp", tool: "audit_performance" },
|
|
278
|
+
],
|
|
279
|
+
},
|
|
280
|
+
// ── Hooks 审查修复 ──
|
|
281
|
+
{
|
|
282
|
+
name: "hook-review",
|
|
283
|
+
description: "Hooks 审查:规则检查 → 依赖分析 → 自动修复",
|
|
284
|
+
version: "1.0.0",
|
|
285
|
+
steps: [
|
|
286
|
+
{
|
|
287
|
+
id: "scan-all-hooks",
|
|
288
|
+
description: "扫描项目中所有 Hooks 调用位置",
|
|
289
|
+
type: "simple",
|
|
290
|
+
timeout: 15000,
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
id: "check-top-level",
|
|
294
|
+
description: "检查 Hooks 是否在顶层调用(不在条件/循环中)",
|
|
295
|
+
type: "simple",
|
|
296
|
+
timeout: 10000,
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
id: "audit-deps-arrays",
|
|
300
|
+
description: "检查 useEffect/useMemo/useCallback 依赖数组完整性",
|
|
301
|
+
type: "simple",
|
|
302
|
+
timeout: 15000,
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
id: "audit-cleanups",
|
|
306
|
+
description: "检查 useEffect 是否有缺少的清理函数",
|
|
307
|
+
type: "simple",
|
|
308
|
+
timeout: 10000,
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
id: "detect-anti-patterns",
|
|
312
|
+
description: "检测反模式(在渲染中创建组件、不必要的 useState、过大的 useEffect)",
|
|
313
|
+
type: "llm",
|
|
314
|
+
depends: ["scan-all-hooks"],
|
|
315
|
+
timeout: 15000,
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
id: "generate-review-report",
|
|
319
|
+
description: "生成审查报告,标注 Critical/Warning/Suggestion 等级",
|
|
320
|
+
type: "llm",
|
|
321
|
+
depends: ["check-top-level", "audit-deps-arrays", "audit-cleanups", "detect-anti-patterns"],
|
|
322
|
+
timeout: 20000,
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
id: "auto-fix-safe",
|
|
326
|
+
description: "自动修复安全的问题(补充缺失依赖、添加清理函数)",
|
|
327
|
+
type: "llm",
|
|
328
|
+
depends: ["generate-review-report"],
|
|
329
|
+
timeout: 20000,
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
id: "verify-fixes",
|
|
333
|
+
description: "运行 ESLint hooks 插件和类型检查确认修复",
|
|
334
|
+
type: "simple",
|
|
335
|
+
depends: ["auto-fix-safe"],
|
|
336
|
+
timeout: 30000,
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
id: "approve-fixes",
|
|
340
|
+
description: "人工审查高风险修复项",
|
|
341
|
+
type: "manual",
|
|
342
|
+
depends: ["verify-fixes"],
|
|
343
|
+
timeout: 120000,
|
|
344
|
+
},
|
|
345
|
+
],
|
|
346
|
+
triggers: [
|
|
347
|
+
{ type: "cli", command: "review:hooks" },
|
|
348
|
+
{ type: "mcp", tool: "review_hooks" },
|
|
349
|
+
],
|
|
350
|
+
},
|
|
351
|
+
// ── 组件重构 ──
|
|
352
|
+
{
|
|
353
|
+
name: "component-refactor",
|
|
354
|
+
description: "组件重构:复杂度评估 → 拆分建议 → 安全重构",
|
|
355
|
+
version: "1.0.0",
|
|
356
|
+
steps: [
|
|
357
|
+
{
|
|
358
|
+
id: "analyze-complexity",
|
|
359
|
+
description: "分析组件复杂度(行数、props 数量、Hooks 数量、嵌套层级)",
|
|
360
|
+
type: "simple",
|
|
361
|
+
timeout: 10000,
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
id: "identify-smells",
|
|
365
|
+
description: "识别代码异味(巨型组件、重复逻辑、过度耦合、魔法数字)",
|
|
366
|
+
type: "llm",
|
|
367
|
+
depends: ["analyze-complexity"],
|
|
368
|
+
timeout: 15000,
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
id: "propose-split",
|
|
372
|
+
description: "生成拆分方案(提取子组件、抽取自定义 Hooks、提取工具函数)",
|
|
373
|
+
type: "llm",
|
|
374
|
+
depends: ["identify-smells"],
|
|
375
|
+
timeout: 20000,
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
id: "extract-hooks",
|
|
379
|
+
description: "抽取可复用逻辑为自定义 Hooks",
|
|
380
|
+
type: "llm",
|
|
381
|
+
depends: ["propose-split"],
|
|
382
|
+
timeout: 15000,
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
id: "extract-components",
|
|
386
|
+
description: "拆分子组件并更新引用",
|
|
387
|
+
type: "llm",
|
|
388
|
+
depends: ["propose-split"],
|
|
389
|
+
timeout: 20000,
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
id: "update-imports",
|
|
393
|
+
description: "更新所有依赖此组件的 import 路径",
|
|
394
|
+
type: "simple",
|
|
395
|
+
depends: ["extract-components"],
|
|
396
|
+
timeout: 10000,
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
id: "regression-test",
|
|
400
|
+
description: "运行回归测试确保重构后行为一致",
|
|
401
|
+
type: "simple",
|
|
402
|
+
depends: ["extract-hooks", "extract-components", "update-imports"],
|
|
403
|
+
timeout: 60000,
|
|
404
|
+
},
|
|
405
|
+
],
|
|
406
|
+
triggers: [
|
|
407
|
+
{ type: "cli", command: "refactor" },
|
|
408
|
+
{ type: "mcp", tool: "refactor_component" },
|
|
409
|
+
],
|
|
410
|
+
},
|
|
411
|
+
// ── 新建组件(增强版) ──
|
|
412
|
+
{
|
|
413
|
+
name: "new-component",
|
|
414
|
+
description: "新建 React 组件(含类型、测试、样式、Storybook)",
|
|
415
|
+
version: "2.0.0",
|
|
416
|
+
steps: [
|
|
417
|
+
{
|
|
418
|
+
id: "check-existing",
|
|
419
|
+
description: "检查是否有可复用的现有组件",
|
|
420
|
+
type: "simple",
|
|
421
|
+
timeout: 5000,
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
id: "define-props",
|
|
425
|
+
description: "根据需求定义 TypeScript Props interface",
|
|
426
|
+
type: "llm",
|
|
427
|
+
timeout: 10000,
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
id: "create-component",
|
|
431
|
+
description: "生成组件代码(含 React.memo、错误处理、加载状态)",
|
|
432
|
+
type: "llm",
|
|
433
|
+
depends: ["define-props"],
|
|
434
|
+
timeout: 15000,
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
id: "create-styles",
|
|
438
|
+
description: "生成 CSS Module 样式文件",
|
|
439
|
+
type: "llm",
|
|
440
|
+
depends: ["create-component"],
|
|
441
|
+
timeout: 5000,
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
id: "create-tests",
|
|
445
|
+
description: "生成测试文件(渲染测试、交互测试、快照测试)",
|
|
446
|
+
type: "llm",
|
|
447
|
+
depends: ["create-component"],
|
|
448
|
+
timeout: 15000,
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
id: "type-check",
|
|
452
|
+
description: "TypeScript 类型检查",
|
|
453
|
+
type: "simple",
|
|
454
|
+
depends: ["create-component", "create-styles"],
|
|
455
|
+
timeout: 10000,
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
id: "lint-check",
|
|
459
|
+
description: "运行 ESLint 检查",
|
|
460
|
+
type: "simple",
|
|
461
|
+
depends: ["type-check"],
|
|
462
|
+
timeout: 10000,
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
id: "run-tests",
|
|
466
|
+
description: "运行组件测试",
|
|
467
|
+
type: "simple",
|
|
468
|
+
depends: ["create-tests", "lint-check"],
|
|
469
|
+
timeout: 15000,
|
|
470
|
+
},
|
|
471
|
+
],
|
|
472
|
+
triggers: [
|
|
473
|
+
{ type: "cli", command: "new:component" },
|
|
474
|
+
{ type: "mcp", tool: "new_component" },
|
|
475
|
+
],
|
|
476
|
+
},
|
|
477
|
+
],
|
|
478
|
+
},
|
|
479
|
+
prompt: {
|
|
480
|
+
system: "你是一个 React 18 专家。使用函数组件、Hooks 和 TypeScript。遇到问题先查文档再给方案,不凭空猜测 API 行为。",
|
|
481
|
+
rules: [
|
|
482
|
+
"使用函数组件 + Hooks,不使用 Class 组件",
|
|
483
|
+
"每个文件只导出一个组件",
|
|
484
|
+
"Props 使用 TypeScript interface 定义",
|
|
485
|
+
"使用 React.memo 优化纯展示组件",
|
|
486
|
+
"自定义 Hooks 命名以 use 开头",
|
|
487
|
+
"避免在渲染中创建新对象/函数(使用 useMemo / useCallback)",
|
|
488
|
+
"遇到不确定的 API 时先查 React 官方文档再回答",
|
|
489
|
+
"修复 Bug 前先查 git log 找最近变更",
|
|
490
|
+
"生成代码后必须通过 TypeScript 类型检查",
|
|
491
|
+
"不能凭记忆猜测 API 行为,必须基于当前项目版本",
|
|
492
|
+
],
|
|
493
|
+
},
|
|
494
|
+
tools: [],
|
|
495
|
+
};
|
|
496
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAkB;IACxC,IAAI,EAAE;QACJ,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,OAAO;QAChB,WAAW,EAAE,2CAA2C;QACxD,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,CAAC;KAC3D;IAED,SAAS,EAAE;QACT,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE;oBACJ,mCAAmC;oBACnC,yCAAyC;oBACzC,yBAAyB;iBAC1B;gBACD,UAAU,EAAE,OAAO;gBACnB,OAAO,EAAE,QAAQ;aAClB;SACF;KACF;IAED,MAAM,EAAE;QACN,OAAO,EAAE;YACP,KAAK,EAAE,CAAC,UAAU,EAAE,cAAc,EAAE,SAAS,CAAC;YAC9C,WAAW,EAAE;gBACX,EAAE,GAAG,EAA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AY;wBAChB,WAAW,EAAE,cAAc;wBAC3B,IAAI,EAAE,QAAiB;wBACvB,OAAO,EAAE,CAAC,YAAY,CAAC;wBACvB,OAAO,EAAE,KAAK;qBACf;oBACD;wBACE,EAAE,EAAE,WAAW;wBACf,WAAW,EAAE,QAAQ;wBACrB,IAAI,EAAE,QAAiB;wBACvB,OAAO,EAAE,CAAC,cAAc,EAAE,YAAY,CAAC;wBACvC,OAAO,EAAE,KAAK;qBACf;iBACF;gBACD,QAAQ,EAAE;oBACR,EAAE,IAAI,EAAE,KAAc,EAAE,OAAO,EAAE,eAAe,EAAE;oBAClD,EAAE,IAAI,EAAE,KAAc,EAAE,IAAI,EAAE,eAAe,EAAE;iBAChD;aACF;SACF;KACF;IAED,MAAM,EAAE;QACN,MAAM,EAAE,uEAAuE;QAC/E,KAAK,EAAE;YACL,6BAA6B;YAC7B,aAAa;YACb,kCAAkC;YAClC,uBAAuB;YACvB,sBAAsB;YACtB,0CAA0C;YAC1C,8BAA8B;YAC9B,0BAA0B;YAC1B,2BAA2B;YAC3B,2BAA2B;SAC5B;KACF;IAED,KAAK,EAAE,EAAE;CACV,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@devflow-tools/plugin-react",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "tsc -b",
|
|
15
|
+
"test": "vitest run",
|
|
16
|
+
"typecheck": "tsc --noEmit",
|
|
17
|
+
"clean": "rm -rf dist"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@devflow-tools/sdk": "*"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"typescript": "^5.5.0",
|
|
24
|
+
"vitest": "^2.0.0"
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"dist"
|
|
28
|
+
],
|
|
29
|
+
"gitHead": "4cede97fc7fc673f929427fac169acab100ca8ed"
|
|
30
|
+
}
|