Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

refactor: Enable knip duplicate export checking + fix issues (#15290)

Ben Bachem32609738fc82
diff --git a/knip.jsonc b/knip.jsonc
index e2b44eacfb..102186999b 100644
--- a/knip.jsonc
+++ b/knip.jsonc
@@ -5,9 +5,9 @@
"catalog": "off",
},
"ignoreIssues": {
- "web/**": ["files", "exports", "types", "duplicates"],
- "packages/shared/**": ["files", "exports", "types", "duplicates"],
- "worker/**": ["files", "exports", "types", "duplicates"],
+ "web/**": ["files", "exports", "types"],
+ "packages/shared/**": ["files", "exports", "types"],
+ "worker/**": ["files", "exports", "types"],
},
"workspaces": {
"worker": {
diff --git a/packages/shared/src/features/scores/interfaces/api/v1/validation.ts b/packages/shared/src/features/scores/interfaces/api/v1/validation.ts
index 9ea441ae50..cbc6cd547c 100644
--- a/packages/shared/src/features/scores/interfaces/api/v1/validation.ts
+++ b/packages/shared/src/features/scores/interfaces/api/v1/validation.ts
@@ -22,6 +22,7 @@ export const filterAndValidateLegacyV1GetScoreList = (
/**
* @deprecated
+ * @alias
* Use `filterAndValidateV2GetScoreList` instead. This function is only used for the legacy v1 API where scores were only associated with traces.
* Use this function when pulling a list of scores from the database before returning to the public API to ensure type safety.
* All scores are expected to pass the validation. If a score fails validation, it will be logged to Otel.
diff --git a/packages/shared/src/features/scores/interfaces/application/validation.ts b/packages/shared/src/features/scores/interfaces/application/validation.ts
index 3fa6f6fe72..9d1769724a 100644
--- a/packages/shared/src/features/scores/interfaces/application/validation.ts
+++ b/packages/shared/src/features/scores/interfaces/application/validation.ts
@@ -109,6 +109,7 @@ export const filterAndValidateDbLegacyTraceScoreList = <
/**
* @deprecated
+ * @alias
* Use `filterAndValidateDbScoreList` instead. This function is only used for the legacy v1 API where scores were only associated with traces.
* Use this function when pulling a list of scores from the database before using in the application to ensure type safety.
* All scores are expected to pass the validation. If a score fails validation, it will be logged to Otel.
diff --git a/packages/shared/src/interfaces/customLLMProviderConfigSchemas.ts b/packages/shared/src/interfaces/customLLMProviderConfigSchemas.ts
index 5cf4089e98..c173adc230 100644
--- a/packages/shared/src/interfaces/customLLMProviderConfigSchemas.ts
+++ b/packages/shared/src/interfaces/customLLMProviderConfigSchemas.ts
@@ -71,4 +71,3 @@ export const GCPServiceAccountKeySchema = z.object({
});
export type GCPServiceAccountKey = z.infer<typeof GCPServiceAccountKeySchema>;
-export default GCPServiceAccountKeySchema;
diff --git a/packages/shared/src/server/llm/ai-sdk/providers/vertex.ts b/packages/shared/src/server/llm/ai-sdk/providers/vertex.ts
index 61f3a0a2e9..27133b78fb 100644
--- a/packages/shared/src/server/llm/ai-sdk/providers/vertex.ts
+++ b/packages/shared/src/server/llm/ai-sdk/providers/vertex.ts
@@ -4,7 +4,8 @@ import type { LanguageModel } from "ai";
import { GoogleAuth, type GoogleAuthOptions } from "google-auth-library";
import { env } from "../../../../env";
-import GCPServiceAccountKeySchema, {
+import {
+ GCPServiceAccountKeySchema,
type LLMConnectionConfig,
VERTEXAI_USE_DEFAULT_CREDENTIALS,
VertexAIConfigSchema,
diff --git a/packages/shared/src/server/services/email/batchExportSuccess/BatchExportSuccessEmailTemplate.tsx b/packages/shared/src/server/services/email/batchExportSuccess/BatchExportSuccessEmailTemplate.tsx
index 2c624e6a52..68dbb89b33 100644
--- a/packages/shared/src/server/services/email/batchExportSuccess/BatchExportSuccessEmailTemplate.tsx
+++ b/packages/shared/src/server/services/email/batchExportSuccess/BatchExportSuccessEmailTemplate.tsx
@@ -80,5 +80,3 @@ export const BatchExportSuccessEmailTemplate = ({
</Html>
);
};
-
-export default BatchExportSuccessEmailTemplate;
diff --git a/packages/shared/src/server/services/email/blobStorageExportFailed/BlobStorageExportFailedEmailTemplate.tsx b/packages/shared/src/server/services/email/blobStorageExportFailed/BlobStorageExportFailedEmailTemplate.tsx
index f60766e8dd..4efffae4e9 100644
--- a/packages/shared/src/server/services/email/blobStorageExportFailed/BlobStorageExportFailedEmailTemplate.tsx
+++ b/packages/shared/src/server/services/email/blobStorageExportFailed/BlobStorageExportFailedEmailTemplate.tsx
@@ -99,5 +99,3 @@ export const BlobStorageExportFailedEmailTemplate = ({
</Html>
);
};
-
-export default BlobStorageExportFailedEmailTemplate;
diff --git a/packages/shared/src/server/services/email/cloudSpendAlert/CloudSpendAlertEmailTemplate.tsx b/packages/shared/src/server/services/email/cloudSpendAlert/CloudSpendAlertEmailTemplate.tsx
index c8d073c0d3..730895caac 100644
--- a/packages/shared/src/server/services/email/cloudSpendAlert/CloudSpendAlertEmailTemplate.tsx
+++ b/packages/shared/src/server/services/email/cloudSpendAlert/CloudSpendAlertEmailTemplate.tsx
@@ -140,5 +140,3 @@ export const CloudSpendAlertEmailTemplate = ({
</Html>
);
};
-
-export default CloudSpendAlertEmailTemplate;
diff --git a/packages/shared/src/server/services/email/commentMention/CommentMentionEmailTemplate.tsx b/packages/shared/src/server/services/email/commentMention/CommentMentionEmailTemplate.tsx
index abb138efdb..0505fff745 100644
--- a/packages/shared/src/server/services/email/commentMention/CommentMentionEmailTemplate.tsx
+++ b/packages/shared/src/server/services/email/commentMention/CommentMentionEmailTemplate.tsx
@@ -117,5 +117,3 @@ export const CommentMentionEmailTemplate = ({
</Html>
);
};
-
-export default CommentMentionEmailTemplate;
diff --git a/packages/shared/src/server/services/email/evaluatorBlocked/EvaluatorBlockedEmailTemplate.tsx b/packages/shared/src/server/services/email/evaluatorBlocked/EvaluatorBlockedEmailTemplate.tsx
index 4619f53359..cc1396c9b4 100644
--- a/packages/shared/src/server/services/email/evaluatorBlocked/EvaluatorBlockedEmailTemplate.tsx
+++ b/packages/shared/src/server/services/email/evaluatorBlocked/EvaluatorBlockedEmailTemplate.tsx
@@ -211,5 +211,3 @@ export const EvaluatorBlockedEmailTemplate = ({
</Html>
);
};
-
-export default EvaluatorBlockedEmailTemplate;
diff --git a/packages/shared/src/server/services/email/organizationInvitation/MembershipInvitationEmailTemplate.tsx b/packages/shared/src/server/services/email/organizationInvitation/MembershipInvitationEmailTemplate.tsx
index 51e9b5fcb3..cf796fd0c7 100644
--- a/packages/shared/src/server/services/email/organizationInvitation/MembershipInvitationEmailTemplate.tsx
+++ b/packages/shared/src/server/services/email/organizationInvitation/MembershipInvitationEmailTemplate.tsx
@@ -101,5 +101,3 @@ export const MembershipInvitationTemplate = ({
</Html>
);
};
-
-export default MembershipInvitationTemplate;
diff --git a/packages/shared/src/server/services/email/organizationInvitation/sendMembershipInvitationEmail.ts b/packages/shared/src/server/services/email/organizationInvitation/sendMembershipInvitationEmail.ts
index b09f88b137..1031397695 100644
--- a/packages/shared/src/server/services/email/organizationInvitation/sendMembershipInvitationEmail.ts
+++ b/packages/shared/src/server/services/email/organizationInvitation/sendMembershipInvitationEmail.ts
@@ -1,7 +1,7 @@
import { render } from "@react-email/render";
import { createMailTransport } from "../transport";
-import MembershipInvitationTemplate from "./MembershipInvitationEmailTemplate";
+import { MembershipInvitationTemplate } from "./MembershipInvitationEmailTemplate";
import { logger } from "../../../logger";
const langfuseUrls = {
diff --git a/packages/shared/src/server/services/email/usageThresholdSuspension/UsageThresholdSuspensionEmailTemplate.tsx b/packages/shared/src/server/services/email/usageThresholdSuspension/UsageThresholdSuspensionEmailTemplate.tsx
index c5907611ba..db50cdb41b 100644
--- a/packages/shared/src/server/services/email/usageThresholdSuspension/UsageThresholdSuspensionEmailTemplate.tsx
+++ b/packages/shared/src/server/services/email/usageThresholdSuspension/UsageThresholdSuspensionEmailTemplate.tsx
@@ -165,5 +165,3 @@ export const UsageThresholdSuspensionEmailTemplate = ({
</Html>
);
};
-
-export default UsageThresholdSuspensionEmailTemplate;
diff --git a/packages/shared/src/server/services/email/usageThresholdWarning/UsageThresholdWarningEmailTemplate.tsx b/packages/shared/src/server/services/email/usageThresholdWarning/UsageThresholdWarningEmailTemplate.tsx
index 486605805f..0f37bef489 100644
--- a/packages/shared/src/server/services/email/usageThresholdWarning/UsageThresholdWarningEmailTemplate.tsx
+++ b/packages/shared/src/server/services/email/usageThresholdWarning/UsageThresholdWarningEmailTemplate.tsx
@@ -162,5 +162,3 @@ export const UsageThresholdWarningEmailTemplate = ({
</Html>
);
};
-
-export default UsageThresholdWarningEmailTemplate;
diff --git a/packages/shared/src/tableDefinitions/tracesTable.ts b/packages/shared/src/tableDefinitions/tracesTable.ts
index 7278d70de9..c1a02e622d 100644
--- a/packages/shared/src/tableDefinitions/tracesTable.ts
+++ b/packages/shared/src/tableDefinitions/tracesTable.ts
@@ -218,7 +218,9 @@ export const datasetCol: ColumnDefinition = {
// Used only for dataset evaluator, not on dataset table
export const datasetOnlyCols: ColumnDefinition[] = [datasetCol];
+/** @alias */
export const evalTraceTableCols: ColumnDefinition[] = tracesOnlyCols;
+/** @alias */
export const evalDatasetFormFilterCols: ColumnDefinition[] = datasetOnlyCols;
export type TraceOptions = {
diff --git a/packages/shared/src/utils/zod.ts b/packages/shared/src/utils/zod.ts
index 002c624aaf..aeb3bebae5 100644
--- a/packages/shared/src/utils/zod.ts
+++ b/packages/shared/src/utils/zod.ts
@@ -45,6 +45,7 @@ export const paginationLimitZod = z.preprocess(
z.coerce.number().int().gte(1).lte(100).default(50),
);
+/** @alias */
export const publicApiPaginationLimitZod = paginationLimitZod;
export const paginationZod = {
diff --git a/web/src/components/trace/components/IOPreview/IOPreview.tsx b/web/src/components/trace/components/IOPreview/IOPreview.tsx
index 004620b5a9..17bf542120 100644
--- a/web/src/components/trace/components/IOPreview/IOPreview.tsx
+++ b/web/src/components/trace/components/IOPreview/IOPreview.tsx
@@ -2,7 +2,7 @@ import { useEffect } from "react";
import { type ScoreDomain, type Prisma } from "@langfuse/shared";
import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";
import useLocalStorage from "@/src/components/useLocalStorage";
-import usePreserveRelativeScroll from "@/src/hooks/usePreserveRelativeScroll";
+import { usePreserveRelativeScroll } from "@/src/hooks/usePreserveRelativeScroll";
import { type MediaReturnType } from "@/src/features/media/validation";
import { type ExpansionState } from "@/src/components/ui/AdvancedJsonViewer/types";
diff --git a/web/src/components/trace/components/IOPreview/components/ChatMessageList.tsx b/web/src/components/trace/components/IOPreview/components/ChatMessageList.tsx
index 1f81c7d512..6a23d7445a 100644
--- a/web/src/components/trace/components/IOPreview/components/ChatMessageList.tsx
+++ b/web/src/components/trace/components/IOPreview/components/ChatMessageList.tsx
@@ -163,9 +163,3 @@ export function ChatMessageList({
</div>
);
}
-
-/**
- * OpenAiMessageView - Alias for backwards compatibility.
- * @deprecated Use ChatMessageList instead.
- */
-export const OpenAiMessageView = ChatMessageList;
diff --git a/web/src/ee/features/billing/components/BillingInvoiceTable.tsx b/web/src/ee/features/billing/components/BillingInvoiceTable.tsx
index 31d09bfc8b..643448617c 100644
--- a/web/src/ee/features/billing/components/BillingInvoiceTable.tsx
+++ b/web/src/ee/features/billing/components/BillingInvoiceTable.tsx
@@ -304,5 +304,3 @@ export function BillingInvoiceTable() {
</div>
);
}
-
-export default BillingInvoiceTable;
diff --git a/web/src/ee/features/billing/components/BillingPlanPeriodView.tsx b/web/src/ee/features/billing/components/BillingPlanPeriodView.tsx
index 10ca85f73d..1af2bd54a2 100644
--- a/web/src/ee/features/billing/components/BillingPlanPeriodView.tsx
+++ b/web/src/ee/features/billing/components/BillingPlanPeriodView.tsx
@@ -26,5 +26,3 @@ export const BillingPlanPeriodView = () => {
</div>
);
};
-
-export default BillingPlanPeriodView;
diff --git a/web/src/features/organizations/utils/organizationNameSchema.ts b/web/src/features/organizations/utils/organizationNameSchema.ts
index 433677f495..05d0a4b18f 100644
--- a/web/src/features/organizations/utils/organizationNameSchema.ts
+++ b/web/src/features/organizations/utils/organizationNameSchema.ts
@@ -11,6 +11,7 @@ export const organizationFormSchema = z.object({
});
// Base schema for org creation, used for server-side validation too
+/** @alias */
export const organizationNameSchema = organizationFormSchema;
export const organizationOptionalNameSchema = z.object({
diff --git a/web/src/features/prompts/components/prompt-detail.tsx b/web/src/features/prompts/components/prompt-detail.tsx
index e7962f5278..c59d9fdfc4 100644
--- a/web/src/features/prompts/components/prompt-detail.tsx
+++ b/web/src/features/prompts/components/prompt-detail.tsx
@@ -7,7 +7,7 @@ import {
withDefault,
} from "use-query-params";
import type { z } from "zod";
-import { OpenAiMessageView } from "@/src/components/trace/components/IOPreview/components/ChatMessageList";
+import { ChatMessageList } from "@/src/components/trace/components/IOPreview/components/ChatMessageList";
import {
TabsBar,
TabsBarList,
@@ -544,8 +544,7 @@ export const PromptDetail = ({
<PromptReferenceProvider projectId={projectId}>
{prompt.type === PromptType.Chat && chatMessages ? (
<div className="w-full">
- {/* eslint-disable-next-line @typescript-eslint/no-deprecated -- Internal backwards-compatible component alias. */}
- <OpenAiMessageView
+ <ChatMessageList
messages={chatMessages}
shouldRenderMarkdown={true}
currentView="pretty"
diff --git a/web/src/features/public-api/types/annotation-queues.ts b/web/src/features/public-api/types/annotation-queues.ts
index 560485a4a0..28357d05d7 100644
--- a/web/src/features/public-api/types/annotation-queues.ts
+++ b/web/src/features/public-api/types/annotation-queues.ts
@@ -66,6 +66,7 @@ export const CreateAnnotationQueueBody = z
})
.strict();
+/** @alias */
export const CreateAnnotationQueueResponse = AnnotationQueueSchema;
// GET /annotation-queues/:queueId
@@ -75,6 +76,7 @@ export const GetAnnotationQueueByIdQuery = z
})
.strict();
+/** @alias */
export const GetAnnotationQueueByIdResponse = AnnotationQueueSchema;
// GET /annotation-queues/:queueId/items
@@ -101,6 +103,7 @@ export const GetAnnotationQueueItemByIdQuery = z
})
.strict();
+/** @alias */
export const GetAnnotationQueueItemByIdResponse = AnnotationQueueItemSchema;
// POST /annotation-queues/:queueId/items
@@ -115,6 +118,7 @@ export const CreateAnnotationQueueItemBody = z
})
.strict();
+/** @alias */
export const CreateAnnotationQueueItemResponse = AnnotationQueueItemSchema;
// PATCH /annotation-queues/:queueId/items/:itemId
@@ -124,6 +128,7 @@ export const UpdateAnnotationQueueItemBody = z
})
.strict();
+/** @alias */
export const UpdateAnnotationQueueItemResponse = AnnotationQueueItemSchema;
// DELETE /annotation-queues/:queueId/items/:itemId
@@ -163,6 +168,7 @@ export const CreateAnnotationQueueAssignmentBody = z
})
.strict();
+/** @alias */
export const CreateAnnotationQueueAssignmentResponse =
AnnotationQueueAssignmentSchema;
diff --git a/web/src/features/public-api/types/experiments.ts b/web/src/features/public-api/types/experiments.ts
index fde2d9507b..e9a8419e28 100644
--- a/web/src/features/public-api/types/experiments.ts
+++ b/web/src/features/public-api/types/experiments.ts
@@ -161,6 +161,7 @@ export const GetExperimentItemsV1ParsedQueryBase = z.object({
filter: experimentItemFilterState.optional(),
});
+/** @alias */
export const GetExperimentItemsV1ParsedQuery =
GetExperimentItemsV1ParsedQueryBase;
diff --git a/web/src/features/public-api/types/metrics.ts b/web/src/features/public-api/types/metrics.ts
index 537c4c7bb2..620322341b 100644
--- a/web/src/features/public-api/types/metrics.ts
+++ b/web/src/features/public-api/types/metrics.ts
@@ -155,6 +155,7 @@ export const GetMetricsV2Query = z.object({
.pipe(MetricsQueryObjectV2),
});
+/** @alias */
export const GetMetricsV2Response = GetMetricsV1Response;
// Get /metrics/daily
diff --git a/web/src/features/public-api/types/observations.ts b/web/src/features/public-api/types/observations.ts
index 0d0ede8bce..72ace86fff 100644
--- a/web/src/features/public-api/types/observations.ts
+++ b/web/src/features/public-api/types/observations.ts
@@ -242,6 +242,7 @@ export const GetObservationV1Query = z.object({
observationId: z.string(),
useEventsTable: useEventsTableSchema,
});
+/** @alias */
export const GetObservationV1Response = APIObservation;
/**
diff --git a/web/src/features/public-api/types/unstable-dashboard-widgets.ts b/web/src/features/public-api/types/unstable-dashboard-widgets.ts
index 49f51b6500..0726ce6222 100644
--- a/web/src/features/public-api/types/unstable-dashboard-widgets.ts
+++ b/web/src/features/public-api/types/unstable-dashboard-widgets.ts
@@ -73,6 +73,7 @@ export const PublicDashboardWidget = z
})
.strict();
+/** @alias */
export const PostUnstableDashboardWidgetResponse = PublicDashboardWidget;
export const GetUnstableDashboardWidgetsQuery = z.object({
@@ -89,12 +90,14 @@ export const GetUnstableDashboardWidgetsResponse = z.object({
}),
});
export const DashboardWidgetIdQuery = z.object({ widgetId: z.string() });
+/** @alias */
export const GetUnstableDashboardWidgetResponse = PublicDashboardWidget;
export const PatchUnstableDashboardWidgetBody =
UnstableDashboardWidgetBody.partial().refine(
(value) => Object.keys(value).length > 0,
"At least one field is required",
);
+/** @alias */
export const PatchUnstableDashboardWidgetResponse = PublicDashboardWidget;
export const DeleteUnstableDashboardWidgetResponse = z.object({
message: z.literal("Dashboard widget successfully deleted"),
diff --git a/web/src/features/public-api/types/unstable-dashboards.ts b/web/src/features/public-api/types/unstable-dashboards.ts
index eecdd27915..4530a4a349 100644
--- a/web/src/features/public-api/types/unstable-dashboards.ts
+++ b/web/src/features/public-api/types/unstable-dashboards.ts
@@ -75,9 +75,11 @@ export const PostUnstableDashboardBody = z.object({
definition: PublicDashboardDefinitionSchema.optional(),
filters: z.array(singleFilter).optional(),
});
+/** @alias */
export const PostUnstableDashboardResponse = DashboardSchema;
export const DashboardIdQuery = z.object({ dashboardId: z.string() });
+/** @alias */
export const GetUnstableDashboardResponse = DashboardSchema;
export const PatchUnstableDashboardBody = z
.object({
@@ -90,6 +92,7 @@ export const PatchUnstableDashboardBody = z
(value) => Object.keys(value).length > 0,
"At least one field is required",
);
+/** @alias */
export const PatchUnstableDashboardResponse = DashboardSchema;
export const DeleteUnstableDashboardResponse = z.object({
message: z.literal("Dashboard successfully deleted"),
@@ -112,6 +115,7 @@ export const PostDashboardPlacementBody = z.discriminatedUnion("type", [
PublicWidgetPlacementSchema.partial(placementCreateOptionalFields),
PublicPresetPlacementSchema.partial(placementCreateOptionalFields),
]);
+/** @alias */
export const PostDashboardPlacementResponse = DashboardPlacementSchema;
// Placements are moved/resized in place; the widget/preset reference and the
// id are immutable (delete + add to swap content).
@@ -122,6 +126,7 @@ export const PatchDashboardPlacementBody = z
(value) => Object.keys(value).length > 0,
"At least one field is required",
);
+/** @alias */
export const PatchDashboardPlacementResponse = DashboardPlacementSchema;
export const DeleteDashboardPlacementResponse = z.object({
message: z.literal("Placement successfully deleted"),
diff --git a/web/src/features/public-api/types/unstable-evaluation-rules.ts b/web/src/features/public-api/types/unstable-evaluation-rules.ts
index 57d7de3d49..9b4af08a05 100644
--- a/web/src/features/public-api/types/unstable-evaluation-rules.ts
+++ b/web/src/features/public-api/types/unstable-evaluation-rules.ts
@@ -47,6 +47,7 @@ export const GetUnstableEvaluationRuleQuery = z.object({
evaluationRuleId: z.string(),
});
+/** @alias */
export const GetUnstableEvaluationRuleResponse = APIEvaluationRule;
export const EvaluationRuleCreateBase = {
@@ -100,8 +101,10 @@ export type PostUnstableEvaluationRuleBodyType = z.infer<
typeof PostUnstableEvaluationRuleBody
>;
+/** @alias */
export const PostUnstableEvaluationRuleResponse = APIEvaluationRule;
+/** @alias */
export const PatchUnstableEvaluationRuleQuery = GetUnstableEvaluationRuleQuery;
// Exported for reuse (see EvaluationRuleCreateBase) — the create fields, all
@@ -148,8 +151,10 @@ export type PatchUnstableEvaluationRuleBodyType = z.infer<
typeof PatchUnstableEvaluationRuleBody
>;
+/** @alias */
export const PatchUnstableEvaluationRuleResponse = APIEvaluationRule;
+/** @alias */
export const DeleteUnstableEvaluationRuleQuery = GetUnstableEvaluationRuleQuery;
export const DeleteUnstableEvaluationRuleResponse = z
diff --git a/web/src/features/public-api/types/unstable-evaluators.ts b/web/src/features/public-api/types/unstable-evaluators.ts
index aedf724396..28fd1c7781 100644
--- a/web/src/features/public-api/types/unstable-evaluators.ts
+++ b/web/src/features/public-api/types/unstable-evaluators.ts
@@ -56,8 +56,10 @@ export const GetUnstableEvaluatorQuery = z.object({
evaluatorId: z.string(),
});
+/** @alias */
export const GetUnstableEvaluatorResponse = APIEvaluator;
+/** @alias */
export const DeleteUnstableEvaluatorQuery = GetUnstableEvaluatorQuery;
export const DeleteUnstableEvaluatorResponse = z
@@ -111,4 +113,5 @@ export type PostUnstableEvaluatorBodyParsedType = z.infer<
typeof PostUnstableTypedEvaluatorBody
>;
+/** @alias */
export const PostUnstableEvaluatorResponse = APIEvaluator;
diff --git a/web/src/features/widgets/chart-library/AreaChartTimeSeries.tsx b/web/src/features/widgets/chart-library/AreaChartTimeSeries.tsx
index ab7524e0af..59296064a2 100644
--- a/web/src/features/widgets/chart-library/AreaChartTimeSeries.tsx
+++ b/web/src/features/widgets/chart-library/AreaChartTimeSeries.tsx
@@ -225,5 +225,3 @@ export const AreaChartTimeSeries: React.FC<ChartProps> = ({
</div>
);
};
-
-export default AreaChartTimeSeries;
diff --git a/web/src/features/widgets/chart-library/Chart.tsx b/web/src/features/widgets/chart-library/Chart.tsx
index 62cb2dbb41..a92c951bf2 100644
--- a/web/src/features/widgets/chart-library/Chart.tsx
+++ b/web/src/features/widgets/chart-library/Chart.tsx
@@ -11,12 +11,12 @@ import {
} from "@/src/features/widgets/chart-library/chart-props";
import { formatMetric } from "@/src/features/widgets/chart-library/utils";
import { CardContent } from "@/src/components/ui/card";
-import LineChartTimeSeries from "@/src/features/widgets/chart-library/LineChartTimeSeries";
-import AreaChartTimeSeries from "@/src/features/widgets/chart-library/AreaChartTimeSeries";
-import VerticalBarChartTimeSeries from "@/src/features/widgets/chart-library/VerticalBarChartTimeSeries";
-import HorizontalBarChart from "@/src/features/widgets/chart-library/HorizontalBarChart";
-import VerticalBarChart from "@/src/features/widgets/chart-library/VerticalBarChart";
-import PieChart from "@/src/features/widgets/chart-library/PieChart";
+import { LineChartTimeSeries } from "@/src/features/widgets/chart-library/LineChartTimeSeries";
+import { AreaChartTimeSeries } from "@/src/features/widgets/chart-library/AreaChartTimeSeries";
+import { VerticalBarChartTimeSeries } from "@/src/features/widgets/chart-library/VerticalBarChartTimeSeries";
+import { HorizontalBarChart } from "@/src/features/widgets/chart-library/HorizontalBarChart";
+import { VerticalBarChart } from "@/src/features/widgets/chart-library/VerticalBarChart";
+import { PieChart } from "@/src/features/widgets/chart-library/PieChart";
import HistogramChart from "@/src/features/widgets/chart-library/HistogramChart";
import { type DashboardWidgetChartType } from "@langfuse/shared/src/db";
import { Button } from "@/src/components/ui/button";
diff --git a/web/src/features/widgets/chart-library/HorizontalBarChart.tsx b/web/src/features/widgets/chart-library/HorizontalBarChart.tsx
index 4cd109232a..2741d52d5a 100644
--- a/web/src/features/widgets/chart-library/HorizontalBarChart.tsx
+++ b/web/src/features/widgets/chart-library/HorizontalBarChart.tsx
@@ -157,5 +157,3 @@ export const HorizontalBarChart: React.FC<ChartProps> = ({
</ChartContainer>
);
};
-
-export default HorizontalBarChart;
diff --git a/web/src/features/widgets/chart-library/LineChartTimeSeries.tsx b/web/src/features/widgets/chart-library/LineChartTimeSeries.tsx
index 60ed5cd7c6..cdaebad406 100644
--- a/web/src/features/widgets/chart-library/LineChartTimeSeries.tsx
+++ b/web/src/features/widgets/chart-library/LineChartTimeSeries.tsx
@@ -423,5 +423,3 @@ export const LineChartTimeSeries: React.FC<ChartProps> = ({
</div>
);
};
-
-export default LineChartTimeSeries;
diff --git a/web/src/features/widgets/chart-library/PieChart.tsx b/web/src/features/widgets/chart-library/PieChart.tsx
index e9e1b24e4f..498e1ae1d6 100644
--- a/web/src/features/widgets/chart-library/PieChart.tsx
+++ b/web/src/features/widgets/chart-library/PieChart.tsx
@@ -137,5 +137,3 @@ export const PieChart: React.FC<ChartProps> = ({
</ChartContainer>
);
};
-
-export default PieChart;
diff --git a/web/src/features/widgets/chart-library/PivotTable.tsx b/web/src/features/widgets/chart-library/PivotTable.tsx
index 9714203511..b3ea097f5d 100644
--- a/web/src/features/widgets/chart-library/PivotTable.tsx
+++ b/web/src/features/widgets/chart-library/PivotTable.tsx
@@ -414,5 +414,3 @@ export const PivotTable: React.FC<PivotTableProps> = ({
</div>
);
};
-
-export default PivotTable;
diff --git a/web/src/features/widgets/chart-library/VerticalBarChart.tsx b/web/src/features/widgets/chart-library/VerticalBarChart.tsx
index 36dc8d27b7..b820328174 100644
--- a/web/src/features/widgets/chart-library/VerticalBarChart.tsx
+++ b/web/src/features/widgets/chart-library/VerticalBarChart.tsx
@@ -80,5 +80,3 @@ export const VerticalBarChart: React.FC<ChartProps> = ({
</ChartContainer>
);
};
-
-export default VerticalBarChart;
diff --git a/web/src/features/widgets/chart-library/VerticalBarChartTimeSeries.tsx b/web/src/features/widgets/chart-library/VerticalBarChartTimeSeries.tsx
index 9a21ceb629..3f73249903 100644
--- a/web/src/features/widgets/chart-library/VerticalBarChartTimeSeries.tsx
+++ b/web/src/features/widgets/chart-library/VerticalBarChartTimeSeries.tsx
@@ -200,5 +200,3 @@ export const VerticalBarChartTimeSeries: React.FC<ChartProps> = ({
</div>
);
};
-
-export default VerticalBarChartTimeSeries;
diff --git a/web/src/hooks/usePreserveRelativeScroll.ts b/web/src/hooks/usePreserveRelativeScroll.ts
index aade60aea3..2c7dde9a8d 100644
--- a/web/src/hooks/usePreserveRelativeScroll.ts
+++ b/web/src/hooks/usePreserveRelativeScroll.ts
@@ -167,5 +167,3 @@ export function usePreserveRelativeScroll<T extends Element = Element>(
return [elementRef, startPreserveScroll];
}
-
-export default usePreserveRelativeScroll;