chore: Minor formatting and AI instructions update (#2393)

This commit is contained in:
Dermot Duffy
2026-03-06 07:28:37 -08:00
committed by GitHub
parent c398562d40
commit d5b40254b4
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -32,6 +32,7 @@
- Prefer `interface` for object structures; `type` for unions/intersections.
- Avoid `any` at all costs (in both source and tests); use `unknown`, proper generics, or `as unknown as T` for unavoidable type coercions. In tests, use `assert` (imported from `vitest`) for type narrowing.
- Never use non-null assertions (`!`); use a null check with an early return or conditional instead.
- Use `zod` for runtime validation if external data is involved.
- `noUnusedParameters` and `noImplicitReturns` are enforced — all parameters must be used and all code paths must return.
+3 -1
View File
@@ -23,6 +23,8 @@ export default defineConfig([
sourceType: 'module',
},
rules: {},
rules: {
curly: 'error',
},
},
]);