The best way to control Claude Code, Codex and more from any computer or phone
chore(lint): enforce eslint/no-unneeded-ternary (#25105)
Julius Marminge committed
Oct 25, 2026 at 17:17 UTC
b0f5d44475d9c8df7f7d5300aed05dafa8d96884
2 files changed
+4
-2
packages/shared/src/serverSettings.test.ts
+3
-2
@@ -31,8 +31,9 @@ describe("fallbackTextGenerationModelSelection", () => {
31
const providerInstances = {
32
[configured]: { driver: ProviderDriverKind.make("codex"), config: {} },
33
};
34
- const fallback = fallbackTextGenerationModelSelection(providerInstances, (instanceId) =>
35
- instanceId === configured ? true : false,
34
+ const fallback = fallbackTextGenerationModelSelection(
35
+ providerInstances,
36
+ (instanceId) => instanceId === configured,
37
);
38
expect(fallback).toBeNull();
39
});
vite.config.ts
+1
@@ -216,6 +216,7 @@ export default defineConfig({
216
perf: "warn",
217
},
218
rules: {
219
+ "eslint/no-unneeded-ternary": "error",
220
"unicorn/no-useless-fallback-in-spread": "error",
221
"unicorn/require-module-specifiers": "error",
222
"unicorn/no-array-sort": "off",