The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 17:00 UTC
chore(lint): enforce eslint/no-unsafe-optional-chaining (#25106)
Julius Marminge committed
Oct 25, 2026 at 17:17 UTC
2eccc57f1e551ce455efc29ed1b2526f951ee2f2
2 files changed
+4
-4
apps/server/src/orchestration-v2/ThreadLaunchService.test.ts
+3
-4
@@ -1845,10 +1845,9 @@ it.effect("shared intake preserves durable attachment bytes after a lost launch
1845
);
1846
assert.isDefined(stored);
1847
assert.notEqual(stored.attachments[0]?.id, attachment.id);
1848
- assert.equal(
1849
- (stored.context?.records[0] as { attachmentId: string }).attachmentId,
1850
- stored.attachments[0]?.id,
1851
- );
1848
+ const record = stored.context?.records[0];
1849
+ assert.isDefined(record);
1850
+ assert.equal((record as { attachmentId: string }).attachmentId, stored.attachments[0]?.id);
1851
const userItem = accepted.turnItems.find(
1852
(item) => item.type === "user_message" && item.messageId === stored.id,
1853
);
vite.config.ts
+1
@@ -216,6 +216,7 @@ export default defineConfig({
216
perf: "warn",
217
},
218
rules: {
219
+ "eslint/no-unsafe-optional-chaining": "error",
220
"eslint/no-unneeded-ternary": "error",
221
"unicorn/no-useless-fallback-in-spread": "error",
222
"unicorn/require-module-specifiers": "error",