File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments