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 unicorn/no-useless-fallback-in-spread (#25103)
Julius Marminge committed
Oct 25, 2026 at 17:17 UTC
15c6e6b4baaf949cbd9ef386449eafd76f0ecab2
5 files changed
+7
-6
apps/mobile/src/state/use-composer-drafts.ts
+1
-1
@@ -995,7 +995,7 @@ export function ensureComposerDraftsLoaded(): void {
995
...Object.fromEntries(
996
Object.entries(current).map(([instanceId, models]) => [
997
instanceId,
998
- { ...(persisted.modelOptionMemory[instanceId] ?? {}), ...models },
998
+ { ...persisted.modelOptionMemory[instanceId], ...models },
999
]),
1000
),
1001
});
apps/mobile/src/state/use-model-option-memory.ts
+1
-1
@@ -18,7 +18,7 @@ function recordModelOptionsInState(
18
return {
19
...state,
20
[instanceId]: {
21
- ...(state[instanceId] ?? {}),
21
+ ...state[instanceId],
22
[model]: options,
23
},
24
};
packages/shared/src/serverSettings.ts
+1
-1
@@ -330,7 +330,7 @@ function translateLegacyProjectOverridePatch(
330
for (const [projectId, value] of Object.entries(map)) {
331
if (canonicalProjectIds.has(projectId)) continue;
332
const entry: ProjectSettingsOverrides = {
333
- ...(entries.get(projectId) ?? currentEntries[projectId] ?? {}),
333
+ ...(entries.get(projectId) ?? currentEntries[projectId]),
334
};
335
if (value === null || value === undefined) {
336
delete entry[key];
scripts/lib/cli-external-packages.test.ts
+3
-3
@@ -101,9 +101,9 @@ it.layer(NodeServices.layer)("external package dependency closure", (it) => {
101
if (!manifest) continue;
102
103
const declared = {
104
- ...(manifest.dependencies ?? {}),
105
- ...(manifest.optionalDependencies ?? {}),
106
- ...(manifest.peerDependencies ?? {}),
104
+ ...manifest.dependencies,
105
+ ...manifest.optionalDependencies,
106
+ ...manifest.peerDependencies,
107
};
108
for (const dependency of Object.keys(declared)) {
109
if (!isRuntimeExternal(dependency)) {
vite.config.ts
+1
@@ -216,6 +216,7 @@ export default defineConfig({
216
perf: "warn",
217
},
218
rules: {
219
+ "unicorn/no-useless-fallback-in-spread": "error",
220
"unicorn/require-module-specifiers": "error",
221
"unicorn/no-array-sort": "off",
222
"unicorn/consistent-function-scoping": "off",