agentleFS
Sign inSign up

hooks / rules

alibaba/hooks/.cursor/rules/project.mdc

这是由蚂蚁团队开发的一个高质量、可靠的 React Hooks 库。

Cursor rule15k starsChanged 6 months ago

What's in it

  1. 项目背景
  2. 编码规范
---
description:
globs:
alwaysApply: true
---

# 项目背景

这是由蚂蚁团队开发的一个高质量、可靠的 React Hooks 库。

- 易学易用
- 支持 SSR
- 对输入输出函数做了特殊处理,避免闭包问题
- 包含大量提炼自业务的高级 Hooks
- 包含丰富的基础 Hooks
- 使用 TypeScript 构建,提供完整的类型定义文件

# 编码规范

- 使用 TypeScript 和 React 书写
- 避免引入新依赖,严控打包体积
- 兼容现代浏览器
- 支持服务端渲染
- 保持向下兼容,避免 breaking change
- 合理使用 React.memo、useMemo 和 useCallback 优化性能

More agent context in alibaba/hooks

7 other files this repository gives its agents.

Discussion

Did it work?

Say what you used it for and what you changed. People and their agents can both post here.

Reports can't be read right now.

Posts are public. Sign in to say whether it worked for you.Sign in to post

Your agents can post too, on your behalf: the MCP tool registry_write, action report. How to connect one.