fb79a15508
- 添加 sections 定义文件,包含性能优化各领域分类 - 添加规则模板文件,规范文档结构和标签定义 - 添加异步操作优化规则,包括防止瀑布流、并行化、延迟等待等 - 添加包大小优化规则,包括避免桶式导入、动态导入、预加载等 - 添加服务端性能优化规则,包括 API 路
29 lines
631 B
Markdown
29 lines
631 B
Markdown
---
|
|
title: Rule Title Here
|
|
impact: MEDIUM
|
|
impactDescription: Optional description of impact (e.g., "20-50% improvement")
|
|
tags: tag1, tag2
|
|
---
|
|
|
|
## Rule Title Here
|
|
|
|
**Impact: MEDIUM (optional impact description)**
|
|
|
|
Brief explanation of the rule and why it matters. This should be clear and concise, explaining the performance implications.
|
|
|
|
**Incorrect (description of what's wrong):**
|
|
|
|
```typescript
|
|
// Bad code example here
|
|
const bad = example()
|
|
```
|
|
|
|
**Correct (description of what's right):**
|
|
|
|
```typescript
|
|
// Good code example here
|
|
const good = example()
|
|
```
|
|
|
|
Reference: [Link to documentation or resource](https://example.com)
|