File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1919- TypeScript strict mode; ES2020+/ESNext modules.
2020- 2‑space indent, double quotes, named exports when practical.
2121- Files: kebab‑case; tests end with ` .test.ts ` ; entry files ` index.ts ` .
22- - Follow .windsurf style guide (imports grouped, explicit types for public APIs).
22+ - Group imports; use explicit types for public APIs.
23+ - Use ` node:crypto ` (` randomInt ` ) instead of ` Math.random() ` when selecting from security‑relevant sets (e.g. tip accounts, signers).
24+ - Type all external API responses with explicit interfaces; never leave ` fetch ` JSON as ` any ` .
25+ - Pre‑compute expensive objects (e.g. ` PublicKey ` ) at module level when the inputs are static constants.
2326
2427## Testing Guidelines
2528- Jest + ` ts-jest ` (Node env, ESM enabled).
You can’t perform that action at this time.
0 commit comments