🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
chore(eslint): Add no-exotic-operator rule (#17538)
Ben Bachem78d4aa039990
diff --git a/packages/config-eslint/shared.js b/packages/config-eslint/shared.jsindex 4820e928cc..eb0cf8081b 100644--- a/packages/config-eslint/shared.js+++ b/packages/config-eslint/shared.js@@ -33,6 +33,7 @@ export default ["no-void": "warn","no-else-return": "warn","no-unneeded-ternary": "warn",+ "@repo/no-exotic-operators": "warn",},},diff --git a/packages/eslint-plugin/src/index.ts b/packages/eslint-plugin/src/index.tsindex d8289e973c..4735e32dfd 100644--- a/packages/eslint-plugin/src/index.ts+++ b/packages/eslint-plugin/src/index.ts@@ -3,6 +3,7 @@ import { default as filenameMatchesExport } from "./rules/filename-matches-exporimport { default as noArbitraryColors } from "./rules/no-arbitrary-colors.js";import { default as noAbstractedOverlayTrigger } from "./rules/no-abstracted-overlay-trigger.js";import { default as noInSourceVitest } from "./rules/no-in-source-vitest.js";+import { default as noExoticOperators } from "./rules/no-exotic-operators.js";import { default as noMarginOnRootElements } from "./rules/no-margin-on-root-elements.js";import { default as noNullRender } from "./rules/no-null-render.js";import { default as noOverlayZindex } from "./rules/no-overlay-zindex.js";@@ -18,6 +19,7 @@ const plugin = {"filename-matches-export": filenameMatchesExport,"no-abstracted-overlay-trigger": noAbstractedOverlayTrigger,"no-arbitrary-colors": noArbitraryColors,+ "no-exotic-operators": noExoticOperators,"no-in-source-vitest": noInSourceVitest,"no-margin-on-root-elements": noMarginOnRootElements,"no-null-render": noNullRender,diff --git a/packages/eslint-plugin/src/rules/no-exotic-operators.test.ts b/packages/eslint-plugin/src/rules/no-exotic-operators.test.tsnew file mode 100644index 0000000000..82b70066ef--- /dev/null+++ b/packages/eslint-plugin/src/rules/no-exotic-operators.test.ts@@ -0,0 +1,60 @@+import { RuleTester } from "@typescript-eslint/rule-tester";+import * as typescriptEslintParser from "@typescript-eslint/parser";+import rule from "./no-exotic-operators.js";++const ruleTester = new RuleTester({+ languageOptions: {+ parser: typescriptEslintParser,+ parserOptions: {+ ecmaVersion: 2022,+ sourceType: "module",+ },+ },+});++ruleTester.run("no-exotic-operators", rule, {+ valid: [+ `value = value ?? fallback;`,+ `const fallback = value ?? otherValue;`,+ `const enabled = first && second;`,+ `const result = base ** exponent;`,+ `const isMatch = first === second;`,+ `const disabled = !enabled;`,+ `const values = [first, second];`,+ `const typed = value as First | Second;`,+ ],+ invalid: [+ {+ code: `value ??= fallback;`,+ errors: [{ messageId: "unexpected", data: { operator: "??=" } }],+ },+ {+ code: `value ||= fallback;`,+ errors: [{ messageId: "unexpected", data: { operator: "||=" } }],+ },+ {+ code: `value &&= fallback;`,+ errors: [{ messageId: "unexpected", data: { operator: "&&=" } }],+ },+ {+ code: `const result = value & mask;`,+ errors: [{ messageId: "unexpected", data: { operator: "&" } }],+ },+ {+ code: `value >>>= 1;`,+ errors: [{ messageId: "unexpected", data: { operator: ">>>=" } }],+ },+ {+ code: `const result = ~value;`,+ errors: [{ messageId: "unexpected", data: { operator: "~" } }],+ },+ {+ code: `value **= exponent;`,+ errors: [{ messageId: "unexpected", data: { operator: "**=" } }],+ },+ {+ code: `const result = (first, second);`,+ errors: [{ messageId: "unexpected", data: { operator: "comma" } }],+ },+ ],+});diff --git a/packages/eslint-plugin/src/rules/no-exotic-operators.ts b/packages/eslint-plugin/src/rules/no-exotic-operators.tsnew file mode 100644index 0000000000..f000b93a64--- /dev/null+++ b/packages/eslint-plugin/src/rules/no-exotic-operators.ts@@ -0,0 +1,73 @@+import { createRule } from "../util.js";++const prohibitedAssignmentOperators = new Set([+ "&&=",+ "||=",+ "??=",+ "&=",+ "|=",+ "^=",+ "<<=",+ ">>=",+ ">>>=",+ "**=",+]);++const prohibitedBinaryOperators = new Set(["&", "|", "^", "<<", ">>", ">>>"]);++const rule = createRule<[], "unexpected">({+ name: "no-exotic-operators",+ meta: {+ type: "suggestion",+ docs: {+ description:+ "Disallow logical assignment, bitwise, exponentiation assignment, and comma operators.",+ },+ messages: {+ unexpected:+ "Avoid the {{operator}} operator; use explicit syntax instead.",+ },+ schema: [],+ },+ defaultOptions: [],+ create(context) {+ return {+ AssignmentExpression(node) {+ if (!prohibitedAssignmentOperators.has(node.operator)) return;++ context.report({+ node,+ messageId: "unexpected",+ data: { operator: node.operator },+ });+ },+ BinaryExpression(node) {+ if (!prohibitedBinaryOperators.has(node.operator)) return;++ context.report({+ node,+ messageId: "unexpected",+ data: { operator: node.operator },+ });+ },+ SequenceExpression(node) {+ context.report({+ node,+ messageId: "unexpected",+ data: { operator: "comma" },+ });+ },+ UnaryExpression(node) {+ if (node.operator !== "~") return;++ context.report({+ node,+ messageId: "unexpected",+ data: { operator: node.operator },+ });+ },+ };+ },+});++export default rule;diff --git a/packages/shared/scripts/seeder/scenarios/rng.ts b/packages/shared/scripts/seeder/scenarios/rng.tsindex 434d41b70d..323d4304a4 100644--- a/packages/shared/scripts/seeder/scenarios/rng.ts+++ b/packages/shared/scripts/seeder/scenarios/rng.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators *//*** Midnight UTC of the current day. Scenario timestamps anchor here (instead* of Date.now()) so same-day re-runs produce identical ORDER BY tuples anddiff --git a/packages/shared/scripts/seeder/utils/clickhouse-builder.ts b/packages/shared/scripts/seeder/utils/clickhouse-builder.tsindex 10997a782f..1a8530415e 100644--- a/packages/shared/scripts/seeder/utils/clickhouse-builder.ts+++ b/packages/shared/scripts/seeder/utils/clickhouse-builder.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import {TraceRecordInsertType,ObservationRecordInsertType,diff --git a/packages/shared/src/db.ts b/packages/shared/src/db.tsindex b7c0dd4c9b..a2efba2a1b 100644--- a/packages/shared/src/db.ts+++ b/packages/shared/src/db.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */// This file exports the prisma db connection, the Prisma Object, and the Typescript types.// This is not imported in the index.ts file of this package, as we must not import this into FE code.diff --git a/packages/shared/src/features/monitors/isValidQuery.ts b/packages/shared/src/features/monitors/isValidQuery.tsindex f189b3f42d..90b19bc704 100644--- a/packages/shared/src/features/monitors/isValidQuery.ts+++ b/packages/shared/src/features/monitors/isValidQuery.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators *//** isValidQuery.ts checks that a Monitor's (view, metric, filters) tuple* resolves against the v2 view declaration in the query package. Consumed as* a zod `superRefine` from the Monitor input schemas in `./types`. */diff --git a/packages/shared/src/features/monitors/service/helpers.test.ts b/packages/shared/src/features/monitors/service/helpers.test.tsindex ff1bf57591..d381d8aa37 100644--- a/packages/shared/src/features/monitors/service/helpers.test.ts+++ b/packages/shared/src/features/monitors/service/helpers.test.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import { MonitorView as PrismaMonitorView, Prisma } from "@prisma/client";import { describe, it, expect } from "vitest";import { z } from "zod";diff --git a/packages/shared/src/features/monitors/service/helpers.ts b/packages/shared/src/features/monitors/service/helpers.tsindex 25e5ae9bef..6c3582468b 100644--- a/packages/shared/src/features/monitors/service/helpers.ts+++ b/packages/shared/src/features/monitors/service/helpers.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators *//** service/helpers.ts contains the mapping + calculate helpers consumed* by MonitorService. Exported so that colocated unit tests can exercise them,* but intentionally not re-exported from the service barrel — internaldiff --git a/packages/shared/src/in-app-agent/server/persistence.ts b/packages/shared/src/in-app-agent/server/persistence.tsindex 6363a40d9b..bf798cb904 100644--- a/packages/shared/src/in-app-agent/server/persistence.ts+++ b/packages/shared/src/in-app-agent/server/persistence.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import { compactEvents } from "@ag-ui/client";import { EventType } from "@ag-ui/core";diff --git a/packages/shared/src/server/llm/errors.ts b/packages/shared/src/server/llm/errors.tsindex 8d07a9e5ba..b7b7cda342 100644--- a/packages/shared/src/server/llm/errors.ts+++ b/packages/shared/src/server/llm/errors.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import { AISDKError, APICallError, RetryError } from "ai";const LLM_VALIDATION_ERROR_MARKER = Symbol.for(diff --git a/packages/shared/src/server/media/MediaPayloadProcessor.ts b/packages/shared/src/server/media/MediaPayloadProcessor.tsindex 5875515b27..42b09e7675 100644--- a/packages/shared/src/server/media/MediaPayloadProcessor.ts+++ b/packages/shared/src/server/media/MediaPayloadProcessor.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import { isMediaContentType, type MediaContentType } from "../../domain/media";const MAX_RECURSION_DEPTH = 10;diff --git a/packages/shared/src/server/otel/OtelIngestionProcessor.ts b/packages/shared/src/server/otel/OtelIngestionProcessor.tsindex ffa5c532a3..55c7cd5ced 100644--- a/packages/shared/src/server/otel/OtelIngestionProcessor.ts+++ b/packages/shared/src/server/otel/OtelIngestionProcessor.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import { randomUUID } from "crypto";import {diff --git a/packages/shared/src/server/queries/clickhouse-sql/search.ts b/packages/shared/src/server/queries/clickhouse-sql/search.tsindex 69faf47b89..b5e4b4915b 100644--- a/packages/shared/src/server/queries/clickhouse-sql/search.ts+++ b/packages/shared/src/server/queries/clickhouse-sql/search.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import { InvalidRequestError } from "../../../errors";import {hasValidTracingSearchTypes,diff --git a/packages/shared/src/server/query-ast/kysely/dialect.ts b/packages/shared/src/server/query-ast/kysely/dialect.tsindex 8b85c5bebd..f6d7f83742 100644--- a/packages/shared/src/server/query-ast/kysely/dialect.ts+++ b/packages/shared/src/server/query-ast/kysely/dialect.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import {DummyDriver,Kysely,diff --git a/packages/shared/src/server/repositories/experimentScoreOptions.ts b/packages/shared/src/server/repositories/experimentScoreOptions.tsindex 5fee21a858..02750bd4a9 100644--- a/packages/shared/src/server/repositories/experimentScoreOptions.ts+++ b/packages/shared/src/server/repositories/experimentScoreOptions.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators *//*** The level-agnostic score-option shape shared by the experiment runs and items* surfaces. Kept free of query imports so it stays a pure, directly testablediff --git a/packages/shared/src/server/services/PromptService/index.ts b/packages/shared/src/server/services/PromptService/index.tsindex d99939a16d..cf71a64997 100644--- a/packages/shared/src/server/services/PromptService/index.ts+++ b/packages/shared/src/server/services/PromptService/index.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import { Redis, Cluster } from "ioredis";import { randomBytes } from "crypto";import { env } from "../../../env";diff --git a/packages/shared/src/server/services/safeBlobKeySegment.ts b/packages/shared/src/server/services/safeBlobKeySegment.tsindex b8eed7cb43..f96fe736e6 100644--- a/packages/shared/src/server/services/safeBlobKeySegment.ts+++ b/packages/shared/src/server/services/safeBlobKeySegment.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import { createHash } from "crypto";import { env } from "../../env";diff --git a/packages/shared/src/utils/unicode.ts b/packages/shared/src/utils/unicode.tsindex 448c7eb117..2ff6c0118e 100644--- a/packages/shared/src/utils/unicode.ts+++ b/packages/shared/src/utils/unicode.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */const BACKSLASH = 92;const U_CHAR = 117;// high surrogate is the first code of a surrogate pair (\uD83D\uDE00 -> 😀)diff --git a/web/src/__tests__/chart-loading-state.clienttest.tsx b/web/src/__tests__/chart-loading-state.clienttest.tsxindex 50c82cddc6..b32c02c583 100644--- a/web/src/__tests__/chart-loading-state.clienttest.tsx+++ b/web/src/__tests__/chart-loading-state.clienttest.tsx@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import React from "react";import { act, fireEvent, render, screen } from "@testing-library/react";import { SLOW_QUERY_HINT_TEXT } from "@langfuse/shared";diff --git a/web/src/__tests__/server/media.servertest.ts b/web/src/__tests__/server/media.servertest.tsindex d481a1552b..5c19203619 100644--- a/web/src/__tests__/server/media.servertest.ts+++ b/web/src/__tests__/server/media.servertest.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import crypto from "crypto";import fs from "fs";import type { Session } from "next-auth";diff --git a/web/src/__tests__/server/multilingual-fulltext-search.servertest.ts b/web/src/__tests__/server/multilingual-fulltext-search.servertest.tsindex 3b6aabbaaf..5c8d7a3555 100644--- a/web/src/__tests__/server/multilingual-fulltext-search.servertest.ts+++ b/web/src/__tests__/server/multilingual-fulltext-search.servertest.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators *//*** Tests for GitHub issue #11538 — "Full-text search fails for non-English text".*diff --git a/web/src/__tests__/server/prompts.v2.servertest.ts b/web/src/__tests__/server/prompts.v2.servertest.tsindex d0848ecd2d..2a9976fbed 100644--- a/web/src/__tests__/server/prompts.v2.servertest.ts+++ b/web/src/__tests__/server/prompts.v2.servertest.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import { prisma } from "@langfuse/shared/src/db";import { disconnectQueues, makeAPICall } from "@/src/__tests__/test-utils";import type { NextApiRequest, NextApiResponse } from "next";diff --git a/web/src/components/editor/autoScrollOnSelectionDrag.ts b/web/src/components/editor/autoScrollOnSelectionDrag.tsindex f9b0e5eb41..edb30e2b4e 100644--- a/web/src/components/editor/autoScrollOnSelectionDrag.ts+++ b/web/src/components/editor/autoScrollOnSelectionDrag.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import { type EditorView, ViewPlugin } from "@uiw/react-codemirror";import { type Extension } from "@codemirror/state";diff --git a/web/src/components/table/data-table-controls.clienttest.tsx b/web/src/components/table/data-table-controls.clienttest.tsxindex 293b40da04..9568b2dc7f 100644--- a/web/src/components/table/data-table-controls.clienttest.tsx+++ b/web/src/components/table/data-table-controls.clienttest.tsx@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import { act, fireEvent, render, screen } from "@testing-library/react";import * as AccordionPrimitive from "@radix-ui/react-accordion";import { eventsTableCols, type FilterState } from "@langfuse/shared";diff --git a/web/src/ee/features/billing/server/chb/chbProjectEvents.ts b/web/src/ee/features/billing/server/chb/chbProjectEvents.tsindex fe38d3be27..a16e8bb826 100644--- a/web/src/ee/features/billing/server/chb/chbProjectEvents.ts+++ b/web/src/ee/features/billing/server/chb/chbProjectEvents.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import {EventBridgeClient,PutEventsCommand,diff --git a/web/src/features/batch-actions/components/AddObservationsToDatasetDialog/FinalPreviewStep.tsx b/web/src/features/batch-actions/components/AddObservationsToDatasetDialog/FinalPreviewStep.tsxindex b60a20cccb..50c14722cd 100644--- a/web/src/features/batch-actions/components/AddObservationsToDatasetDialog/FinalPreviewStep.tsx+++ b/web/src/features/batch-actions/components/AddObservationsToDatasetDialog/FinalPreviewStep.tsx@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import { useMemo } from "react";import { Button } from "@/src/components/ui/button";import { Pencil } from "lucide-react";diff --git a/web/src/features/chart-view-prototype/lib/fixtures.ts b/web/src/features/chart-view-prototype/lib/fixtures.tsindex 6a60d772a8..20621bbc86 100644--- a/web/src/features/chart-view-prototype/lib/fixtures.ts+++ b/web/src/features/chart-view-prototype/lib/fixtures.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import {type ObservationKind,type ObservationLevel,diff --git a/web/src/features/evals/utils/code-eval-template-validation.ts b/web/src/features/evals/utils/code-eval-template-validation.tsindex 39f25cdcf0..58eeff50ed 100644--- a/web/src/features/evals/utils/code-eval-template-validation.ts+++ b/web/src/features/evals/utils/code-eval-template-validation.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import type * as ts from "@typescript/typescript6";import type { Diagnostic as RuffDiagnostic } from "@astral-sh/ruff-wasm-web";import {diff --git a/web/src/features/events/components/outlier-strip/lib/fixtures.ts b/web/src/features/events/components/outlier-strip/lib/fixtures.tsindex 02dbf6bb66..32d5372011 100644--- a/web/src/features/events/components/outlier-strip/lib/fixtures.ts+++ b/web/src/features/events/components/outlier-strip/lib/fixtures.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import {prepareOutlierSeries,type OutlierStripBin,diff --git a/web/src/features/events/hooks/useEventsFilterOptions.ts b/web/src/features/events/hooks/useEventsFilterOptions.tsindex 051f21add2..5cf1ba7182 100644--- a/web/src/features/events/hooks/useEventsFilterOptions.ts+++ b/web/src/features/events/hooks/useEventsFilterOptions.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import { api, type RouterInputs, type RouterOutputs } from "@/src/utils/api";import { useCallback, useMemo, useState } from "react";import { type FilterState, type TimeFilter } from "@langfuse/shared";diff --git a/web/src/features/events/server/eventsService.ts b/web/src/features/events/server/eventsService.tsindex abdc37813e..0b3767ef9a 100644--- a/web/src/features/events/server/eventsService.ts+++ b/web/src/features/events/server/eventsService.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import { type z } from "zod";import {type FilterCondition,diff --git a/web/src/features/experiments/server/router.ts b/web/src/features/experiments/server/router.tsindex 8cbdfc8bea..884ce0fa72 100644--- a/web/src/features/experiments/server/router.ts+++ b/web/src/features/experiments/server/router.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import { z } from "zod/v4";import { randomUUID } from "crypto";import { addDays } from "date-fns";diff --git a/web/src/features/in-app-agent/components/utils/utils.ts b/web/src/features/in-app-agent/components/utils/utils.tsindex f26c33251e..f50d9ebc61 100644--- a/web/src/features/in-app-agent/components/utils/utils.ts+++ b/web/src/features/in-app-agent/components/utils/utils.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import { z } from "zod";import type { InAppAgentWindowMessage } from "../InAppAgentWindow";import type { InAppAgentPendingToolApproval } from "../InAppAiAgentProvider";diff --git a/web/src/features/posthog-analytics/server/backendActivity.ts b/web/src/features/posthog-analytics/server/backendActivity.tsindex b9550fd054..96aa2e1bff 100644--- a/web/src/features/posthog-analytics/server/backendActivity.ts+++ b/web/src/features/posthog-analytics/server/backendActivity.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import { logger, redis } from "@langfuse/shared/src/server";import { env } from "@/src/env.mjs";diff --git a/web/src/features/scores-chart-view/components/ScoreOutlierBarStrip/ScoreOutlierBarStrip.stories.tsx b/web/src/features/scores-chart-view/components/ScoreOutlierBarStrip/ScoreOutlierBarStrip.stories.tsxindex 82bb52fc0c..d04c5a5998 100644--- a/web/src/features/scores-chart-view/components/ScoreOutlierBarStrip/ScoreOutlierBarStrip.stories.tsx+++ b/web/src/features/scores-chart-view/components/ScoreOutlierBarStrip/ScoreOutlierBarStrip.stories.tsx@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import { fn } from "storybook/test";import preview from "../../../../../.storybook/preview";import { ScoreOutlierBarStrip } from "@/src/features/scores-chart-view/components/ScoreOutlierBarStrip/ScoreOutlierBarStrip";diff --git a/web/src/features/search-bar/lib/validate.ts b/web/src/features/search-bar/lib/validate.tsindex b71e67b674..28094b098a 100644--- a/web/src/features/search-bar/lib/validate.ts+++ b/web/src/features/search-bar/lib/validate.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */// Semantic validation — the single "is this committable" gate.//// The tolerant parser accepts structurally-fine input that the flat Langfusediff --git a/web/src/features/sessions/SessionMetadataJsonPathControl.tsx b/web/src/features/sessions/SessionMetadataJsonPathControl.tsxindex 771d7b6083..6516d7e4ab 100644--- a/web/src/features/sessions/SessionMetadataJsonPathControl.tsx+++ b/web/src/features/sessions/SessionMetadataJsonPathControl.tsx@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import { type FilterState } from "@langfuse/shared";import {hashKey,diff --git a/web/src/features/sessions/sessionHeaderVisibility.ts b/web/src/features/sessions/sessionHeaderVisibility.tsindex 51700f0105..b81dc648d2 100644--- a/web/src/features/sessions/sessionHeaderVisibility.ts+++ b/web/src/features/sessions/sessionHeaderVisibility.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import { z } from "zod";export const MAX_STORED_HIDDEN_SESSION_HEADER_DETAILS = 1_000;diff --git a/web/src/features/traces/components/AdvancedJsonViewer/lazy/byteJsonIndex.ts b/web/src/features/traces/components/AdvancedJsonViewer/lazy/byteJsonIndex.tsindex bb5a3f68e9..aac02dc771 100644--- a/web/src/features/traces/components/AdvancedJsonViewer/lazy/byteJsonIndex.ts+++ b/web/src/features/traces/components/AdvancedJsonViewer/lazy/byteJsonIndex.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators *//*** Lazy UTF-8 JSON byte indexer (LFE-11082, spike LFE-11079).*diff --git a/web/src/features/traces/fns/timeline/focusLens.ts b/web/src/features/traces/fns/timeline/focusLens.tsindex f48a06a071..93ce0484d7 100644--- a/web/src/features/traces/fns/timeline/focusLens.ts+++ b/web/src/features/traces/fns/timeline/focusLens.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators *//*** A focus+context lens over a list of rows — GROUNDWORK, not in use.*diff --git a/web/src/features/web-callouts/server/rateLimit.ts b/web/src/features/web-callouts/server/rateLimit.tsindex 6739433936..2b9737d3cf 100644--- a/web/src/features/web-callouts/server/rateLimit.ts+++ b/web/src/features/web-callouts/server/rateLimit.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import { TRPCError } from "@trpc/server";import { RateLimiterRedis, RateLimiterRes } from "rate-limiter-flexible";import { type Cluster, type Redis } from "ioredis";diff --git a/web/src/hooks/parsedIoCacheKey.ts b/web/src/hooks/parsedIoCacheKey.tsindex 70e98b91df..a440a31e0d 100644--- a/web/src/hooks/parsedIoCacheKey.ts+++ b/web/src/hooks/parsedIoCacheKey.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators *//*** Cheap, stable React Query cache signatures for parsed-I/O hooks* (`useParsedTrace`, `useParsedObservation`) — LFE-10992, part of thediff --git a/web/src/hooks/useAnimatedBusy.ts b/web/src/hooks/useAnimatedBusy.tsindex 9844250e5e..dea2243bf6 100644--- a/web/src/hooks/useAnimatedBusy.ts+++ b/web/src/hooks/useAnimatedBusy.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import { useEffect, useRef, useState } from "react";export type AnimatedBusy = {diff --git a/web/src/pages/project/~/[[...path]].tsx b/web/src/pages/project/~/[[...path]].tsxindex dc953c9c4c..a4006aa97d 100644--- a/web/src/pages/project/~/[[...path]].tsx+++ b/web/src/pages/project/~/[[...path]].tsx@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import {type GetServerSideProps,type GetServerSidePropsContext,diff --git a/worker/src/__tests__/batchDataRetentionCleaner.test.ts b/worker/src/__tests__/batchDataRetentionCleaner.test.tsindex fe5d712641..e7502cb977 100644--- a/worker/src/__tests__/batchDataRetentionCleaner.test.ts+++ b/worker/src/__tests__/batchDataRetentionCleaner.test.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import { afterEach, beforeEach, expect, describe, it, vi } from "vitest";import { randomUUID } from "crypto";import {diff --git a/worker/src/__tests__/traceBatching.test.ts b/worker/src/__tests__/traceBatching.test.tsindex d5d3a5711e..7c4f5a71df 100644--- a/worker/src/__tests__/traceBatching.test.ts+++ b/worker/src/__tests__/traceBatching.test.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import { randomBytes, randomUUID } from "node:crypto";import { Queue, QueueEvents, Worker } from "bullmq";import {diff --git a/worker/src/features/evaluation/codeBased/awsLambdaCodeEvalDispatcher.integration.test.ts b/worker/src/features/evaluation/codeBased/awsLambdaCodeEvalDispatcher.integration.test.tsindex 3a9679c581..bd5d18c652 100644--- a/worker/src/features/evaluation/codeBased/awsLambdaCodeEvalDispatcher.integration.test.ts+++ b/worker/src/features/evaluation/codeBased/awsLambdaCodeEvalDispatcher.integration.test.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import { describe, expect, it } from "vitest";import {AwsLambdaCodeEvalDispatcher,diff --git a/worker/src/features/evaluation/deterministicSampling.ts b/worker/src/features/evaluation/deterministicSampling.tsindex efb4fd2948..00fbe03be8 100644--- a/worker/src/features/evaluation/deterministicSampling.ts+++ b/worker/src/features/evaluation/deterministicSampling.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import { createHash } from "node:crypto";const SAMPLING_DOMAIN = "langfuse:evaluation-sampling:v1\0";diff --git a/worker/src/features/in-app-agent/executeInAppAgentRun.test.ts b/worker/src/features/in-app-agent/executeInAppAgentRun.test.tsindex 38bbba58a6..17503869e7 100644--- a/worker/src/features/in-app-agent/executeInAppAgentRun.test.ts+++ b/worker/src/features/in-app-agent/executeInAppAgentRun.test.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import { randomUUID } from "crypto";import { beforeEach, describe, expect, it, vi } from "vitest";diff --git a/worker/src/features/in-app-agent/executeInAppAgentRun.ts b/worker/src/features/in-app-agent/executeInAppAgentRun.tsindex e867232af8..102299ba68 100644--- a/worker/src/features/in-app-agent/executeInAppAgentRun.ts+++ b/worker/src/features/in-app-agent/executeInAppAgentRun.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import { Role } from "@langfuse/shared";import { prisma } from "@langfuse/shared/src/db";import {diff --git a/worker/src/features/in-app-agent/runtime/agent.ts b/worker/src/features/in-app-agent/runtime/agent.tsindex d095f08dd6..52da7e5ad1 100644--- a/worker/src/features/in-app-agent/runtime/agent.ts+++ b/worker/src/features/in-app-agent/runtime/agent.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import { EventType } from "@ag-ui/core";import { MastraAgent } from "@ag-ui/mastra";import { IN_APP_AGENT_SYSTEM_PROMPT_TEMPLATE } from "@langfuse/shared/in-app-agent/server/systemPrompt";diff --git a/worker/src/features/in-app-agent/runtime/instrumentation.ts b/worker/src/features/in-app-agent/runtime/instrumentation.tsindex 96cb5ce6be..144ae55f5a 100644--- a/worker/src/features/in-app-agent/runtime/instrumentation.ts+++ b/worker/src/features/in-app-agent/runtime/instrumentation.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import { EventType } from "@ag-ui/core";import { Buffer } from "node:buffer";import { getInternalTracingHandler, logger } from "@langfuse/shared/src/server";diff --git a/worker/src/queues/__tests__/otelFlueMapping.test.ts b/worker/src/queues/__tests__/otelFlueMapping.test.tsindex 180f4d7b59..a8f7f6a3f3 100644--- a/worker/src/queues/__tests__/otelFlueMapping.test.ts+++ b/worker/src/queues/__tests__/otelFlueMapping.test.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators *//*** Tests for mapping Flue (https://flueframework.com) OpenTelemetry spans to the* Langfuse data model.diff --git a/worker/src/queues/__tests__/otelMetadataProcessing.test.ts b/worker/src/queues/__tests__/otelMetadataProcessing.test.tsindex 2c893d0088..d0f46990a6 100644--- a/worker/src/queues/__tests__/otelMetadataProcessing.test.ts+++ b/worker/src/queues/__tests__/otelMetadataProcessing.test.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators *//*** Tests for OTel metadata processing* Flow: ResourceSpan -> processToEvent() -> createEventRecord() -> metadata_names/metadata_raw_valuesdiff --git a/worker/src/queues/__tests__/otelToObservationForEval.test.ts b/worker/src/queues/__tests__/otelToObservationForEval.test.tsindex 52ad7824b3..32aa379eb3 100644--- a/worker/src/queues/__tests__/otelToObservationForEval.test.ts+++ b/worker/src/queues/__tests__/otelToObservationForEval.test.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators *//*** Test suite to verify that OTEL events coming through the ingestion pipeline* correctly conform to the ObservationForEval schema.diff --git a/worker/src/queues/otelIngestionQueue.ts b/worker/src/queues/otelIngestionQueue.tsindex 5d4377ef0a..3b5045a629 100644--- a/worker/src/queues/otelIngestionQueue.ts+++ b/worker/src/queues/otelIngestionQueue.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import { Job, Processor } from "bullmq";import { z } from "zod";import {diff --git a/worker/src/services/ClickhouseWriter/index.ts b/worker/src/services/ClickhouseWriter/index.tsindex 549dee4acd..7b200f269a 100644--- a/worker/src/services/ClickhouseWriter/index.ts+++ b/worker/src/services/ClickhouseWriter/index.ts@@ -1,3 +1,4 @@+/* eslint-disable @repo/no-exotic-operators */import {clickhouseClient,ClickhouseClientType,