@mallardbay/cursor-rules 1.0.31 → 1.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14,7 +14,9 @@ alwaysApply: false
|
|
|
14
14
|
- Functions: camelCase
|
|
15
15
|
- Constants: UPPER_SNAKE_CASE
|
|
16
16
|
- Types: PascalCase
|
|
17
|
-
-
|
|
17
|
+
- Exported functions/components should be defined before non-exported helpers
|
|
18
|
+
- Types should be defined at the bottom of files or moved into separate `types` files when reused across files
|
|
19
|
+
- Keep React component props near component definitions for readability
|
|
18
20
|
- PropTypes should be defined before component definitions
|
|
19
21
|
- Prefer using alias for importing components. Only use relative for tests or when there's a direct sibling
|
|
20
22
|
|
|
@@ -14,7 +14,9 @@ Be as strictly as possible where it delivers clear value—specifically in preve
|
|
|
14
14
|
|
|
15
15
|
### File Organization
|
|
16
16
|
|
|
17
|
-
-
|
|
17
|
+
- Keep exported functions/components before non-exported helpers
|
|
18
|
+
- Place most types at the bottom of files or in separate `types` files when shared across files
|
|
19
|
+
- Keep React component props near the component definition for readability
|
|
18
20
|
- Define PropTypes before component definitions
|
|
19
21
|
|
|
20
22
|
## Best Practices
|