Skip to content

Commit 8cd70eb

Browse files
chore: add cursor rules (#1423)
* chore: add cursor rules * chore: update test
1 parent 0f38aef commit 8cd70eb

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.cursor/rules/basic.mdc

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
description:
3+
globs:
4+
alwaysApply: true
5+
---
6+
7+
# Ant Design Web3 project basic rules
8+
9+
## Project Introduction
10+
- This project is a React component built on the Ant Design component library, primarily designed to provide Web3 projects with wallet connection capabilities and some common DApp UI components.
11+
- It is a multi-package project. The UI components are located under `packages/web3`, while other packages include adapters for different blockchains or some foundational packages.
12+
13+
## Style
14+
- The styles for each component are located in the `style/index.ts` or `style/index.tsx` directory within the component's folder.
15+
- The styling is implemented based on `@ant-design/cssinjs` and utilizes Ant Design's Design Tokens to better support custom styling.
16+
17+
## Demo and Documents
18+
- The styles and documentation for the entire project are located in the `packages/web3` directory, with some special notes as follows:
19+
- The documentation for `packages/wagmi` is located under `packages/web3/ethereum`.
20+
- Demos can be found in the `packages/web3/*/demos` directories.
21+
- Documentation is available in `packages/web3/*/index.md` and `packages/web3/*/index.zh-CN.md`.
22+
23+
## Unit Test
24+
- Unit tests are based on Vitest.
25+
- Test code is located in the `__tests__` folder, which may contain unit tests.

0 commit comments

Comments
 (0)