create-foldkit-app 0.5.11 → 0.5.12
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/package.json +1 -1
- package/templates/base/AGENTS.md +1 -1
package/package.json
CHANGED
package/templates/base/AGENTS.md
CHANGED
|
@@ -155,5 +155,5 @@ Use `typeof ClickedSubmit` in type positions to reference a schema value's type.
|
|
|
155
155
|
- Capitalize namespace imports: `import * as Command from './command'` not `import * as command from './command'`.
|
|
156
156
|
- Extract magic numbers to named constants. No raw numeric literals in logic.
|
|
157
157
|
- Never use `T[]` syntax. Always use `Array<T>` or `ReadonlyArray<T>`.
|
|
158
|
-
- For inline object types in `ReadonlyArray`, put `Readonly<{...}>` on the element type rather than `ReadonlyArray<{ readonly a: ...; readonly b: ... }>`. e.g. `ReadonlyArray<Readonly<{ model: Foo;
|
|
158
|
+
- For inline object types in `ReadonlyArray`, put `Readonly<{...}>` on the element type rather than `ReadonlyArray<{ readonly a: ...; readonly b: ... }>`. e.g. `ReadonlyArray<Readonly<{ model: Foo; toParentMessage: (m: Bar) => Baz }>>` not `ReadonlyArray<{ readonly model: Foo; readonly toParentMessage: ... }>`.
|
|
159
159
|
- Extract repeated inline style values (colors, shadows) to constants. Use Tailwind `@theme` for colors that map to utility classes (e.g. `--color-valentine: #ff2d55` → `text-valentine`). Use a `theme.ts` for values Tailwind can't express as utilities (textShadow, boxShadow).
|