Skip to content

Commit b415078

Browse files
committed
Update claude.md
1 parent cec6387 commit b415078

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CLAUDE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ You are a **Principal Software Engineer** responsible for:
7070
#### Vitest Memory Optimization (CRITICAL)
7171
- **Pool configuration**: Use `pool: 'forks'` with `singleFork: true`, `maxForks: 1`, `isolate: true`
7272
- **Memory limits**: Set `NODE_OPTIONS="--max-old-space-size=4096 --max-semi-space-size=512"` in `.env.test`
73-
- **Timeout settings**: Use `testTimeout: 60000, hookTimeout: 60000` for stability
73+
- **Timeout settings**: Use `testTimeout: 60_000, hookTimeout: 60_000` for stability
7474
- **Thread limits**: Use `singleThread: true, maxThreads: 1` to prevent RegExp compiler exhaustion
7575
- **Test cleanup**: 🚨 MANDATORY - Use `await trash([paths])` in test scripts/utilities only. For cleanup within `/src/` test files, use `fs.rm()` with proper error handling
7676

@@ -367,7 +367,7 @@ This is a TypeScript implementation of the Package URL (purl) specification for
367367
- Use direct assignment form when passing entire options object to other functions
368368
- **Examples**:
369369
- ✅ CORRECT: `const opts = { __proto__: null, ...options } as SomeOptions`
370-
- ✅ CORRECT: `const { timeout = 5000, retries = 3 } = { __proto__: null, ...options } as SomeOptions`
370+
- ✅ CORRECT: `const { retries = 3, timeout = 5_000 } = { __proto__: null, ...options } as SomeOptions`
371371
- ❌ FORBIDDEN: `const opts = { ...options }` (vulnerable to prototype pollution)
372372
- ❌ FORBIDDEN: `const opts = options || {}` (doesn't handle null prototype)
373373
-FORBIDDEN: `const opts = Object.assign({}, options)` (inconsistent pattern)
@@ -541,4 +541,4 @@ These standards apply across all Socket repositories:
541541
- `socket-registry`
542542
- `socket-sdk-js`
543543
544-
When working in any Socket repository, check CLAUDE.md files in other Socket projects for consistency and apply these patterns universally.
544+
When working in any Socket repository, check CLAUDE.md files in other Socket projects for consistency and apply these patterns universally.

0 commit comments

Comments
 (0)