@iamdevlinph/codex-kit 1.0.23 → 1.0.24
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.
- package/assets/TEMPLATE_AGENTS.md +18 -0
- package/package.json +1 -1
|
@@ -148,6 +148,24 @@ conditional procedures into validated project skills.
|
|
|
148
148
|
- Do not reorganize feature directories, shared modules, routes, server
|
|
149
149
|
boundaries, schemas, or state patterns unless requested and approved.
|
|
150
150
|
|
|
151
|
+
## React And React Native TypeScript Naming
|
|
152
|
+
|
|
153
|
+
- In React, React Native, and Expo projects using TypeScript, use `kebab-case`
|
|
154
|
+
for code-owned file and directory names. Preserve framework-mandated and
|
|
155
|
+
contract-derived names, including Expo Router notation and React Native
|
|
156
|
+
platform suffixes such as `.ios.tsx`, `.android.tsx`, and `.native.tsx`.
|
|
157
|
+
- Use `PascalCase` for components, context providers and consumers, type aliases,
|
|
158
|
+
interfaces, and enums.
|
|
159
|
+
- Use `snake_case` for ordinary variables, props, state values, and code-owned
|
|
160
|
+
object properties. Use `camelCase` for ordinary function names.
|
|
161
|
+
- Name custom hooks as `useThing`, higher-order components as `withThing`, and
|
|
162
|
+
local event-handler functions as `handleThing`. Name code-owned callback props
|
|
163
|
+
in `snake_case` with an `on_` prefix, such as `on_submit`.
|
|
164
|
+
- Prefix boolean props, state, and variables with `is_`, `has_`, or `should_`
|
|
165
|
+
when the prefix accurately describes their meaning.
|
|
166
|
+
- Use `UPPER_SNAKE_CASE` for module-level constants and enum members. Keep
|
|
167
|
+
ordinary local `const` bindings in `snake_case`.
|
|
168
|
+
|
|
151
169
|
## Data And Validation
|
|
152
170
|
|
|
153
171
|
- Update schemas first, then generate migrations or derived types. Never edit
|