Skip to content

Commit 02fe849

Browse files
committed
0 Update CLAUDE.md
1 parent 72b7b03 commit 02fe849

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CLAUDE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,12 @@ public class ExampleComponentHandler implements ComponentHandler {
194194

195195
## Code Style and Best Practices
196196

197+
### Client ESLint sort-keys Rule
198+
- Object keys must be in natural ascending (alphabetical) order in client code
199+
- Applies to mock objects, hoisted state, test data, and component props
200+
- ESLint `--fix` does NOT auto-fix sort-keys - must be fixed manually
201+
- Example: `{content: 'x', id: 'y'}` not `{id: 'y', content: 'x'}`
202+
197203
### Variable Naming
198204
- Do not use short or cryptic variable names on both the server and client sides; prefer clear, descriptive names that communicate intent.
199205
- This applies everywhere, including arrow function parameters and loop variables.

0 commit comments

Comments
 (0)