Skip to content

Commit a7bdc11

Browse files
committed
chore(claude): document Set constructor argument sort rule
`new Set([...])` and `new SafeSet([...])` arguments are order-insensitive at runtime, so the source-order convention is alphanumeric — same rationale as Array literals (predictable diffs, no merge conflicts on insertions). Synced from socket-lib's canonical Sorting section.
1 parent 36596ae commit a7bdc11

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ Configs live in `.config/`:
220220
- Type properties: required first, then optional; alphabetical within groups
221221
- Class members: 1) private properties, 2) private methods, 3) public methods (alphabetical)
222222
- Object properties & destructuring: alphabetical (except semantic ordering)
223+
- `Set` constructor arguments: `new Set([...])` literals are alphanumeric (runtime is order-insensitive)
223224

224225
### Testing
225226

0 commit comments

Comments
 (0)