From 844e0e4872847fe85d266b8f8d971e567fe9cbf6 Mon Sep 17 00:00:00 2001 From: tomasz-io Date: Thu, 20 Mar 2025 09:30:07 -0700 Subject: [PATCH 1/9] improv: linting --- core/.eslintrc.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/.eslintrc.json b/core/.eslintrc.json index ce1bc2575..7ef01a175 100644 --- a/core/.eslintrc.json +++ b/core/.eslintrc.json @@ -5,8 +5,11 @@ "project": "./tsconfig.json" }, "rules": { - "quotes": ["warn", "double", {}], + "quotes": ["off", "double", {}], "@typescript-eslint/naming-convention": "off", - "@typescript-eslint/no-floating-promises": "warn" + "@typescript-eslint/no-floating-promises": "off", + "import/order": "off", + "curly": "off", + "@typescript-eslint/semi": "off" } } From 4c7f9182665a259fc6b9cf10c93e696e97400a2c Mon Sep 17 00:00:00 2001 From: tomasz-io Date: Thu, 20 Mar 2025 09:37:01 -0700 Subject: [PATCH 2/9] fix: error --- core/.eslintrc.json | 3 ++- core/llm/llms/Anthropic.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/.eslintrc.json b/core/.eslintrc.json index 7ef01a175..d1aee37a6 100644 --- a/core/.eslintrc.json +++ b/core/.eslintrc.json @@ -10,6 +10,7 @@ "@typescript-eslint/no-floating-promises": "off", "import/order": "off", "curly": "off", - "@typescript-eslint/semi": "off" + "@typescript-eslint/semi": "off", + "eqeqeq": "error" } } diff --git a/core/llm/llms/Anthropic.ts b/core/llm/llms/Anthropic.ts index dcd13d38e..f32d1a059 100644 --- a/core/llm/llms/Anthropic.ts +++ b/core/llm/llms/Anthropic.ts @@ -86,7 +86,7 @@ class Anthropic extends BaseLLM { const newpart = { ...part, // If multiple text parts, only add cache_control to the last one - ...(addCaching && contentIdx == message.content.length - 1 + ...(addCaching && contentIdx === message.content.length - 1 ? { cache_control: { type: "ephemeral" } } : {}), }; From cc8f7962d726ff05af67341e6c418e48233ac1d7 Mon Sep 17 00:00:00 2001 From: tomasz-io Date: Thu, 20 Mar 2025 10:30:24 -0700 Subject: [PATCH 3/9] improv: linting --- core/.eslintrc.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/.eslintrc.json b/core/.eslintrc.json index d1aee37a6..54c99fd94 100644 --- a/core/.eslintrc.json +++ b/core/.eslintrc.json @@ -11,6 +11,7 @@ "import/order": "off", "curly": "off", "@typescript-eslint/semi": "off", - "eqeqeq": "error" + "eqeqeq": "error", + "complexity": ["error", { "max": 37 }] } } From 3ab80e181fa018e86240ef5c236c7b2a672f095e Mon Sep 17 00:00:00 2001 From: tomasz-io Date: Thu, 20 Mar 2025 10:32:20 -0700 Subject: [PATCH 4/9] improv: linting --- core/.eslintrc.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/.eslintrc.json b/core/.eslintrc.json index 54c99fd94..4a4fdc342 100644 --- a/core/.eslintrc.json +++ b/core/.eslintrc.json @@ -12,6 +12,7 @@ "curly": "off", "@typescript-eslint/semi": "off", "eqeqeq": "error", - "complexity": ["error", { "max": 37 }] + "complexity": ["error", { "max": 37 }], + "max-lines-per-function": ["error", { "max": 996 }] } } From ef9f240069f19c910de95d950a0a2df95d791135 Mon Sep 17 00:00:00 2001 From: tomasz-io Date: Thu, 20 Mar 2025 10:34:54 -0700 Subject: [PATCH 5/9] improv: linting --- core/.eslintrc.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/.eslintrc.json b/core/.eslintrc.json index 4a4fdc342..820e6aa1b 100644 --- a/core/.eslintrc.json +++ b/core/.eslintrc.json @@ -13,6 +13,7 @@ "@typescript-eslint/semi": "off", "eqeqeq": "error", "complexity": ["error", { "max": 37 }], - "max-lines-per-function": ["error", { "max": 996 }] + "max-lines-per-function": ["error", { "max": 996 }], + "max-statements": ["error", { "max": 112 }] } } From dd589f41ae72b090196be201448e652f586e1cc9 Mon Sep 17 00:00:00 2001 From: tomasz-io Date: Thu, 20 Mar 2025 10:37:11 -0700 Subject: [PATCH 6/9] improv: linting --- core/.eslintrc.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/.eslintrc.json b/core/.eslintrc.json index 820e6aa1b..0b865cf69 100644 --- a/core/.eslintrc.json +++ b/core/.eslintrc.json @@ -14,6 +14,7 @@ "eqeqeq": "error", "complexity": ["error", { "max": 37 }], "max-lines-per-function": ["error", { "max": 996 }], - "max-statements": ["error", { "max": 112 }] + "max-statements": ["error", { "max": 112 }], + "max-depth": ["error", { "max": 6 }] } } From b8280eb0fda42781df3227ace2404b7f5c42945d Mon Sep 17 00:00:00 2001 From: tomasz-io Date: Thu, 20 Mar 2025 10:39:21 -0700 Subject: [PATCH 7/9] improv: linting --- core/.eslintrc.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/.eslintrc.json b/core/.eslintrc.json index 0b865cf69..9585edbb6 100644 --- a/core/.eslintrc.json +++ b/core/.eslintrc.json @@ -15,6 +15,7 @@ "complexity": ["error", { "max": 37 }], "max-lines-per-function": ["error", { "max": 996 }], "max-statements": ["error", { "max": 112 }], - "max-depth": ["error", { "max": 6 }] + "max-depth": ["error", { "max": 6 }], + "max-nested-callbacks": ["error", { "max": 4 }] } } From dc4763265b10ce4372ea5a93baf79b9f28e878c8 Mon Sep 17 00:00:00 2001 From: tomasz-io Date: Thu, 20 Mar 2025 10:40:22 -0700 Subject: [PATCH 8/9] improv: linting --- core/.eslintrc.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/.eslintrc.json b/core/.eslintrc.json index 9585edbb6..8ccee22f8 100644 --- a/core/.eslintrc.json +++ b/core/.eslintrc.json @@ -16,6 +16,7 @@ "max-lines-per-function": ["error", { "max": 996 }], "max-statements": ["error", { "max": 112 }], "max-depth": ["error", { "max": 6 }], - "max-nested-callbacks": ["error", { "max": 4 }] + "max-nested-callbacks": ["error", { "max": 4 }], + "max-params": ["error", { "max": 11 }] } } From b46e1d3c5487d007f0332fb8265eb563b0b94ef7 Mon Sep 17 00:00:00 2001 From: tomasz-io Date: Thu, 20 Mar 2025 10:51:51 -0700 Subject: [PATCH 9/9] improv: linting --- core/.eslintrc.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/.eslintrc.json b/core/.eslintrc.json index 8ccee22f8..e541d57c1 100644 --- a/core/.eslintrc.json +++ b/core/.eslintrc.json @@ -12,7 +12,7 @@ "curly": "off", "@typescript-eslint/semi": "off", "eqeqeq": "error", - "complexity": ["error", { "max": 37 }], + "complexity": ["error", { "max": 38 }], "max-lines-per-function": ["error", { "max": 996 }], "max-statements": ["error", { "max": 112 }], "max-depth": ["error", { "max": 6 }],