Skip to content

Commit 6f1eae1

Browse files
committed
chore: Add a cursorrule for prototypes
1 parent 3a873be commit 6f1eae1

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.cursor/rules/prototypes.mdc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
description: Prototypes and global extensions in the codebase
3+
globs: src/**/*.ts, src/**/*.tsx
4+
---
5+
6+
# Prototypes and Global Extensions
7+
8+
This project uses custom prototype extensions for built-in objects like `Array`, `String`, and `Number`.
9+
10+
Whenever you are working with these types, you **MUST** read `src/globals/prototypes.ts` to understand the available utility methods.
11+
12+
Do not reinvent these utilities or use more verbose alternatives when these are available. Always check the file for the most up-to-date list of prototypes.

0 commit comments

Comments
 (0)