From d5b40254b4c52426520db634196e9840a43ce5e7 Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Fri, 6 Mar 2026 07:28:37 -0800 Subject: [PATCH] chore: Minor formatting and AI instructions update (#2393) --- INSTRUCTIONS.md | 1 + eslint.config.mjs | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/INSTRUCTIONS.md b/INSTRUCTIONS.md index aca03b9a..7180b98a 100644 --- a/INSTRUCTIONS.md +++ b/INSTRUCTIONS.md @@ -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. diff --git a/eslint.config.mjs b/eslint.config.mjs index aea9088e..a0b1811c 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -23,6 +23,8 @@ export default defineConfig([ sourceType: 'module', }, - rules: {}, + rules: { + curly: 'error', + }, }, ]);