Skip to content

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

chore(web): Eslint rule: `component-file-structure` (#18952)

Ben Bachem16cd33cabb10
diff --git a/packages/eslint-plugin/src/index.ts b/packages/eslint-plugin/src/index.ts
index 35f070147f..9effc265b0 100644
--- a/packages/eslint-plugin/src/index.ts
+++ b/packages/eslint-plugin/src/index.ts
@@ -1,5 +1,5 @@
import { default as noTailwindOverflowScroll } from "./rules/no-tailwind-overflow-scroll.js";
-import { default as filenameMatchesExport } from "./rules/filename-matches-export.js";
+import { default as componentFileStructure } from "./rules/component-file-structure.js";
import { 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";
@@ -20,7 +20,7 @@ import { default as storybookPlayNoImplementationDetailAssertions } from "./rule
const plugin = {
rules: {
- "filename-matches-export": filenameMatchesExport,
+ "component-file-structure": componentFileStructure,
"no-abstracted-overlay-trigger": noAbstractedOverlayTrigger,
"no-arbitrary-colors": noArbitraryColors,
"no-exotic-operators": noExoticOperators,
diff --git a/packages/eslint-plugin/src/react-components.ts b/packages/eslint-plugin/src/react-components.ts
index 85ed1a9d22..733cc3fcf7 100644
--- a/packages/eslint-plugin/src/react-components.ts
+++ b/packages/eslint-plugin/src/react-components.ts
@@ -308,15 +308,13 @@ function getForwardRefPropsType(
return getCallTypeArguments(node)[1] ?? null;
}
-function isComponentWrapperCall(
- node: TSESTree.Node,
-): node is TSESTree.CallExpression {
- if (node.type !== AST_NODE_TYPES.CallExpression) return false;
+export function isComponentWrapperCall(node: TSESTree.CallExpression): boolean {
const callee = node.callee;
return (
(callee.type === AST_NODE_TYPES.Identifier &&
(callee.name === "memo" || callee.name === "forwardRef")) ||
(callee.type === AST_NODE_TYPES.MemberExpression &&
+ !callee.computed &&
callee.property.type === AST_NODE_TYPES.Identifier &&
(callee.property.name === "memo" ||
callee.property.name === "forwardRef"))
@@ -336,7 +334,11 @@ function unwrapComponentInit(node: TSESTree.Node): TSESTree.Node {
continue;
}
- if (isComponentWrapperCall(current) && current.arguments[0]) {
+ if (
+ current.type === AST_NODE_TYPES.CallExpression &&
+ isComponentWrapperCall(current) &&
+ current.arguments[0]
+ ) {
const firstArg = current.arguments[0];
if (
firstArg.type === AST_NODE_TYPES.ArrowFunctionExpression ||
@@ -436,11 +438,25 @@ function visitReturnExpressionsInStatement(
onReturnExpression,
);
visitReturnExpressionsInStatement(statement.finalizer, onReturnExpression);
+ return;
+ }
+ if (
+ statement.type === AST_NODE_TYPES.ForStatement ||
+ statement.type === AST_NODE_TYPES.ForInStatement ||
+ statement.type === AST_NODE_TYPES.ForOfStatement ||
+ statement.type === AST_NODE_TYPES.WhileStatement ||
+ statement.type === AST_NODE_TYPES.DoWhileStatement ||
+ statement.type === AST_NODE_TYPES.LabeledStatement
+ ) {
+ visitReturnExpressionsInStatement(statement.body, onReturnExpression);
}
}
export function visitFunctionReturnExpressions(
- node: TSESTree.ArrowFunctionExpression | TSESTree.FunctionExpression,
+ node:
+ | TSESTree.ArrowFunctionExpression
+ | TSESTree.FunctionExpression
+ | TSESTree.FunctionDeclaration,
onReturnExpression: (node: TSESTree.Expression) => void,
) {
if (node.type === AST_NODE_TYPES.ArrowFunctionExpression && node.expression) {
@@ -597,7 +613,11 @@ function getWrappedForwardRefPropsType(
continue;
}
- if (!isComponentWrapperCall(current)) return null;
+ if (
+ current.type !== AST_NODE_TYPES.CallExpression ||
+ !isComponentWrapperCall(current)
+ )
+ return null;
const propsType = getForwardRefPropsType(current);
if (propsType) return propsType;
diff --git a/packages/eslint-plugin/src/rules/component-file-structure.test.ts b/packages/eslint-plugin/src/rules/component-file-structure.test.ts
new file mode 100644
index 0000000000..64bbf9a448
--- /dev/null
+++ b/packages/eslint-plugin/src/rules/component-file-structure.test.ts
@@ -0,0 +1,251 @@
+import { RuleTester } from "@typescript-eslint/rule-tester";
+import * as parser from "@typescript-eslint/parser";
+import rule from "./component-file-structure.js";
+
+const tester = new RuleTester({
+ languageOptions: { parser, parserOptions: { ecmaFeatures: { jsx: true } } },
+});
+tester.run("component-file-structure", rule, {
+ valid: [
+ ...[
+ "export const Button = () => <button />; export default Button;",
+ "export default unknown;",
+ "export function Button() { return <button />; } export default Button;",
+ "const Button = () => <button />; export { Button, Button as default };",
+ "export default function Button() { return <button />; } export { Button };",
+ "export default memo(function Button() { return <button />; });",
+ "export default React.forwardRef(function Button() { return <button />; });",
+ "export default memo(forwardRef(function Button() { return <button />; }));",
+ "function Button() { return <button />; } export default Object.assign(Button, {});",
+ "export default Object.assign(function Button() { return <button />; }, {});",
+ ].map((code) => ({ code, filename: "/repo/Button.tsx" })),
+ ...[
+ "export function Button() { const content = <div />; return content; }",
+ "export function createButton() { const Button = () => <div />; return Button; }",
+ "export function value(content) { return content; }",
+ "export function value() { return unknown; }",
+ "export function value() { let content; return content; }",
+ "export function value() { const content = content; return content; }",
+ "const content = <div />; export function value(content) { return content; }",
+ ].map((code) => ({ code, filename: "/repo/Button.tsx" })),
+ ...[
+ "export function renderLevelIcon(value: string) { if (!value) return null; return <span />; }",
+ "export function renderFilterIcon(value: string) { return <Icon name={value} />; }",
+ "export const renderCount = (value: number) => <span>{value}</span>;",
+ "export const renderFlag = (value: boolean) => <span>{String(value)}</span>;",
+ "export function Button(props: { text: string }) { return <button>{props.text}</button>; }",
+ "export const Button = () => <button />; export function renderIcon(value: string) { return <Icon name={value} />; }",
+ ].map((code) => ({ code, filename: "/repo/Button.tsx" })),
+ {
+ code: "function button() { return <div />; }",
+ filename: "/repo/anything.tsx",
+ },
+ {
+ code: "const renderChip = () => <div />; export const Button = () => renderChip();",
+ filename: "/repo/Button.tsx",
+ },
+ {
+ code: "const button = () => <div />; export { button as Button };",
+ filename: "/repo/Button.tsx",
+ },
+ ...[
+ "export default function Button() { return <></>; }",
+ "export default class Button extends Component {}",
+ "export default class Button extends React.PureComponent {}",
+ "export const Button = class extends PureComponent {};",
+ "export const Button = class extends React.Component {};",
+ "export const Button = function () { return <div />; };",
+ "export const Button: React.FC = () => null;",
+ "export const Button: React.FunctionComponent = () => null;",
+ "export const Button = React.memo(() => <div />);",
+ "export const Button = React.forwardRef(() => <div />);",
+ "export const Button = (() => <div />) as React.FC;",
+ "export const Button = (() => <div />) satisfies React.FC;",
+ "const Root = () => <div />; export const Button = Root!;",
+ "export function Button() { return true ? <div /> : null; }",
+ "export function Button() { return true ? null : <div />; }",
+ "export function Button() { return true && <div />; }",
+ "export function Button() { return <div /> || null; }",
+ "export function Button() { return (<div /> as React.ReactNode); }",
+ "export function Button() { return (<div /> satisfies React.ReactNode); }",
+ "export function Button() { return null; }",
+ "const Button = () => <div />; export { Button as default };",
+ 'const Root = () => <div />; export { Root as "Button" };',
+ "export const value: string = 'hello';",
+ "export const value = unknown();",
+ "export const value = object.method();",
+ "export const value = object[key]();",
+ "export const value = React[memo](() => <div />);",
+ "export const value = React['memo'](() => <div />);",
+ "export const value = (() => 1)();",
+ "export const value = Object.assign();",
+ "export const value = Object.assign({}, {});",
+ "export const value = unresolved;",
+ "export const value = value;",
+ "export const value = true ? 1 : 2;",
+ "export const value = false && 1;",
+ "export const value = null;",
+ "export const value: number = 1;",
+ "export let value;",
+ "export class Value {}",
+ "export class Value extends Other {}",
+ "export class Value extends Other.Base {}",
+ "export class Value extends (getBase()) {}",
+ "export function value() {}",
+ "export function value() { return; }",
+ "export function value() { return 1; }",
+ "export function value() { return true ? 1 : 2; }",
+ "export function Button({ variant }) { const look = variant; return <div>{look}</div>; }",
+ "import { Value } from './other'; const value = Value;",
+ "const value = Math;",
+ "export type Value = {};",
+ "export interface Value {}",
+ "export { Component } from './other';",
+ "import { Button } from './other'; export { Button };",
+ "class Button extends React.Component {} export { Button };",
+ "const value = 1; export { type value };",
+ "export const { value } = source;",
+ "export default 1;",
+ "export default function () { return 1; }",
+ "export default class {}",
+ "function outer() { function Button() { return <div />; } return Button; } function Button() { return 1; }",
+ ].map((code) => ({ code, filename: "/repo/Button.tsx" })),
+ {
+ code: "export function Button() { return <button />; }",
+ filename: "/repo/Button.tsx",
+ },
+ {
+ code: "function Inner() { return <div />; } export const Button = () => <Inner />; export const value = 1;",
+ filename: "/repo/Button.tsx",
+ },
+ {
+ code: "function Root() { return <div />; } function Item() { return <div />; } const Accordion = Object.assign(Root, { Item }); export { Accordion };",
+ filename: "/repo/Accordion.tsx",
+ },
+ {
+ code: "import { Field } from './Field'; function Root() { return <form />; } export const Form = Object.assign(Root, { Field });",
+ filename: "/repo/Form.tsx",
+ },
+ {
+ code: "export const Button = memo(() => <div />);",
+ filename: "/repo/Button.tsx",
+ },
+ {
+ code: "export function createForm() { function Form() { return <form />; } return Object.assign(Form, {}); }",
+ filename: "/repo/createForm.tsx",
+ },
+ {
+ code: "export type Props = {}; export const value = 1;",
+ filename: "/repo/anything.ts",
+ },
+ {
+ code: "const Internal = () => <div />; export { Internal as Button };",
+ filename: "/repo/Button.tsx",
+ },
+ {
+ code: "const Button = forwardRef(() => null); export default Button;",
+ filename: "/repo/Button.tsx",
+ },
+ {
+ code: "export class Button extends React.Component { render() { return <div />; } }",
+ filename: "/repo/Button.tsx",
+ },
+ ],
+ invalid: [
+ {
+ code: "export const Button = () => <button />; export default Button; export const Other = () => <span />;",
+ filename: "/repo/Button.tsx",
+ errors: [{ messageId: "multiple" }],
+ },
+ {
+ code: "export const Button = () => <button />; export default Button;",
+ filename: "/repo/Other.tsx",
+ errors: [{ messageId: "filename" }],
+ },
+ ...[
+ "export default memo(function Button() { return <button />; });",
+ "export default forwardRef(function Button() { return <button />; });",
+ "export default Object.assign(function Button() { return <button />; }, {});",
+ ].map((code) => ({
+ code,
+ filename: "/repo/Other.tsx",
+ errors: [{ messageId: "filename" as const }],
+ })),
+ {
+ code: "export default memo(function button() { return <button />; });",
+ filename: "/repo/button.tsx",
+ errors: [{ messageId: "pascalCase" }],
+ },
+ {
+ code: "export default memo(() => <button />);",
+ filename: "/repo/Button.tsx",
+ errors: [{ messageId: "anonymous" }],
+ },
+ {
+ code: "export function Wrong() { const content = <div />; return content; }",
+ filename: "/repo/Other.tsx",
+ errors: [{ messageId: "filename" }],
+ },
+ {
+ code: "export function First() { const content = <div />; return content; } export function Second() { const content = <span />; return content; }",
+ filename: "/repo/First.tsx",
+ errors: [{ messageId: "multiple" }],
+ },
+ {
+ code: "export function Wrong() { const content = <div />; const alias = content; return ready ? alias : null; }",
+ filename: "/repo/Other.tsx",
+ errors: [{ messageId: "filename" }],
+ },
+ ...[
+ "for (;;) { return <div />; }",
+ "for (const key in items) { return <div />; }",
+ "for (const item of items) { return <div />; }",
+ "while (ready) { return <div />; }",
+ "do { return <div />; } while (ready);",
+ "label: { return <div />; }",
+ "if (ready) return <div />; else return null;",
+ "switch (kind) { case 'first': return <div />; default: return null; }",
+ "try { return <div />; } catch (error) { return null; } finally { cleanup(); }",
+ "return <div />; return null;",
+ ].map((body) => ({
+ code: `export function Button() { ${body} }`,
+ filename: "/repo/Wrong.tsx",
+ errors: [{ messageId: "filename" as const }],
+ })),
+ {
+ code: "export const Button = () => <div />; export const Other = () => <div />;",
+ filename: "/repo/wrong.tsx",
+ errors: [{ messageId: "multiple" }],
+ },
+ {
+ code: "export const Button = () => <div />;",
+ filename: "/repo/Other.tsx",
+ errors: [{ messageId: "filename" }],
+ },
+ {
+ code: "export function button() { return <div />; }",
+ filename: "/repo/button.tsx",
+ errors: [{ messageId: "pascalCase" }],
+ },
+ {
+ code: "export const button = () => <div />;",
+ filename: "/repo/button.tsx",
+ errors: [{ messageId: "pascalCase" }],
+ },
+ {
+ code: "export default () => <div />;",
+ filename: "/repo/Button.tsx",
+ errors: [{ messageId: "anonymous" }],
+ },
+ {
+ code: "function Root() { return <div />; } export function Item() { return <div />; } export const Accordion = Object.assign(Root, { Item });",
+ filename: "/repo/Accordion.tsx",
+ errors: [{ messageId: "multiple" }],
+ },
+ {
+ code: "const Button = () => <div />; export { Button as button };",
+ filename: "/repo/button.tsx",
+ errors: [{ messageId: "pascalCase" }],
+ },
+ ],
+});
diff --git a/packages/eslint-plugin/src/rules/component-file-structure.ts b/packages/eslint-plugin/src/rules/component-file-structure.ts
new file mode 100644
index 0000000000..f847c0c09e
--- /dev/null
+++ b/packages/eslint-plugin/src/rules/component-file-structure.ts
@@ -0,0 +1,262 @@
+import { basename, extname } from "node:path";
+import { AST_NODE_TYPES as N, type TSESTree } from "@typescript-eslint/utils";
+import {
+ isComponentWrapperCall,
+ visitFunctionReturnExpressions,
+} from "../react-components.js";
+import { createRule } from "../util.js";
+
+export default createRule({
+ name: "component-file-structure",
+ meta: {
+ type: "suggestion",
+ docs: {
+ description:
+ "Require a single PascalCase component export matching its filename.",
+ },
+ messages: {
+ multiple:
+ "Only one React component may be exported per file. Move additional exported components into their own files, make them private, or attach them as composite subcomponents.",
+ filename:
+ 'Filename does not match component name "{{ name }}". Rename the file to "{{ name }}" while keeping its extension.',
+ pascalCase:
+ 'Component "{{ name }}" is not PascalCase. Rename it to PascalCase and update its references.',
+ anonymous:
+ "The exported React component is anonymous. Give it a PascalCase name using a named declaration or assign it to a PascalCase variable before exporting it.",
+ },
+ schema: [],
+ },
+ defaultOptions: [],
+ create(context) {
+ const exports: {
+ name: string | undefined;
+ value: TSESTree.Node;
+ node: TSESTree.Node;
+ }[] = [];
+
+ function getDefinition(node: TSESTree.Identifier) {
+ let scope: ReturnType<typeof context.sourceCode.getScope> | null =
+ context.sourceCode.getScope(node);
+ while (scope && !scope.set.has(node.name)) scope = scope.upper;
+ return scope?.set.get(node.name)?.defs[0];
+ }
+
+ function isObjectAssignCall(node: TSESTree.CallExpression) {
+ const callee = node.callee;
+ return (
+ callee.type === N.MemberExpression &&
+ callee.object.type === N.Identifier &&
+ callee.object.name === "Object" &&
+ !callee.computed &&
+ callee.property.type === N.Identifier &&
+ callee.property.name === "assign"
+ );
+ }
+
+ function renders(
+ value: TSESTree.Expression,
+ name: string,
+ seen: Set<TSESTree.Node>,
+ ): boolean {
+ if (seen.has(value)) return false;
+ seen.add(value);
+ if (value.type === N.Identifier) {
+ const definition = getDefinition(value);
+ if (definition?.type !== "Variable") return false;
+ const declaration = definition.node;
+ return declaration.init ? renders(declaration.init, name, seen) : false;
+ }
+ if (value.type === N.JSXElement || value.type === N.JSXFragment)
+ return true;
+ if (value.type === N.ConditionalExpression)
+ return (
+ renders(value.consequent, name, seen) ||
+ renders(value.alternate, name, seen)
+ );
+ if (value.type === N.LogicalExpression)
+ return (
+ renders(value.left, name, seen) || renders(value.right, name, seen)
+ );
+ if (
+ value.type === N.TSAsExpression ||
+ value.type === N.TSSatisfiesExpression
+ )
+ return renders(value.expression, name, seen);
+ return (
+ value.type === N.Literal && value.value === null && /^[A-Z]/.test(name)
+ );
+ }
+
+ function isComponent(
+ node: TSESTree.Node,
+ name: string,
+ seen: Set<TSESTree.Node>,
+ ): boolean {
+ if (seen.has(node)) return false;
+ seen.add(node);
+ if (node.type === N.Identifier) {
+ const definition = getDefinition(node);
+ if (!definition) return false;
+ if (
+ definition.type !== "Variable" &&
+ definition.type !== "FunctionName" &&
+ definition.type !== "ClassName"
+ )
+ return false;
+ return isComponent(definition.node, name, seen);
+ }
+ if (node.type === N.VariableDeclarator) {
+ if (
+ node.id.type === N.Identifier &&
+ node.id.typeAnnotation &&
+ /\b(?:FC|FunctionComponent|ComponentType)\b/.test(
+ context.sourceCode.getText(node.id.typeAnnotation),
+ )
+ )
+ return true;
+ return node.init ? isComponent(node.init, name, seen) : false;
+ }
+ if (
+ node.type === N.TSAsExpression ||
+ node.type === N.TSSatisfiesExpression ||
+ node.type === N.TSNonNullExpression
+ )
+ return isComponent(node.expression, name, seen);
+ if (node.type === N.CallExpression) {
+ if (isComponentWrapperCall(node)) return true;
+ if (isObjectAssignCall(node)) {
+ const root = node.arguments[0];
+ return root ? isComponent(root, name, seen) : false;
+ }
+ return false;
+ }
+ if (node.type === N.ClassDeclaration || node.type === N.ClassExpression) {
+ const base = node.superClass;
+ return (
+ !!base &&
+ ((base.type === N.Identifier &&
+ /^(Pure)?Component$/.test(base.name)) ||
+ (base.type === N.MemberExpression &&
+ base.property.type === N.Identifier &&
+ /^(Pure)?Component$/.test(base.property.name)))
+ );
+ }
+ if (
+ node.type !== N.FunctionDeclaration &&
+ node.type !== N.FunctionExpression &&
+ node.type !== N.ArrowFunctionExpression
+ )
+ return false;
+ const props = node.params[0];
+ if (props?.type === N.Identifier) {
+ const annotation = props.typeAnnotation?.typeAnnotation;
+ // React supplies a props object, not a primitive callback argument.
+ if (
+ annotation?.type === N.TSStringKeyword ||
+ annotation?.type === N.TSNumberKeyword ||
+ annotation?.type === N.TSBooleanKeyword
+ )
+ return false;
+ }
+ // Nested function returns belong to factories' components, not the factory.
+ let hasRender = false;
+ visitFunctionReturnExpressions(node, (value) => {
+ hasRender ||= renders(value, name, new Set());
+ });
+ return hasRender;
+ }
+
+ return {
+ ExportNamedDeclaration(node) {
+ if (node.exportKind === "type" || node.source) return;
+ const declaration = node.declaration;
+ if (declaration?.type === N.VariableDeclaration) {
+ for (const value of declaration.declarations) {
+ if (value.id.type === N.Identifier)
+ exports.push({ name: value.id.name, value, node: value });
+ }
+ } else if (
+ declaration &&
+ (declaration.type === N.FunctionDeclaration ||
+ declaration.type === N.ClassDeclaration) &&
+ declaration.id
+ ) {
+ exports.push({ name: declaration.id.name, value: declaration, node });
+ }
+ for (const specifier of node.specifiers) {
+ if (specifier.exportKind === "type") continue;
+ const name =
+ specifier.exported.type === N.Identifier
+ ? specifier.exported.name
+ : specifier.exported.value;
+ exports.push({
+ name: name === "default" ? specifier.local.name : name,
+ value: specifier.local,
+ node: specifier,
+ });
+ }
+ },
+ ExportDefaultDeclaration(node) {
+ const value = node.declaration;
+ const name = (() => {
+ let current: TSESTree.Node = value;
+ while (
+ current.type === N.CallExpression &&
+ (isComponentWrapperCall(current) || isObjectAssignCall(current)) &&
+ current.arguments[0]
+ ) {
+ current = current.arguments[0];
+ }
+ if (current.type === N.Identifier) return current.name;
+ if (
+ current.type === N.FunctionDeclaration ||
+ current.type === N.FunctionExpression ||
+ current.type === N.ClassDeclaration ||
+ current.type === N.ClassExpression
+ )
+ return current.id?.name;
+ return undefined;
+ })();
+ exports.push({ name, value, node });
+ },
+ "Program:exit"() {
+ let component: (typeof exports)[number] | undefined;
+ const counted = new Set<TSESTree.Node>();
+ for (const exported of exports) {
+ const declaration =
+ exported.value.type === N.Identifier
+ ? (getDefinition(exported.value)?.node ?? exported.value)
+ : exported.value;
+ if (!isComponent(exported.value, exported.name ?? "", new Set()))
+ continue;
+ if (exported.name && !/^[A-Z][a-zA-Z0-9]*$/.test(exported.name)) {
+ context.report({
+ node: exported.node,
+ messageId: "pascalCase",
+ data: { name: exported.name },
+ });
+ }
+ if (counted.has(declaration)) continue;
+ counted.add(declaration);
+ if (component) {
+ context.report({ node: exported.node, messageId: "multiple" });
+ return;
+ }
+ component = exported;
+ }
+ if (!component) return;
+ if (!component.name) {
+ context.report({ node: component.node, messageId: "anonymous" });
+ return;
+ }
+ const filename = basename(context.filename);
+ if (basename(filename, extname(filename)) !== component.name)
+ context.report({
+ node: component.node,
+ messageId: "filename",
+ data: { name: component.name },
+ });
+ },
+ };
+ },
+});
diff --git a/packages/eslint-plugin/src/rules/filename-matches-export.test.ts b/packages/eslint-plugin/src/rules/filename-matches-export.test.ts
deleted file mode 100644
index 4eab0f9d35..0000000000
--- a/packages/eslint-plugin/src/rules/filename-matches-export.test.ts
+++ /dev/null
@@ -1,112 +0,0 @@
-import { RuleTester } from "@typescript-eslint/rule-tester";
-import * as typescriptEslintParser from "@typescript-eslint/parser";
-
-import rule from "./filename-matches-export.js";
-
-const ruleTester = new RuleTester({
- languageOptions: {
- parser: typescriptEslintParser,
- parserOptions: {
- ecmaVersion: 2022,
- sourceType: "module",
- ecmaFeatures: { jsx: true },
- },
- },
-});
-
-ruleTester.run("filename-matches-export", rule, {
- valid: [
- {
- code: `export function Button() { return null; }`,
- filename: "/repo/Button.tsx",
- },
- {
- code: `const Button = () => null; export { Button };`,
- filename: "/repo/Button.tsx",
- },
- {
- code: `function Button() { return null; } export default Button;`,
- filename: "/repo/Button.tsx",
- },
- {
- code: `export default function Button() { return null; }`,
- filename: "/repo/Button.tsx",
- },
- {
- code: `const InternalButton = () => null; export { InternalButton as Button };`,
- filename: "/repo/Button.tsx",
- },
- {
- code: `const InternalButton = () => null; export { InternalButton as "Button" };`,
- filename: "/repo/Button.tsx",
- },
- {
- code: `export const Button = () => null; export const ButtonShell = () => null;`,
- filename: "/repo/Button.tsx",
- },
- {
- code: `export class Button {}`,
- filename: "/repo/Button.tsx",
- },
- {
- code: `export enum Button { Primary }`,
- filename: "/repo/Button.tsx",
- },
- {
- code: `export default class Button {}`,
- filename: "/repo/Button.tsx",
- },
- ],
- invalid: [
- {
- code: `export function Button() { return null; }`,
- filename: "/repo/Link.tsx",
- errors: [{ messageId: "missing" }],
- },
- {
- code: `export type Button = { label: string };`,
- filename: "/repo/Button.tsx",
- errors: [{ messageId: "missing" }],
- },
- {
- code: `export default function () { return null; }`,
- filename: "/repo/Button.tsx",
- errors: [{ messageId: "missing" }],
- },
- {
- code: `const Button = () => null; export type { Button };`,
- filename: "/repo/Button.tsx",
- errors: [{ messageId: "missing" }],
- },
- {
- code: `export interface Button { label: string }`,
- filename: "/repo/Button.tsx",
- errors: [{ messageId: "missing" }],
- },
- {
- code: `export const { Button } = components;`,
- filename: "/repo/Button.tsx",
- errors: [{ messageId: "missing" }],
- },
- {
- code: `export default createButton();`,
- filename: "/repo/Button.tsx",
- errors: [{ messageId: "missing" }],
- },
- {
- code: `export declare function Button(): void;`,
- filename: "/repo/Button.tsx",
- errors: [{ messageId: "missing" }],
- },
- {
- code: `export namespace Internal { export const value = 1; }`,
- filename: "/repo/Button.tsx",
- errors: [{ messageId: "missing" }],
- },
- {
- code: `type Button = {}; const Link = () => null; export { type Button, Link };`,
- filename: "/repo/Button.tsx",
- errors: [{ messageId: "missing" }],
- },
- ],
-});
diff --git a/packages/eslint-plugin/src/rules/filename-matches-export.ts b/packages/eslint-plugin/src/rules/filename-matches-export.ts
deleted file mode 100644
index 61212bd9dc..0000000000
--- a/packages/eslint-plugin/src/rules/filename-matches-export.ts
+++ /dev/null
@@ -1,99 +0,0 @@
-import { basename, extname } from "node:path";
-import { AST_NODE_TYPES, type TSESTree } from "@typescript-eslint/utils";
-
-import { createRule } from "../util.js";
-
-function getDeclarationNames(
- declaration: TSESTree.NamedExportDeclarations,
-): string[] {
- if (declaration.type === AST_NODE_TYPES.VariableDeclaration) {
- return declaration.declarations.flatMap(({ id }) =>
- id.type === AST_NODE_TYPES.Identifier ? [id.name] : [],
- );
- }
-
- if (
- declaration.type === AST_NODE_TYPES.FunctionDeclaration ||
- declaration.type === AST_NODE_TYPES.ClassDeclaration ||
- declaration.type === AST_NODE_TYPES.TSEnumDeclaration
- ) {
- // Named export declarations cannot be anonymous.
- return [declaration.id!.name];
- }
-
- return [];
-}
-
-function getDefaultExportName(
- declaration: TSESTree.ExportDefaultDeclaration["declaration"],
-) {
- if (declaration.type === AST_NODE_TYPES.Identifier) return declaration.name;
-
- if (
- declaration.type === AST_NODE_TYPES.FunctionDeclaration ||
- declaration.type === AST_NODE_TYPES.ClassDeclaration
- ) {
- return declaration.id?.name;
- }
-
- return undefined;
-}
-
-const rule = createRule({
- name: "filename-matches-export",
- meta: {
- type: "suggestion",
- docs: {
- description:
- "Require a file to have a runtime export matching its filename.",
- },
- messages: {
- missing:
- 'File "{{ filename }}" must export a runtime value named "{{ expected }}".',
- },
- schema: [],
- },
- defaultOptions: [],
- create(context) {
- return {
- Program(node) {
- const filename = basename(context.filename);
- const expected = basename(filename, extname(filename));
- const exportedNames = node.body.flatMap((statement) => {
- if (statement.type === AST_NODE_TYPES.ExportDefaultDeclaration) {
- const name = getDefaultExportName(statement.declaration);
- return name ? [name] : [];
- }
-
- if (
- statement.type !== AST_NODE_TYPES.ExportNamedDeclaration ||
- statement.exportKind === "type"
- ) {
- return [];
- }
-
- if (statement.declaration) {
- return getDeclarationNames(statement.declaration);
- }
-
- return statement.specifiers.flatMap((specifier) => {
- if (specifier.exportKind === "type") return [];
- return specifier.exported.type === AST_NODE_TYPES.Identifier
- ? [specifier.exported.name]
- : [specifier.exported.value];
- });
- });
-
- if (exportedNames.includes(expected)) return;
-
- context.report({
- node,
- messageId: "missing",
- data: { expected, filename },
- });
- },
- };
- },
-});
-
-export default rule;
diff --git a/web/.storybook/docs/ThemeTokens/docsChrome.tsx b/web/.storybook/docs/ThemeTokens/docsChrome.tsx
index 09d54e0338..0373ca337f 100644
--- a/web/.storybook/docs/ThemeTokens/docsChrome.tsx
+++ b/web/.storybook/docs/ThemeTokens/docsChrome.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
/**
* Shared presentational chrome for the Design reference pages (Color,
* Typography, Layout, Charts).
diff --git a/web/.storybook/docs/ThemeTokens/shared.tsx b/web/.storybook/docs/ThemeTokens/shared.tsx
index b701fe62d1..ad7aac288b 100644
--- a/web/.storybook/docs/ThemeTokens/shared.tsx
+++ b/web/.storybook/docs/ThemeTokens/shared.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
/**
* Shared machinery for the Design reference pages (Color, Typography,
* Layout, Charts). Everything token-shaped is parsed at build time from
diff --git a/web/eslint.config.mjs b/web/eslint.config.mjs
index d7d29355ba..24070b7e9d 100644
--- a/web/eslint.config.mjs
+++ b/web/eslint.config.mjs
@@ -340,6 +340,23 @@ export default [
},
},
+ {
+ name: "langfuse/web/component-file-structure",
+ files: ["**/*.{tsx,jsx}"],
+ ignores: [
+ // Next.js owns route filenames and requires framework exports, so component file structure cannot apply.
+ "src/pages/**",
+ // Next.js App Router layouts also require the framework-defined layout filename.
+ "src/app/**/layout.{tsx,jsx}",
+ "src/components/design-system/**/*.stories.{ts,tsx}",
+ "**/*.{test,spec,clienttest,servertest}.{tsx,jsx}",
+ "**/{__tests__,__e2e__,tests,test}/**",
+ ],
+ rules: {
+ "@repo/component-file-structure": "error",
+ },
+ },
+
{
name: "langfuse/web/design-system-component-exports",
files: ["src/components/design-system/*/*.{ts,tsx}"],
@@ -349,7 +366,6 @@ export default [
"src/components/design-system/table/**",
],
rules: {
- "@repo/filename-matches-export": "error",
"import/no-default-export": "error",
},
},
diff --git a/web/src/components/ChatMessages/index.tsx b/web/src/components/ChatMessages/index.tsx
index 38b8647c65..e082e55fd6 100644
--- a/web/src/components/ChatMessages/index.tsx
+++ b/web/src/components/ChatMessages/index.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { ChevronDownIcon, PlusCircleIcon } from "lucide-react";
import { useCallback, useEffect, useRef } from "react";
diff --git a/web/src/components/ChatMessages/messageSearch/context.tsx b/web/src/components/ChatMessages/messageSearch/context.tsx
index 0312554f6a..b6301503f0 100644
--- a/web/src/components/ChatMessages/messageSearch/context.tsx
+++ b/web/src/components/ChatMessages/messageSearch/context.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
"use client";
import {
diff --git a/web/src/components/ChatMessages/messageSearch/toolbar.tsx b/web/src/components/ChatMessages/messageSearch/toolbar.tsx
index dd80192f81..891593d4e0 100644
--- a/web/src/components/ChatMessages/messageSearch/toolbar.tsx
+++ b/web/src/components/ChatMessages/messageSearch/toolbar.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
"use client";
import {
diff --git a/web/src/components/HeaderActionMenuRow.tsx b/web/src/components/HeaderActionMenuRow.tsx
index 8bade295dd..7a826ed887 100644
--- a/web/src/components/HeaderActionMenuRow.tsx
+++ b/web/src/components/HeaderActionMenuRow.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import * as React from "react";
import { type DropdownMenuItemDefinition } from "@/src/components/design-system/DropdownMenu/DropdownMenu";
diff --git a/web/src/components/ItemBadge.tsx b/web/src/components/ItemBadge.tsx
index 56f8e766cb..c3e02d5902 100644
--- a/web/src/components/ItemBadge.tsx
+++ b/web/src/components/ItemBadge.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
import type React from "react";
import { Badge } from "@/src/components/ui/badge";
import {
diff --git a/web/src/components/ModelParameters/index.tsx b/web/src/components/ModelParameters/index.tsx
index ed608fa065..7ef7c69692 100644
--- a/web/src/components/ModelParameters/index.tsx
+++ b/web/src/components/ModelParameters/index.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
/* eslint-disable @repo/no-null-render */
import { useState, useEffect, useRef, useCallback } from "react";
import { Button } from "@/src/components/ui/button";
diff --git a/web/src/components/PosthogLogo.tsx b/web/src/components/PosthogLogo.tsx
index 58438a8fc1..cf9bbb7ed1 100644
--- a/web/src/components/PosthogLogo.tsx
+++ b/web/src/components/PosthogLogo.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
// https://react-svgr.com/playground/?typescript=true
import * as React from "react";
diff --git a/web/src/components/date-picker.tsx b/web/src/components/date-picker.tsx
index 9c488e4ebb..848da57eaf 100644
--- a/web/src/components/date-picker.tsx
+++ b/web/src/components/date-picker.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
/* eslint-disable @repo/no-style-props, @repo/no-abstracted-overlay-trigger, @repo/no-margin-on-root-elements */
"use client";
diff --git a/web/src/components/date-range-dropdowns.tsx b/web/src/components/date-range-dropdowns.tsx
index bef5ba701a..4f48980c15 100644
--- a/web/src/components/date-range-dropdowns.tsx
+++ b/web/src/components/date-range-dropdowns.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import * as React from "react";
import { addMinutes } from "date-fns";
import {
diff --git a/web/src/components/deleteButton.tsx b/web/src/components/deleteButton.tsx
index 9efc2258bc..71cac88c39 100644
--- a/web/src/components/deleteButton.tsx
+++ b/web/src/components/deleteButton.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props, @repo/no-abstracted-overlay-trigger */
+/* eslint-disable @repo/no-style-props, @repo/no-abstracted-overlay-trigger, @repo/component-file-structure */
import { useMemo, useState } from "react";
import { useRouter } from "next/router";
import {
diff --git a/web/src/components/design-system/Badge/Badge.tsx b/web/src/components/design-system/Badge/Badge.tsx
index 372dba48c6..878c775618 100644
--- a/web/src/components/design-system/Badge/Badge.tsx
+++ b/web/src/components/design-system/Badge/Badge.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { Slot } from "@radix-ui/react-slot";
import { cva, type VariantProps } from "class-variance-authority";
import { type LucideIcon } from "lucide-react";
diff --git a/web/src/components/design-system/Tag/Tag.tsx b/web/src/components/design-system/Tag/Tag.tsx
index d568d932ea..d3b3c3237b 100644
--- a/web/src/components/design-system/Tag/Tag.tsx
+++ b/web/src/components/design-system/Tag/Tag.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { Slot } from "@radix-ui/react-slot";
import { cva, type VariantProps } from "class-variance-authority";
import { type LucideIcon, X } from "lucide-react";
diff --git a/web/src/components/error-page.tsx b/web/src/components/error-page.tsx
index 0a87ecdb5b..6731e748cb 100644
--- a/web/src/components/error-page.tsx
+++ b/web/src/components/error-page.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
import { Button } from "@/src/components/ui/button";
import { AlertCircle } from "lucide-react";
import { useSession } from "next-auth/react";
diff --git a/web/src/components/grouped-score-badge.tsx b/web/src/components/grouped-score-badge.tsx
index 6039c343c0..0c73510808 100644
--- a/web/src/components/grouped-score-badge.tsx
+++ b/web/src/components/grouped-score-badge.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { OverflowCountBadge } from "@/src/components/OverflowCountBadge";
import {
diff --git a/web/src/components/layouts/app-layout/index.tsx b/web/src/components/layouts/app-layout/index.tsx
index 8b4f3e2977..94414b7f9d 100644
--- a/web/src/components/layouts/app-layout/index.tsx
+++ b/web/src/components/layouts/app-layout/index.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
/**
* App Layout
*
diff --git a/web/src/components/layouts/breadcrumb.tsx b/web/src/components/layouts/breadcrumb.tsx
index 67d8ced18f..a8f00d5fbd 100644
--- a/web/src/components/layouts/breadcrumb.tsx
+++ b/web/src/components/layouts/breadcrumb.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
import {
Breadcrumb,
BreadcrumbItem,
diff --git a/web/src/components/layouts/container-page.tsx b/web/src/components/layouts/container-page.tsx
index 1b3ce99a45..67961f8164 100644
--- a/web/src/components/layouts/container-page.tsx
+++ b/web/src/components/layouts/container-page.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import PageHeader, {
type PageHeaderProps,
} from "@/src/components/layouts/page-header";
diff --git a/web/src/components/layouts/doc-popup.tsx b/web/src/components/layouts/doc-popup.tsx
index a284521adc..0ec5a99106 100644
--- a/web/src/components/layouts/doc-popup.tsx
+++ b/web/src/components/layouts/doc-popup.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
import { useState } from "react";
import { HoverCard } from "@/src/components/design-system/HoverCard/HoverCard";
import { ControlledHoverCard } from "@/src/components/design-system/ControlledHoverCard/ControlledHoverCard";
diff --git a/web/src/components/layouts/header.tsx b/web/src/components/layouts/header.tsx
index 1a210bc3ce..a5b394c6bf 100644
--- a/web/src/components/layouts/header.tsx
+++ b/web/src/components/layouts/header.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props, @repo/no-margin-on-root-elements */
+/* eslint-disable @repo/no-style-props, @repo/no-margin-on-root-elements, @repo/component-file-structure */
import Link from "next/link";
import DocPopup from "@/src/components/layouts/doc-popup";
import { Badge } from "@/src/components/design-system/Badge/Badge";
diff --git a/web/src/components/layouts/mobile-page-actions-content.tsx b/web/src/components/layouts/mobile-page-actions-content.tsx
index de3495638f..73ad5dfa9d 100644
--- a/web/src/components/layouts/mobile-page-actions-content.tsx
+++ b/web/src/components/layouts/mobile-page-actions-content.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { PopoverContent } from "@/src/components/ui/popover";
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
diff --git a/web/src/components/layouts/mobile-page-title.tsx b/web/src/components/layouts/mobile-page-title.tsx
index 84944f6a44..c6c2162de2 100644
--- a/web/src/components/layouts/mobile-page-title.tsx
+++ b/web/src/components/layouts/mobile-page-title.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { ItemBadge } from "@/src/components/ItemBadge";
import BreadcrumbComponent from "@/src/components/layouts/breadcrumb";
import { MobilePageActionsContent } from "@/src/components/layouts/mobile-page-actions-content";
diff --git a/web/src/components/layouts/mobile-top-bar.tsx b/web/src/components/layouts/mobile-top-bar.tsx
index 1fdc076c69..01ed4a36ff 100644
--- a/web/src/components/layouts/mobile-top-bar.tsx
+++ b/web/src/components/layouts/mobile-top-bar.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { type ReactNode } from "react";
import { useSession } from "next-auth/react";
import { Menu } from "lucide-react";
diff --git a/web/src/components/layouts/overview-panel.tsx b/web/src/components/layouts/overview-panel.tsx
index 8e254d78ea..4705c9e739 100644
--- a/web/src/components/layouts/overview-panel.tsx
+++ b/web/src/components/layouts/overview-panel.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
"use client";
import * as React from "react";
diff --git a/web/src/components/layouts/page-header-controls-slot.tsx b/web/src/components/layouts/page-header-controls-slot.tsx
index 33b2e23832..08fc5dc15a 100644
--- a/web/src/components/layouts/page-header-controls-slot.tsx
+++ b/web/src/components/layouts/page-header-controls-slot.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import {
createContext,
useContext,
diff --git a/web/src/components/layouts/page-header.tsx b/web/src/components/layouts/page-header.tsx
index bb7b38b861..f9eb8a7d16 100644
--- a/web/src/components/layouts/page-header.tsx
+++ b/web/src/components/layouts/page-header.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
import { EnvLabelBadge } from "@/src/components/EnvLabelBadge";
import { useEnvLabel } from "@/src/hooks/useEnvLabel";
import { type LangfuseItemType } from "@/src/components/ItemBadge";
diff --git a/web/src/components/layouts/page-tabs.tsx b/web/src/components/layouts/page-tabs.tsx
index b790352dc6..bab0faa243 100644
--- a/web/src/components/layouts/page-tabs.tsx
+++ b/web/src/components/layouts/page-tabs.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
import { Tabs } from "@/src/components/design-system/Tabs/Tabs";
import { cn } from "@/src/utils/tailwind";
import { useRouter } from "next/router";
diff --git a/web/src/components/layouts/page.tsx b/web/src/components/layouts/page.tsx
index 8d2b44f505..158975733d 100644
--- a/web/src/components/layouts/page.tsx
+++ b/web/src/components/layouts/page.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import PageHeader, {
type PageHeaderProps,
} from "@/src/components/layouts/page-header";
diff --git a/web/src/components/layouts/settings-table-card.tsx b/web/src/components/layouts/settings-table-card.tsx
index 6bc913dd92..5f438084e4 100644
--- a/web/src/components/layouts/settings-table-card.tsx
+++ b/web/src/components/layouts/settings-table-card.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props, @repo/no-margin-on-root-elements */
+/* eslint-disable @repo/no-style-props, @repo/no-margin-on-root-elements, @repo/component-file-structure */
import { Card } from "@/src/components/ui/card";
import { cn } from "@/src/utils/tailwind";
diff --git a/web/src/components/layouts/spinner.tsx b/web/src/components/layouts/spinner.tsx
index 6fa8b9e73d..2faac25d03 100644
--- a/web/src/components/layouts/spinner.tsx
+++ b/web/src/components/layouts/spinner.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { LangfuseIcon } from "@/src/components/design-system/LangfuseIcon/LangfuseIcon";
export function Spinner(props: { message: string }) {
diff --git a/web/src/components/level-colors.tsx b/web/src/components/level-colors.tsx
index 8c1f29b87f..db8628e0cf 100644
--- a/web/src/components/level-colors.tsx
+++ b/web/src/components/level-colors.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import type React from "react";
import { type ObservationLevelType } from "@langfuse/shared";
import { cn } from "@/src/utils/tailwind";
diff --git a/web/src/components/level-counts-display.tsx b/web/src/components/level-counts-display.tsx
index 2d55bbed11..86456d34c8 100644
--- a/web/src/components/level-counts-display.tsx
+++ b/web/src/components/level-counts-display.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import React from "react";
import { Separator } from "@/src/components/ui/separator";
import { numberFormatter } from "@/src/utils/numbers";
diff --git a/web/src/components/magicui/rainbow-button.tsx b/web/src/components/magicui/rainbow-button.tsx
index 49c424faa3..7e62dcc3e8 100644
--- a/web/src/components/magicui/rainbow-button.tsx
+++ b/web/src/components/magicui/rainbow-button.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
import { cn } from "@/src/utils/tailwind";
import { Slot } from "@radix-ui/react-slot";
import { cva, type VariantProps } from "class-variance-authority";
diff --git a/web/src/components/metric-strip/MetricStripBand.tsx b/web/src/components/metric-strip/MetricStripBand.tsx
index 39081af727..99cc7e8f37 100644
--- a/web/src/components/metric-strip/MetricStripBand.tsx
+++ b/web/src/components/metric-strip/MetricStripBand.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
import { forwardRef, type ReactNode } from "react";
import { cn } from "@/src/utils/tailwind";
diff --git a/web/src/components/movable-resizable-panel.tsx b/web/src/components/movable-resizable-panel.tsx
index 321842931b..8e7e335bed 100644
--- a/web/src/components/movable-resizable-panel.tsx
+++ b/web/src/components/movable-resizable-panel.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
"use client";
import {
type CSSProperties,
diff --git a/web/src/components/nav/book-a-call-button.tsx b/web/src/components/nav/book-a-call-button.tsx
index 0766a28b00..2a66468115 100644
--- a/web/src/components/nav/book-a-call-button.tsx
+++ b/web/src/components/nav/book-a-call-button.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { CalendarDays } from "lucide-react";
import { SidebarMenuButton } from "@/src/components/ui/sidebar";
import Link from "next/link";
diff --git a/web/src/components/nav/in-app-ai-agent-button.tsx b/web/src/components/nav/in-app-ai-agent-button.tsx
index e2240c9cf0..051dd636fc 100644
--- a/web/src/components/nav/in-app-ai-agent-button.tsx
+++ b/web/src/components/nav/in-app-ai-agent-button.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { useCallback, useEffect } from "react";
import { BotMessageSquare } from "lucide-react";
diff --git a/web/src/components/nav/nav-main.tsx b/web/src/components/nav/nav-main.tsx
index 8a0bb6a6dc..0f544a9a6e 100644
--- a/web/src/components/nav/nav-main.tsx
+++ b/web/src/components/nav/nav-main.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-margin-on-root-elements */
+/* eslint-disable @repo/no-margin-on-root-elements, @repo/component-file-structure */
"use client";
import { type LucideIcon } from "lucide-react";
import {
diff --git a/web/src/components/nav/sidebar-presence.tsx b/web/src/components/nav/sidebar-presence.tsx
index dea85f85a8..67b187546d 100644
--- a/web/src/components/nav/sidebar-presence.tsx
+++ b/web/src/components/nav/sidebar-presence.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { createContext, useContext, type ReactNode } from "react";
/**
diff --git a/web/src/components/nav/support-button.tsx b/web/src/components/nav/support-button.tsx
index 484906c66a..93dceacebf 100644
--- a/web/src/components/nav/support-button.tsx
+++ b/web/src/components/nav/support-button.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { LifeBuoy } from "lucide-react";
import { SidebarMenuButton, useSidebar } from "@/src/components/ui/sidebar";
import { useSupportDrawer } from "@/src/features/support-chat";
diff --git a/web/src/components/nav/topbar-account.tsx b/web/src/components/nav/topbar-account.tsx
index e62884a856..052901ec00 100644
--- a/web/src/components/nav/topbar-account.tsx
+++ b/web/src/components/nav/topbar-account.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props, @repo/no-abstracted-overlay-trigger */
+/* eslint-disable @repo/no-style-props, @repo/no-abstracted-overlay-trigger, @repo/component-file-structure */
"use client";
import Link from "next/link";
diff --git a/web/src/components/nav/topbar-brand.tsx b/web/src/components/nav/topbar-brand.tsx
index 9e3fcf98a2..485f21db7e 100644
--- a/web/src/components/nav/topbar-brand.tsx
+++ b/web/src/components/nav/topbar-brand.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
/* eslint-disable @repo/no-style-props */
import { cn } from "@/src/utils/tailwind";
import Link from "next/link";
diff --git a/web/src/components/publish-object-switch.tsx b/web/src/components/publish-object-switch.tsx
index 9b3c4dfb49..cc8258e0de 100644
--- a/web/src/components/publish-object-switch.tsx
+++ b/web/src/components/publish-object-switch.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { Button } from "@/src/components/ui/button";
import { Label } from "@/src/components/ui/label";
import {
diff --git a/web/src/components/score-tag.tsx b/web/src/components/score-tag.tsx
index 707ba30ba9..00dfa0c307 100644
--- a/web/src/components/score-tag.tsx
+++ b/web/src/components/score-tag.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { cva } from "class-variance-authority";
import { Tooltip } from "@/src/components/design-system/Tooltip/Tooltip";
diff --git a/web/src/components/scores-table-cell.tsx b/web/src/components/scores-table-cell.tsx
index c9b8bac78c..cc65238d34 100644
--- a/web/src/components/scores-table-cell.tsx
+++ b/web/src/components/scores-table-cell.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { HoverCard } from "@/src/components/design-system/HoverCard/HoverCard";
import { ControlledHoverCard } from "@/src/components/design-system/ControlledHoverCard/ControlledHoverCard";
import {
diff --git a/web/src/components/table/data-table-ai-filters.tsx b/web/src/components/table/data-table-ai-filters.tsx
index 25ee1c38e8..02566118c8 100644
--- a/web/src/components/table/data-table-ai-filters.tsx
+++ b/web/src/components/table/data-table-ai-filters.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { useState } from "react";
import { Button } from "@/src/components/ui/button";
import { Textarea } from "@/src/components/ui/textarea";
diff --git a/web/src/components/table/data-table-column-visibility-filter.tsx b/web/src/components/table/data-table-column-visibility-filter.tsx
index 54ee62d308..b245a716d3 100644
--- a/web/src/components/table/data-table-column-visibility-filter.tsx
+++ b/web/src/components/table/data-table-column-visibility-filter.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
import React, {
useCallback,
useMemo,
diff --git a/web/src/components/table/data-table-controls.tsx b/web/src/components/table/data-table-controls.tsx
index c0c02fa476..b6a067d508 100644
--- a/web/src/components/table/data-table-controls.tsx
+++ b/web/src/components/table/data-table-controls.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
/* eslint-disable @repo/no-style-props, @repo/no-margin-on-root-elements */
import {
type default as React,
diff --git a/web/src/components/table/data-table-multi-select-actions/data-table-select-all-banner.tsx b/web/src/components/table/data-table-multi-select-actions/data-table-select-all-banner.tsx
index 16ce9a74c5..6c7a41162f 100644
--- a/web/src/components/table/data-table-multi-select-actions/data-table-select-all-banner.tsx
+++ b/web/src/components/table/data-table-multi-select-actions/data-table-select-all-banner.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-margin-on-root-elements */
+/* eslint-disable @repo/no-margin-on-root-elements, @repo/component-file-structure */
import { type MultiSelect } from "@/src/components/table/data-table-toolbar";
import { Button } from "@/src/components/ui/button";
import { numberFormatter } from "@/src/utils/numbers";
diff --git a/web/src/components/table/data-table-pagination.tsx b/web/src/components/table/data-table-pagination.tsx
index 2bd8d2f82f..a42388110f 100644
--- a/web/src/components/table/data-table-pagination.tsx
+++ b/web/src/components/table/data-table-pagination.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
import {
ChevronLeft,
ChevronRight,
diff --git a/web/src/components/table/data-table-refresh-button.tsx b/web/src/components/table/data-table-refresh-button.tsx
index 207749b092..f89471dce9 100644
--- a/web/src/components/table/data-table-refresh-button.tsx
+++ b/web/src/components/table/data-table-refresh-button.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { RefreshCw, ChevronDown } from "lucide-react";
import { Button } from "@/src/components/ui/button";
import {
diff --git a/web/src/components/table/data-table-row-height-switch.tsx b/web/src/components/table/data-table-row-height-switch.tsx
index 929d48c75e..38e9a3c4dd 100644
--- a/web/src/components/table/data-table-row-height-switch.tsx
+++ b/web/src/components/table/data-table-row-height-switch.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-abstracted-overlay-trigger */
+/* eslint-disable @repo/no-abstracted-overlay-trigger, @repo/component-file-structure */
import { Button } from "@/src/components/ui/button";
import {
DropdownMenu,
diff --git a/web/src/components/table/data-table-toolbar.tsx b/web/src/components/table/data-table-toolbar.tsx
index 3a42e264b2..976a550625 100644
--- a/web/src/components/table/data-table-toolbar.tsx
+++ b/web/src/components/table/data-table-toolbar.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
import React, {
type Dispatch,
type ReactNode,
diff --git a/web/src/components/table/data-table.tsx b/web/src/components/table/data-table.tsx
index a13944199c..cde7d3b148 100644
--- a/web/src/components/table/data-table.tsx
+++ b/web/src/components/table/data-table.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
/* eslint-disable @repo/no-style-props */
"use client";
import { type OrderByState } from "@langfuse/shared";
diff --git a/web/src/components/table/filtered-run-pills.tsx b/web/src/components/table/filtered-run-pills.tsx
index 37b7e8f613..4e4385b4ee 100644
--- a/web/src/components/table/filtered-run-pills.tsx
+++ b/web/src/components/table/filtered-run-pills.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
import { Badge } from "@/src/components/ui/badge";
import { HoverCard } from "@/src/components/design-system/HoverCard/HoverCard";
import { api } from "@/src/utils/api";
diff --git a/web/src/components/table/peek.tsx b/web/src/components/table/peek.tsx
index 15ff812513..cb4cd66bf4 100644
--- a/web/src/components/table/peek.tsx
+++ b/web/src/components/table/peek.tsx
@@ -1,5 +1,5 @@
import { type PeekOpenOptions } from "./peek/hooks/usePeekNavigation";
-/* eslint-disable @repo/no-null-render */
+/* eslint-disable @repo/no-null-render, @repo/component-file-structure */
import * as SheetPrimitive from "@radix-ui/react-dialog";
import { Sheet, SheetPortal } from "@/src/components/ui/sheet";
import { Drawer, DrawerContent, DrawerTitle } from "@/src/components/ui/drawer";
diff --git a/web/src/components/table/peek/contexts/PeekTableStateContext.tsx b/web/src/components/table/peek/contexts/PeekTableStateContext.tsx
index b0efd27f73..e13dc37f2f 100644
--- a/web/src/components/table/peek/contexts/PeekTableStateContext.tsx
+++ b/web/src/components/table/peek/contexts/PeekTableStateContext.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import {
createContext,
useContext,
diff --git a/web/src/components/table/peek/peek-evaluator-config-detail.tsx b/web/src/components/table/peek/peek-evaluator-config-detail.tsx
index 1cd532419a..8576af1297 100644
--- a/web/src/components/table/peek/peek-evaluator-config-detail.tsx
+++ b/web/src/components/table/peek/peek-evaluator-config-detail.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
import { useRouter } from "next/router";
import { Skeleton } from "@/src/components/ui/skeleton";
import { TextLink } from "@/src/components/design-system/TextLink/TextLink";
diff --git a/web/src/components/table/peek/peek-evaluator-template-detail.tsx b/web/src/components/table/peek/peek-evaluator-template-detail.tsx
index 584faa0506..b3ad6e980a 100644
--- a/web/src/components/table/peek/peek-evaluator-template-detail.tsx
+++ b/web/src/components/table/peek/peek-evaluator-template-detail.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { useRouter } from "next/router";
import { Skeleton } from "@/src/components/ui/skeleton";
import { usePeekEvalTemplateData } from "@/src/components/table/peek/hooks/usePeekEvalTemplateData";
diff --git a/web/src/components/table/peek/peek-experiment-item-detail.tsx b/web/src/components/table/peek/peek-experiment-item-detail.tsx
index ba95087d35..f0ce30f5f7 100644
--- a/web/src/components/table/peek/peek-experiment-item-detail.tsx
+++ b/web/src/components/table/peek/peek-experiment-item-detail.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { useRouter } from "next/router";
import { usePeekData } from "@/src/components/table/peek/hooks/usePeekData";
import { TraceDetailBody } from "@/src/features/traces";
diff --git a/web/src/components/table/peek/peek-observation-detail.tsx b/web/src/components/table/peek/peek-observation-detail.tsx
index 992620c3af..a30821a37b 100644
--- a/web/src/components/table/peek/peek-observation-detail.tsx
+++ b/web/src/components/table/peek/peek-observation-detail.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import {
TablePeekView,
shouldClosePeekAfterDelete,
diff --git a/web/src/components/table/peek/peek-trace-detail.tsx b/web/src/components/table/peek/peek-trace-detail.tsx
index 74dc8d2139..19de64008c 100644
--- a/web/src/components/table/peek/peek-trace-detail.tsx
+++ b/web/src/components/table/peek/peek-trace-detail.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { usePeekData } from "@/src/components/table/peek/hooks/usePeekData";
import { useRouter } from "next/router";
import { useRef } from "react";
diff --git a/web/src/components/table/resizable-filter-layout.tsx b/web/src/components/table/resizable-filter-layout.tsx
index 16647223ea..745b17cbfc 100644
--- a/web/src/components/table/resizable-filter-layout.tsx
+++ b/web/src/components/table/resizable-filter-layout.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
"use client";
import {
diff --git a/web/src/components/table/simple-data-table.tsx b/web/src/components/table/simple-data-table.tsx
index a562ad11c2..0cf8c90595 100644
--- a/web/src/components/table/simple-data-table.tsx
+++ b/web/src/components/table/simple-data-table.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
import {
flexRender,
getCoreRowModel,
diff --git a/web/src/components/table/table-header-controls.tsx b/web/src/components/table/table-header-controls.tsx
index d5594b6426..7ca40facfa 100644
--- a/web/src/components/table/table-header-controls.tsx
+++ b/web/src/components/table/table-header-controls.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { TimeRangePicker } from "@/src/components/date-picker";
import { DataTableRefreshButton } from "@/src/components/table/data-table-refresh-button";
import { type RefreshInterval } from "@/src/components/table/utils/refresh-intervals";
diff --git a/web/src/components/table/table-view-presets/components/data-table-view-presets-drawer.tsx b/web/src/components/table/table-view-presets/components/data-table-view-presets-drawer.tsx
index d1e91b9cbd..70efc54511 100644
--- a/web/src/components/table/table-view-presets/components/data-table-view-presets-drawer.tsx
+++ b/web/src/components/table/table-view-presets/components/data-table-view-presets-drawer.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
import { Button } from "@/src/components/ui/button";
import { X, Plus, Link, MoreVertical, Pen, Lock } from "lucide-react";
import { Badge } from "@/src/components/design-system/Badge/Badge";
diff --git a/web/src/components/ui/CodeJsonViewer.tsx b/web/src/components/ui/CodeJsonViewer.tsx
index d3c7334cca..1faadc37a0 100644
--- a/web/src/components/ui/CodeJsonViewer.tsx
+++ b/web/src/components/ui/CodeJsonViewer.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
/* eslint-disable @repo/no-style-props */
import { useMemo, useState } from "react";
import { Button } from "@/src/components/ui/button";
diff --git a/web/src/components/ui/MarkdownJsonView.tsx b/web/src/components/ui/MarkdownJsonView.tsx
index 9539263a86..a1b1a9e171 100644
--- a/web/src/components/ui/MarkdownJsonView.tsx
+++ b/web/src/components/ui/MarkdownJsonView.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
import {
OpenAIContentParts,
OpenAIContentSchema,
diff --git a/web/src/components/ui/MarkdownViewer.tsx b/web/src/components/ui/MarkdownViewer.tsx
index 48def24df3..c2fe3c16ed 100644
--- a/web/src/components/ui/MarkdownViewer.tsx
+++ b/web/src/components/ui/MarkdownViewer.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
/* eslint-disable @repo/no-style-props */
import { cn } from "@/src/utils/tailwind";
import {
diff --git a/web/src/components/ui/PromptReferences.tsx b/web/src/components/ui/PromptReferences.tsx
index 46a1dbba70..ef6ee2db19 100644
--- a/web/src/components/ui/PromptReferences.tsx
+++ b/web/src/components/ui/PromptReferences.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
import React, { createContext, useContext, type ReactNode } from "react";
import {
MUSTACHE_REGEX,
diff --git a/web/src/components/ui/action-button-count-badge.tsx b/web/src/components/ui/action-button-count-badge.tsx
index 6560a3aacc..42e2b0467d 100644
--- a/web/src/components/ui/action-button-count-badge.tsx
+++ b/web/src/components/ui/action-button-count-badge.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { cn } from "@/src/utils/tailwind";
export function ActionButtonCountBadge({
diff --git a/web/src/components/ui/ai-assisted-input.tsx b/web/src/components/ui/ai-assisted-input.tsx
index 670d55e0fd..2b2a041026 100644
--- a/web/src/components/ui/ai-assisted-input.tsx
+++ b/web/src/components/ui/ai-assisted-input.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import type { ComponentProps } from "react";
import { Loader2, Sparkles } from "lucide-react";
diff --git a/web/src/components/ui/alert-dialog.tsx b/web/src/components/ui/alert-dialog.tsx
index 8aab0eec2a..8017361d1c 100644
--- a/web/src/components/ui/alert-dialog.tsx
+++ b/web/src/components/ui/alert-dialog.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props, @repo/no-margin-on-root-elements */
+/* eslint-disable @repo/no-style-props, @repo/no-margin-on-root-elements, @repo/component-file-structure */
"use client";
import * as React from "react";
diff --git a/web/src/components/ui/badge.tsx b/web/src/components/ui/badge.tsx
index f364aa63a8..45de02c3c6 100644
--- a/web/src/components/ui/badge.tsx
+++ b/web/src/components/ui/badge.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
import * as React from "react";
import { cva, type VariantProps } from "class-variance-authority";
diff --git a/web/src/components/ui/breadcrumb.tsx b/web/src/components/ui/breadcrumb.tsx
index 6192454811..7f8556bd01 100644
--- a/web/src/components/ui/breadcrumb.tsx
+++ b/web/src/components/ui/breadcrumb.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
import * as React from "react";
import { Slot } from "@radix-ui/react-slot";
import { ChevronRight, MoreHorizontal } from "lucide-react";
diff --git a/web/src/components/ui/button.tsx b/web/src/components/ui/button.tsx
index 1a5bef0149..5571d8d363 100644
--- a/web/src/components/ui/button.tsx
+++ b/web/src/components/ui/button.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
import * as React from "react";
import { Slot } from "@radix-ui/react-slot";
import { cva, type VariantProps } from "class-variance-authority";
diff --git a/web/src/components/ui/calendar.tsx b/web/src/components/ui/calendar.tsx
index 5d8bb8d323..0dd0509d4a 100644
--- a/web/src/components/ui/calendar.tsx
+++ b/web/src/components/ui/calendar.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
"use client";
import * as React from "react";
diff --git a/web/src/components/ui/card.tsx b/web/src/components/ui/card.tsx
index f99d379989..ad234b6f07 100644
--- a/web/src/components/ui/card.tsx
+++ b/web/src/components/ui/card.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
import * as React from "react";
import { cn } from "@/src/utils/tailwind";
diff --git a/web/src/components/ui/combobox.tsx b/web/src/components/ui/combobox.tsx
index 9228ac5690..2cb2208e11 100644
--- a/web/src/components/ui/combobox.tsx
+++ b/web/src/components/ui/combobox.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props, @repo/no-abstracted-overlay-trigger */
+/* eslint-disable @repo/no-style-props, @repo/no-abstracted-overlay-trigger, @repo/component-file-structure */
"use client";
import * as React from "react";
diff --git a/web/src/components/ui/command.tsx b/web/src/components/ui/command.tsx
index 3385f0aa70..9008fe18d4 100644
--- a/web/src/components/ui/command.tsx
+++ b/web/src/components/ui/command.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props, @repo/no-margin-on-root-elements */
+/* eslint-disable @repo/no-style-props, @repo/no-margin-on-root-elements, @repo/component-file-structure */
"use client";
import * as React from "react";
diff --git a/web/src/components/ui/confirm-dialog.tsx b/web/src/components/ui/confirm-dialog.tsx
index c4164a2a8d..4b09c29a5c 100644
--- a/web/src/components/ui/confirm-dialog.tsx
+++ b/web/src/components/ui/confirm-dialog.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import * as React from "react";
import { cva, type VariantProps } from "class-variance-authority";
diff --git a/web/src/components/ui/dialog.tsx b/web/src/components/ui/dialog.tsx
index 9ad369a066..889997f2b2 100644
--- a/web/src/components/ui/dialog.tsx
+++ b/web/src/components/ui/dialog.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props, @repo/no-margin-on-root-elements */
+/* eslint-disable @repo/no-style-props, @repo/no-margin-on-root-elements, @repo/component-file-structure */
"use client";
import * as React from "react";
diff --git a/web/src/components/ui/drawer.tsx b/web/src/components/ui/drawer.tsx
index 6df617ffbf..585b9b5f64 100644
--- a/web/src/components/ui/drawer.tsx
+++ b/web/src/components/ui/drawer.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props, @repo/no-margin-on-root-elements */
+/* eslint-disable @repo/no-style-props, @repo/no-margin-on-root-elements, @repo/component-file-structure */
"use client";
import * as React from "react";
diff --git a/web/src/components/ui/dropdown-menu.tsx b/web/src/components/ui/dropdown-menu.tsx
index 255ba861bd..36087da055 100644
--- a/web/src/components/ui/dropdown-menu.tsx
+++ b/web/src/components/ui/dropdown-menu.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props, @repo/no-margin-on-root-elements */
+/* eslint-disable @repo/no-style-props, @repo/no-margin-on-root-elements, @repo/component-file-structure */
"use client";
import * as React from "react";
diff --git a/web/src/components/ui/form.tsx b/web/src/components/ui/form.tsx
index 564500e6f4..21a16e9db3 100644
--- a/web/src/components/ui/form.tsx
+++ b/web/src/components/ui/form.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props, @repo/no-null-render */
+/* eslint-disable @repo/no-style-props, @repo/no-null-render, @repo/component-file-structure */
import * as React from "react";
import type * as LabelPrimitive from "@radix-ui/react-label";
import { Slot } from "@radix-ui/react-slot";
diff --git a/web/src/components/ui/input-command.tsx b/web/src/components/ui/input-command.tsx
index 9218bc08f3..218752e087 100644
--- a/web/src/components/ui/input-command.tsx
+++ b/web/src/components/ui/input-command.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props, @repo/no-margin-on-root-elements */
+/* eslint-disable @repo/no-style-props, @repo/no-margin-on-root-elements, @repo/component-file-structure */
"use client";
// Adapted command to be used as a form field with suggestions
diff --git a/web/src/components/ui/input.tsx b/web/src/components/ui/input.tsx
index 17bd810a2d..ccfb16a6c9 100644
--- a/web/src/components/ui/input.tsx
+++ b/web/src/components/ui/input.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
import * as React from "react";
import { cn } from "@/src/utils/tailwind";
diff --git a/web/src/components/ui/label.tsx b/web/src/components/ui/label.tsx
index 1da07ced2d..47388f4558 100644
--- a/web/src/components/ui/label.tsx
+++ b/web/src/components/ui/label.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
"use client";
import * as React from "react";
diff --git a/web/src/components/ui/multi-select-combobox.tsx b/web/src/components/ui/multi-select-combobox.tsx
index 560f8b2844..bebb1543d6 100644
--- a/web/src/components/ui/multi-select-combobox.tsx
+++ b/web/src/components/ui/multi-select-combobox.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
/* eslint-disable @repo/no-style-props */
import { useState, useEffect, useRef, type ReactNode } from "react";
import { Input } from "@/src/components/ui/input";
diff --git a/web/src/components/ui/popover.tsx b/web/src/components/ui/popover.tsx
index 528a443083..f92a524c8c 100644
--- a/web/src/components/ui/popover.tsx
+++ b/web/src/components/ui/popover.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
"use client";
import * as React from "react";
diff --git a/web/src/components/ui/resizable-image.tsx b/web/src/components/ui/resizable-image.tsx
index 0c6ac27386..64ac88c974 100644
--- a/web/src/components/ui/resizable-image.tsx
+++ b/web/src/components/ui/resizable-image.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { cn } from "@/src/utils/tailwind";
import { useState } from "react";
import Link from "next/link";
diff --git a/web/src/components/ui/resizable-split-layout.tsx b/web/src/components/ui/resizable-split-layout.tsx
index 631f47122d..51e9af9391 100644
--- a/web/src/components/ui/resizable-split-layout.tsx
+++ b/web/src/components/ui/resizable-split-layout.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
import { type ReactNode, useCallback, useId, useLayoutEffect } from "react";
import {
ResizableHandle,
diff --git a/web/src/components/ui/resizable.tsx b/web/src/components/ui/resizable.tsx
index a1e9b616ab..3713a04dc0 100644
--- a/web/src/components/ui/resizable.tsx
+++ b/web/src/components/ui/resizable.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
"use client";
import * as ResizablePrimitive from "react-resizable-panels";
diff --git a/web/src/components/ui/scroll-area.tsx b/web/src/components/ui/scroll-area.tsx
index da2b86549a..007a121f94 100644
--- a/web/src/components/ui/scroll-area.tsx
+++ b/web/src/components/ui/scroll-area.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
"use client";
import * as React from "react";
diff --git a/web/src/components/ui/select.tsx b/web/src/components/ui/select.tsx
index 8b5787a51f..52318d4c96 100644
--- a/web/src/components/ui/select.tsx
+++ b/web/src/components/ui/select.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props, @repo/no-margin-on-root-elements */
+/* eslint-disable @repo/no-style-props, @repo/no-margin-on-root-elements, @repo/component-file-structure */
"use client";
import * as React from "react";
diff --git a/web/src/components/ui/separator.tsx b/web/src/components/ui/separator.tsx
index 4f004dffee..fafc0a8a50 100644
--- a/web/src/components/ui/separator.tsx
+++ b/web/src/components/ui/separator.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
"use client";
import * as React from "react";
diff --git a/web/src/components/ui/sheet.tsx b/web/src/components/ui/sheet.tsx
index 3953ef2ce2..47b5bfe277 100644
--- a/web/src/components/ui/sheet.tsx
+++ b/web/src/components/ui/sheet.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
"use client";
import * as React from "react";
diff --git a/web/src/components/ui/side-panel.tsx b/web/src/components/ui/side-panel.tsx
index 87806c7437..334df252e3 100644
--- a/web/src/components/ui/side-panel.tsx
+++ b/web/src/components/ui/side-panel.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props, @repo/no-abstracted-overlay-trigger, @repo/no-null-render */
+/* eslint-disable @repo/no-style-props, @repo/no-abstracted-overlay-trigger, @repo/no-null-render, @repo/component-file-structure */
import { default as React, useState, useCallback, type ReactNode } from "react";
import { Button } from "@/src/components/ui/button";
import {
diff --git a/web/src/components/ui/sidebar.tsx b/web/src/components/ui/sidebar.tsx
index a88bc14bcd..6ac98e8188 100644
--- a/web/src/components/ui/sidebar.tsx
+++ b/web/src/components/ui/sidebar.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props, @repo/no-margin-on-root-elements */
+/* eslint-disable @repo/no-style-props, @repo/no-margin-on-root-elements, @repo/component-file-structure */
"use client";
import * as React from "react";
diff --git a/web/src/components/ui/skeleton.tsx b/web/src/components/ui/skeleton.tsx
index 5fb4829b02..3aa4d79545 100644
--- a/web/src/components/ui/skeleton.tsx
+++ b/web/src/components/ui/skeleton.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
import { cva, type VariantProps } from "class-variance-authority";
import { cn } from "@/src/utils/tailwind";
diff --git a/web/src/components/ui/slider.tsx b/web/src/components/ui/slider.tsx
index e13ababcaa..862ece3a38 100644
--- a/web/src/components/ui/slider.tsx
+++ b/web/src/components/ui/slider.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
/* eslint-disable @repo/no-style-props */
"use client";
diff --git a/web/src/components/ui/sonner.tsx b/web/src/components/ui/sonner.tsx
index 3e38d34bf7..0815640f58 100644
--- a/web/src/components/ui/sonner.tsx
+++ b/web/src/components/ui/sonner.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
"use client";
import { Toaster as Sonner } from "sonner";
diff --git a/web/src/components/ui/splash-screen.tsx b/web/src/components/ui/splash-screen.tsx
index b396411b47..b6ed35148c 100644
--- a/web/src/components/ui/splash-screen.tsx
+++ b/web/src/components/ui/splash-screen.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-margin-on-root-elements */
+/* eslint-disable @repo/no-margin-on-root-elements, @repo/component-file-structure */
import React, { useState } from "react";
import { cn } from "@/src/utils/tailwind";
import Image from "next/image";
diff --git a/web/src/components/ui/table.tsx b/web/src/components/ui/table.tsx
index 9f465af91b..28b2e198eb 100644
--- a/web/src/components/ui/table.tsx
+++ b/web/src/components/ui/table.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props, @repo/no-margin-on-root-elements */
+/* eslint-disable @repo/no-style-props, @repo/no-margin-on-root-elements, @repo/component-file-structure */
import * as React from "react";
import { cn } from "@/src/utils/tailwind";
diff --git a/web/src/components/ui/textarea.tsx b/web/src/components/ui/textarea.tsx
index 2e0ebfdc9f..15efd1ea0a 100644
--- a/web/src/components/ui/textarea.tsx
+++ b/web/src/components/ui/textarea.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
import * as React from "react";
import { cn } from "@/src/utils/tailwind";
diff --git a/web/src/components/ui/time-icon.tsx b/web/src/components/ui/time-icon.tsx
index 36e26b97af..5313b09d14 100644
--- a/web/src/components/ui/time-icon.tsx
+++ b/web/src/components/ui/time-icon.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import * as React from "react";
import { Clock, Moon, Sun } from "lucide-react";
import { type Period } from "@/src/components/ui/time-picker-utils";
diff --git a/web/src/components/ui/time-period-select.tsx b/web/src/components/ui/time-period-select.tsx
index 938b6ff3b3..4026ce2e10 100644
--- a/web/src/components/ui/time-period-select.tsx
+++ b/web/src/components/ui/time-period-select.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
"use client";
import * as React from "react";
diff --git a/web/src/components/ui/time-picker-input.tsx b/web/src/components/ui/time-picker-input.tsx
index c3ced53118..e816dd8e72 100644
--- a/web/src/components/ui/time-picker-input.tsx
+++ b/web/src/components/ui/time-picker-input.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
import React from "react";
import {
diff --git a/web/src/components/ui/time-picker.tsx b/web/src/components/ui/time-picker.tsx
index 6e3ddbedc5..d3cfd0e32d 100644
--- a/web/src/components/ui/time-picker.tsx
+++ b/web/src/components/ui/time-picker.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
"use client";
import * as React from "react";
diff --git a/web/src/components/ui/tooltip.tsx b/web/src/components/ui/tooltip.tsx
index c2416bdda3..43a91e1cd1 100644
--- a/web/src/components/ui/tooltip.tsx
+++ b/web/src/components/ui/tooltip.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
"use client";
import * as React from "react";
diff --git a/web/src/context/LayerContext/LayerContext.tsx b/web/src/context/LayerContext/LayerContext.tsx
index 905fac434e..d43d846d04 100644
--- a/web/src/context/LayerContext/LayerContext.tsx
+++ b/web/src/context/LayerContext/LayerContext.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import * as React from "react";
import { LAYER_ORDER, type LayerName } from "./layers";
diff --git a/web/src/features/annotation-queues/components/object-not-found-card.tsx b/web/src/features/annotation-queues/components/object-not-found-card.tsx
index 06e3ca68c6..7c9070b7ca 100644
--- a/web/src/features/annotation-queues/components/object-not-found-card.tsx
+++ b/web/src/features/annotation-queues/components/object-not-found-card.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { Card } from "@/src/components/ui/card";
import { SearchXIcon } from "lucide-react";
diff --git a/web/src/features/annotation-queues/pages/AnnotationQueueItems.tsx b/web/src/features/annotation-queues/pages/AnnotationQueueItems.tsx
index c7da782123..93308867cb 100644
--- a/web/src/features/annotation-queues/pages/AnnotationQueueItems.tsx
+++ b/web/src/features/annotation-queues/pages/AnnotationQueueItems.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { api } from "@/src/utils/api";
import { useState } from "react";
import { AnnotationQueueItemsTable } from "@/src/features/annotation-queues/components/AnnotationQueueItemsTable";
diff --git a/web/src/features/auth-credentials/components/ResetPasswordButton.tsx b/web/src/features/auth-credentials/components/ResetPasswordButton.tsx
index 3cc53fa275..72a2de0320 100644
--- a/web/src/features/auth-credentials/components/ResetPasswordButton.tsx
+++ b/web/src/features/auth-credentials/components/ResetPasswordButton.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { signIn, useSession } from "next-auth/react";
import { Button } from "@/src/components/ui/button";
import { useEffect, useRef, useState } from "react";
diff --git a/web/src/features/auth/SignInPage.tsx b/web/src/features/auth/SignInPage.tsx
index 3a37250d22..0c8116fad4 100644
--- a/web/src/features/auth/SignInPage.tsx
+++ b/web/src/features/auth/SignInPage.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
import { LangfuseIcon } from "@/src/components/design-system/LangfuseIcon/LangfuseIcon";
import { Button } from "@/src/components/ui/button";
import {
diff --git a/web/src/features/auth/components/AuthCloudPrivacyNotice.tsx b/web/src/features/auth/components/AuthCloudPrivacyNotice.tsx
index c3fb047b4e..8121dcd724 100644
--- a/web/src/features/auth/components/AuthCloudPrivacyNotice.tsx
+++ b/web/src/features/auth/components/AuthCloudPrivacyNotice.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
export const CloudPrivacyNotice = ({ action }: { action: string }) => (
<div className="text-muted-foreground mx-auto mt-10 max-w-lg text-center text-xs">
By {action} you are agreeing to our{" "}
diff --git a/web/src/features/auth/components/AuthCloudRegionSwitch.tsx b/web/src/features/auth/components/AuthCloudRegionSwitch.tsx
index b4076b30fd..8d94a9ecc5 100644
--- a/web/src/features/auth/components/AuthCloudRegionSwitch.tsx
+++ b/web/src/features/auth/components/AuthCloudRegionSwitch.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { env } from "@/src/env.mjs";
import { CloudRegionPicker } from "@/src/features/auth/components/CloudRegionPicker";
import {
diff --git a/web/src/features/automations/components/automationForm.tsx b/web/src/features/automations/components/automationForm.tsx
index ff52c63680..52c2719eb2 100644
--- a/web/src/features/automations/components/automationForm.tsx
+++ b/web/src/features/automations/components/automationForm.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
import { showSuccessToast, showErrorToast } from "@/src/features/notifications";
import React from "react";
import {
diff --git a/web/src/features/automations/components/automations.tsx b/web/src/features/automations/components/automations.tsx
index 9427c5d3ae..9140c601da 100644
--- a/web/src/features/automations/components/automations.tsx
+++ b/web/src/features/automations/components/automations.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { useRouter } from "next/router";
import { AutomationSidebar } from "@/src/features/automations/components/AutomationSidebar";
import { AutomationDetails } from "@/src/features/automations/components/AutomationDetails";
diff --git a/web/src/features/background-migrations/components/background-migrations.tsx b/web/src/features/background-migrations/components/background-migrations.tsx
index 4a2f7587b1..9602709b9d 100644
--- a/web/src/features/background-migrations/components/background-migrations.tsx
+++ b/web/src/features/background-migrations/components/background-migrations.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
import { DataTable } from "@/src/components/table/data-table";
import { DataTableToolbar } from "@/src/components/table/data-table-toolbar";
import { type LangfuseColumnDef } from "@/src/components/table/types";
diff --git a/web/src/features/background-migrations/components/retry-background-migration.tsx b/web/src/features/background-migrations/components/retry-background-migration.tsx
index 2c127b99aa..a7ffe8af3c 100644
--- a/web/src/features/background-migrations/components/retry-background-migration.tsx
+++ b/web/src/features/background-migrations/components/retry-background-migration.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { Button } from "@/src/components/ui/button";
import { api } from "@/src/utils/api";
import { useState } from "react";
diff --git a/web/src/features/batch-actions/components/AddObservationsToDatasetDialog/index.tsx b/web/src/features/batch-actions/components/AddObservationsToDatasetDialog/index.tsx
index 7124b0c245..b8e8d95eda 100644
--- a/web/src/features/batch-actions/components/AddObservationsToDatasetDialog/index.tsx
+++ b/web/src/features/batch-actions/components/AddObservationsToDatasetDialog/index.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { useRef, useState } from "react";
import { useStore } from "zustand";
import { parseJsonPrioritised, type BatchActionQuery } from "@langfuse/shared";
diff --git a/web/src/features/batch-actions/components/RunEvaluationDialog/index.tsx b/web/src/features/batch-actions/components/RunEvaluationDialog/index.tsx
index 8de5baee84..4202efaa8b 100644
--- a/web/src/features/batch-actions/components/RunEvaluationDialog/index.tsx
+++ b/web/src/features/batch-actions/components/RunEvaluationDialog/index.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
import { useMemo, useState } from "react";
import Link from "next/link";
import { useStore } from "zustand";
diff --git a/web/src/features/chart-view/components/ConfigControls.tsx b/web/src/features/chart-view/components/ConfigControls.tsx
index d9a0714071..f57c6860ec 100644
--- a/web/src/features/chart-view/components/ConfigControls.tsx
+++ b/web/src/features/chart-view/components/ConfigControls.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import React from "react";
import { type DashboardWidgetChartType } from "@langfuse/shared/src/db";
import {
diff --git a/web/src/features/comments/components/CommentOverlayHost.tsx b/web/src/features/comments/components/CommentOverlayHost.tsx
index f59e8578e5..6980ead3e7 100644
--- a/web/src/features/comments/components/CommentOverlayHost.tsx
+++ b/web/src/features/comments/components/CommentOverlayHost.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { useState, type ComponentProps, type ReactNode } from "react";
import { useStore } from "zustand";
import { useRouter } from "next/router";
diff --git a/web/src/features/comments/contexts/InlineCommentSelectionContext.tsx b/web/src/features/comments/contexts/InlineCommentSelectionContext.tsx
index 97ee5948f0..a7234288a5 100644
--- a/web/src/features/comments/contexts/InlineCommentSelectionContext.tsx
+++ b/web/src/features/comments/contexts/InlineCommentSelectionContext.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import {
createContext,
useContext,
diff --git a/web/src/features/corrections/contexts/CorrectionCacheContext.tsx b/web/src/features/corrections/contexts/CorrectionCacheContext.tsx
index 554a0f1b64..0f4a3eada4 100644
--- a/web/src/features/corrections/contexts/CorrectionCacheContext.tsx
+++ b/web/src/features/corrections/contexts/CorrectionCacheContext.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import {
createContext,
type ReactNode,
diff --git a/web/src/features/dashboard/components/LatencyChart.tsx b/web/src/features/dashboard/components/LatencyChart.tsx
index 3b2eea1618..d2779b8aff 100644
--- a/web/src/features/dashboard/components/LatencyChart.tsx
+++ b/web/src/features/dashboard/components/LatencyChart.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
import { type FilterState, getGenerationLikeTypes } from "@langfuse/shared";
import {
extractTimeSeriesData,
diff --git a/web/src/features/dashboard/components/LatencyTables.tsx b/web/src/features/dashboard/components/LatencyTables.tsx
index 089900ffe1..9087b481a8 100644
--- a/web/src/features/dashboard/components/LatencyTables.tsx
+++ b/web/src/features/dashboard/components/LatencyTables.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
import { RightAlignedCell } from "@/src/features/dashboard/components/RightAlignedCell";
import { DashboardCard } from "@/src/features/dashboard/components/cards/DashboardCard";
import { DashboardTable } from "@/src/features/dashboard/components/cards/DashboardTable";
diff --git a/web/src/features/dashboard/components/ModelSelector.tsx b/web/src/features/dashboard/components/ModelSelector.tsx
index f61059f0b7..cc4edb2f5b 100644
--- a/web/src/features/dashboard/components/ModelSelector.tsx
+++ b/web/src/features/dashboard/components/ModelSelector.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { MultiSelectTagInput } from "@/src/components/design-system/MultiSelectTagInput/MultiSelectTagInput";
import { useAllModels } from "@/src/features/dashboard/components/hooks";
import { type FilterState } from "@langfuse/shared";
diff --git a/web/src/features/dashboard/components/TabsComponent.tsx b/web/src/features/dashboard/components/TabsComponent.tsx
index 1d4cd0fc17..936bd773b6 100644
--- a/web/src/features/dashboard/components/TabsComponent.tsx
+++ b/web/src/features/dashboard/components/TabsComponent.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { Tabs } from "@/src/components/design-system/Tabs/Tabs";
import { usePostHogClientCapture } from "@/src/features/posthog-analytics";
import { type ChangeEvent, type ReactNode, useState } from "react";
diff --git a/web/src/features/dashboard/components/TracesTimeSeriesChart.tsx b/web/src/features/dashboard/components/TracesTimeSeriesChart.tsx
index 896617b987..0eafab876e 100644
--- a/web/src/features/dashboard/components/TracesTimeSeriesChart.tsx
+++ b/web/src/features/dashboard/components/TracesTimeSeriesChart.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
import { type FilterState } from "@langfuse/shared";
import { DashboardCard } from "@/src/features/dashboard/components/cards/DashboardCard";
import { TotalMetric } from "@/src/features/dashboard/components/TotalMetric";
diff --git a/web/src/features/dashboard/components/cards/ChevronButton.tsx b/web/src/features/dashboard/components/cards/ChevronButton.tsx
index f967b12932..c881016df1 100644
--- a/web/src/features/dashboard/components/cards/ChevronButton.tsx
+++ b/web/src/features/dashboard/components/cards/ChevronButton.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { DropdownIndicator } from "@/src/components/design-system/DropdownIndicator/DropdownIndicator";
import { Button } from "@/src/components/ui/button";
diff --git a/web/src/features/dashboard/hooks/useDashboardQueryScheduler.tsx b/web/src/features/dashboard/hooks/useDashboardQueryScheduler.tsx
index ca5ee5131f..f28b3c38c2 100644
--- a/web/src/features/dashboard/hooks/useDashboardQueryScheduler.tsx
+++ b/web/src/features/dashboard/hooks/useDashboardQueryScheduler.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import {
type TimeRange,
toAbsoluteTimeRange,
diff --git a/web/src/features/datasets/components/DatasetIOCells.tsx b/web/src/features/datasets/components/DatasetIOCells.tsx
index 95e7857995..7aba7df3fc 100644
--- a/web/src/features/datasets/components/DatasetIOCells.tsx
+++ b/web/src/features/datasets/components/DatasetIOCells.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { api } from "@/src/utils/api";
import { ConnectedIOTableCell } from "@/src/components/table/ConnectedIOTableCell";
import { useBoundRowHeightIO } from "@/src/components/table/data-table-row-height-switch";
diff --git a/web/src/features/datasets/components/DatasetItemEditorLayout.tsx b/web/src/features/datasets/components/DatasetItemEditorLayout.tsx
index 0f607e4807..68251a5680 100644
--- a/web/src/features/datasets/components/DatasetItemEditorLayout.tsx
+++ b/web/src/features/datasets/components/DatasetItemEditorLayout.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { type ReactNode } from "react";
import { JSONView } from "@/src/components/ui/CodeJsonViewer";
diff --git a/web/src/features/datasets/components/DatasetItemMediaAttachments.tsx b/web/src/features/datasets/components/DatasetItemMediaAttachments.tsx
index 5e8366ab24..fcf9a487c5 100644
--- a/web/src/features/datasets/components/DatasetItemMediaAttachments.tsx
+++ b/web/src/features/datasets/components/DatasetItemMediaAttachments.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-null-render */
+/* eslint-disable @repo/no-null-render, @repo/component-file-structure */
import { type RefObject, useRef, useState } from "react";
import type { EditorView, ReactCodeMirrorRef } from "@uiw/react-codemirror";
import { type Extension } from "@codemirror/state";
diff --git a/web/src/features/datasets/contexts/ActiveCellContext.tsx b/web/src/features/datasets/contexts/ActiveCellContext.tsx
index 909d493c4b..7067cc8aab 100644
--- a/web/src/features/datasets/contexts/ActiveCellContext.tsx
+++ b/web/src/features/datasets/contexts/ActiveCellContext.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { type ScoreAggregate } from "@langfuse/shared";
import { createContext, useContext, useState, type ReactNode } from "react";
import { useStore } from "zustand";
diff --git a/web/src/features/datasets/contexts/DatasetCompareFieldsContext.tsx b/web/src/features/datasets/contexts/DatasetCompareFieldsContext.tsx
index 91de8bd7da..3ae356f533 100644
--- a/web/src/features/datasets/contexts/DatasetCompareFieldsContext.tsx
+++ b/web/src/features/datasets/contexts/DatasetCompareFieldsContext.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { createContext, useContext, useState, type ReactNode } from "react";
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- Used via typeof
diff --git a/web/src/features/evals/components/code-eval-template-form-body.tsx b/web/src/features/evals/components/code-eval-template-form-body.tsx
index 073f9efba0..dc6cde4b56 100644
--- a/web/src/features/evals/components/code-eval-template-form-body.tsx
+++ b/web/src/features/evals/components/code-eval-template-form-body.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
import { showErrorToast } from "@/src/features/notifications";
import CodeMirror, {
Decoration,
diff --git a/web/src/features/evals/components/code-eval-test-run-card.tsx b/web/src/features/evals/components/code-eval-test-run-card.tsx
index 8109449cfa..60f32966dd 100644
--- a/web/src/features/evals/components/code-eval-test-run-card.tsx
+++ b/web/src/features/evals/components/code-eval-test-run-card.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { CodeMirrorEditor } from "@/src/components/editor";
import { TablePeekViewTraceDetail } from "@/src/components/table/peek/peek-trace-detail";
import { usePeekNavigation } from "@/src/components/table/peek/hooks/usePeekNavigation";
diff --git a/web/src/features/evals/components/deactivate-config.tsx b/web/src/features/evals/components/deactivate-config.tsx
index 8fc29b1134..a9fd3fdfa9 100644
--- a/web/src/features/evals/components/deactivate-config.tsx
+++ b/web/src/features/evals/components/deactivate-config.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-abstracted-overlay-trigger */
+/* eslint-disable @repo/no-abstracted-overlay-trigger, @repo/component-file-structure */
import { useHasProjectAccess } from "@/src/features/rbac";
import { EvaluatorStatus } from "@/src/features/evals/types";
import { usePostHogClientCapture } from "@/src/features/posthog-analytics";
diff --git a/web/src/features/evals/components/default-eval-model-setup.tsx b/web/src/features/evals/components/default-eval-model-setup.tsx
index a9a9b6b2d0..39d475b533 100644
--- a/web/src/features/evals/components/default-eval-model-setup.tsx
+++ b/web/src/features/evals/components/default-eval-model-setup.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props, @repo/no-abstracted-overlay-trigger */
+/* eslint-disable @repo/no-style-props, @repo/no-abstracted-overlay-trigger, @repo/component-file-structure */
import { useHasProjectAccess } from "@/src/features/rbac";
import { ModelParameters } from "@/src/components/ModelParameters";
import { CardContent, Card } from "@/src/components/ui/card";
diff --git a/web/src/features/evals/components/delete-eval-template-dialog.tsx b/web/src/features/evals/components/delete-eval-template-dialog.tsx
index 478cfd760d..5d422957c1 100644
--- a/web/src/features/evals/components/delete-eval-template-dialog.tsx
+++ b/web/src/features/evals/components/delete-eval-template-dialog.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
import { ExternalLinkIcon } from "lucide-react";
import Link from "next/link";
import { useState } from "react";
diff --git a/web/src/features/evals/components/eval-form-descriptions.tsx b/web/src/features/evals/components/eval-form-descriptions.tsx
index 1aaf834b5d..b6aca92226 100644
--- a/web/src/features/evals/components/eval-form-descriptions.tsx
+++ b/web/src/features/evals/components/eval-form-descriptions.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import DocPopup from "@/src/components/layouts/doc-popup";
import { Label } from "@/src/components/ui/label";
diff --git a/web/src/features/evals/components/eval-log.tsx b/web/src/features/evals/components/eval-log.tsx
index 0904497a33..32282ac28d 100644
--- a/web/src/features/evals/components/eval-log.tsx
+++ b/web/src/features/evals/components/eval-log.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
import { createStatusTableColumn } from "@/src/components/design-system/table/columns/createStatusTableColumn";
import { DataTable } from "@/src/components/table/data-table";
import {
diff --git a/web/src/features/evals/components/eval-template-detail.tsx b/web/src/features/evals/components/eval-template-detail.tsx
index 88d6b5b523..2c99ff06bb 100644
--- a/web/src/features/evals/components/eval-template-detail.tsx
+++ b/web/src/features/evals/components/eval-template-detail.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
import { useHasProjectAccess } from "@/src/features/rbac";
import * as React from "react";
import { EvalTemplateForm } from "@/src/features/evals/components/template-form";
diff --git a/web/src/features/evals/components/eval-template-type-selector.tsx b/web/src/features/evals/components/eval-template-type-selector.tsx
index bfefe4ea90..84d8b1404b 100644
--- a/web/src/features/evals/components/eval-template-type-selector.tsx
+++ b/web/src/features/evals/components/eval-template-type-selector.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { useRef } from "react";
import { type UseFormReturn } from "react-hook-form";
import { type z } from "zod";
diff --git a/web/src/features/evals/components/eval-templates-table.tsx b/web/src/features/evals/components/eval-templates-table.tsx
index b69f6465bc..2ba6668952 100644
--- a/web/src/features/evals/components/eval-templates-table.tsx
+++ b/web/src/features/evals/components/eval-templates-table.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
import { DataTable } from "@/src/components/table/data-table";
import { DataTableToolbar } from "@/src/components/table/data-table-toolbar";
import { type LangfuseColumnDef } from "@/src/components/table/types";
diff --git a/web/src/features/evals/components/eval-version-callout.tsx b/web/src/features/evals/components/eval-version-callout.tsx
index 49cc2eea0a..14aa548bd4 100644
--- a/web/src/features/evals/components/eval-version-callout.tsx
+++ b/web/src/features/evals/components/eval-version-callout.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { Alert } from "@/src/components/design-system/Alert/Alert";
import { AlertTriangle } from "lucide-react";
import { type EvalCapabilities } from "@/src/features/evals/hooks/useEvalCapabilities";
diff --git a/web/src/features/evals/components/evaluation-prompt-preview.tsx b/web/src/features/evals/components/evaluation-prompt-preview.tsx
index e8349b7ca7..475057ddc8 100644
--- a/web/src/features/evals/components/evaluation-prompt-preview.tsx
+++ b/web/src/features/evals/components/evaluation-prompt-preview.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
import { ItemBadge, type LangfuseItemType } from "@/src/components/ItemBadge";
import { Skeleton } from "@/src/components/ui/skeleton";
import { useExtractVariables } from "@/src/features/evals/hooks/useExtractVariables";
diff --git a/web/src/features/evals/components/evaluator-detail.tsx b/web/src/features/evals/components/evaluator-detail.tsx
index 2cb163d4d0..4bdb2bee02 100644
--- a/web/src/features/evals/components/evaluator-detail.tsx
+++ b/web/src/features/evals/components/evaluator-detail.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import * as React from "react";
import { api } from "@/src/utils/api";
import { useRouter } from "next/router";
diff --git a/web/src/features/evals/components/evaluator-form.tsx b/web/src/features/evals/components/evaluator-form.tsx
index ce53c9cccf..f9493d137e 100644
--- a/web/src/features/evals/components/evaluator-form.tsx
+++ b/web/src/features/evals/components/evaluator-form.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { type EvalTemplate, type EvalTargetObject } from "@langfuse/shared";
import { InnerEvaluatorForm } from "@/src/features/evals/components/inner-evaluator-form";
import { type PartialConfig } from "@/src/features/evals/types";
diff --git a/web/src/features/evals/components/evaluator-paused-callout.tsx b/web/src/features/evals/components/evaluator-paused-callout.tsx
index 5b7267e310..6f7c97a516 100644
--- a/web/src/features/evals/components/evaluator-paused-callout.tsx
+++ b/web/src/features/evals/components/evaluator-paused-callout.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { Button } from "@/src/components/ui/button";
import { showErrorToast, showSuccessToast } from "@/src/features/notifications";
import { api } from "@/src/utils/api";
diff --git a/web/src/features/evals/components/evaluator-selector.tsx b/web/src/features/evals/components/evaluator-selector.tsx
index e2215df8d8..85a4503c0a 100644
--- a/web/src/features/evals/components/evaluator-selector.tsx
+++ b/web/src/features/evals/components/evaluator-selector.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import {
EvalTemplateSourceCodeLanguage,
EvalTemplateType,
diff --git a/web/src/features/evals/components/evaluator-table.tsx b/web/src/features/evals/components/evaluator-table.tsx
index 1d02dda852..1d806890c3 100644
--- a/web/src/features/evals/components/evaluator-table.tsx
+++ b/web/src/features/evals/components/evaluator-table.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
import { encodeFiltersGeneric } from "@langfuse/shared";
import { LevelCountsDisplay } from "@/src/components/level-counts-display";
import { DataTable } from "@/src/components/table/data-table";
diff --git a/web/src/features/evals/components/execution-count-tooltip.tsx b/web/src/features/evals/components/execution-count-tooltip.tsx
index f5492c06db..b1fad31311 100644
--- a/web/src/features/evals/components/execution-count-tooltip.tsx
+++ b/web/src/features/evals/components/execution-count-tooltip.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { type EvalFormType } from "@/src/features/evals/utils/evaluator-form-utils";
import { api } from "@/src/utils/api";
import { compactNumberFormatter } from "@/src/utils/numbers";
diff --git a/web/src/features/evals/components/inner-evaluator-form.tsx b/web/src/features/evals/components/inner-evaluator-form.tsx
index c1783ceef4..b0b0447c5d 100644
--- a/web/src/features/evals/components/inner-evaluator-form.tsx
+++ b/web/src/features/evals/components/inner-evaluator-form.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
import { type UseFormReturn, useForm } from "react-hook-form";
import { Alert } from "@/src/components/design-system/Alert/Alert";
import { Input } from "@/src/components/ui/input";
diff --git a/web/src/features/evals/components/maintainer-tooltip.tsx b/web/src/features/evals/components/maintainer-tooltip.tsx
index 957f835806..7179281cb2 100644
--- a/web/src/features/evals/components/maintainer-tooltip.tsx
+++ b/web/src/features/evals/components/maintainer-tooltip.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { LangfuseIcon } from "@/src/components/design-system/LangfuseIcon/LangfuseIcon";
import { Tooltip } from "@/src/components/design-system/Tooltip/Tooltip";
import { RagasLogoIcon } from "@/src/features/evals/components/ragas-logo";
diff --git a/web/src/features/evals/components/manage-default-eval-model.tsx b/web/src/features/evals/components/manage-default-eval-model.tsx
index d26696e576..e8b7b40c03 100644
--- a/web/src/features/evals/components/manage-default-eval-model.tsx
+++ b/web/src/features/evals/components/manage-default-eval-model.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
import { Button } from "@/src/components/ui/button";
import { useHasProjectAccess } from "@/src/features/rbac";
import { api } from "@/src/utils/api";
diff --git a/web/src/features/evals/components/ragas-logo.tsx b/web/src/features/evals/components/ragas-logo.tsx
index 30af52ecac..9cdd053359 100644
--- a/web/src/features/evals/components/ragas-logo.tsx
+++ b/web/src/features/evals/components/ragas-logo.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { env } from "@/src/env.mjs";
export const RagasLogoIcon = () => {
diff --git a/web/src/features/evals/components/run-evaluator-form.tsx b/web/src/features/evals/components/run-evaluator-form.tsx
index 5e5819cdc7..ac7b9c4ae0 100644
--- a/web/src/features/evals/components/run-evaluator-form.tsx
+++ b/web/src/features/evals/components/run-evaluator-form.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { Card } from "@/src/components/ui/card";
import {
EvaluatorForm,
diff --git a/web/src/features/evals/components/select-evaluator-list.tsx b/web/src/features/evals/components/select-evaluator-list.tsx
index 2a60d9f583..3fe5859518 100644
--- a/web/src/features/evals/components/select-evaluator-list.tsx
+++ b/web/src/features/evals/components/select-evaluator-list.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
import { Fragment, type ReactNode, useEffect, useRef, useState } from "react";
import { useRouter } from "next/router";
import { api } from "@/src/utils/api";
diff --git a/web/src/features/evals/components/template-form.tsx b/web/src/features/evals/components/template-form.tsx
index 92add8a294..0ce97a28e0 100644
--- a/web/src/features/evals/components/template-form.tsx
+++ b/web/src/features/evals/components/template-form.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
import { useState } from "react";
import Link from "next/link";
import { useFieldArray, useForm } from "react-hook-form";
diff --git a/web/src/features/evals/components/template-selector.tsx b/web/src/features/evals/components/template-selector.tsx
index 475e515e57..9ff96bd797 100644
--- a/web/src/features/evals/components/template-selector.tsx
+++ b/web/src/features/evals/components/template-selector.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props, @repo/no-abstracted-overlay-trigger */
+/* eslint-disable @repo/no-style-props, @repo/no-abstracted-overlay-trigger, @repo/component-file-structure */
import { type EvalTemplate } from "@langfuse/shared";
import {
diff --git a/web/src/features/evals/components/variable-mapping-card.tsx b/web/src/features/evals/components/variable-mapping-card.tsx
index aa6ec33e6d..79b26ae6ab 100644
--- a/web/src/features/evals/components/variable-mapping-card.tsx
+++ b/web/src/features/evals/components/variable-mapping-card.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
import {
Select,
SelectContent,
diff --git a/web/src/features/evals/pages/default-evaluation-model.tsx b/web/src/features/evals/pages/default-evaluation-model.tsx
index 565a07299a..fea71dfc7b 100644
--- a/web/src/features/evals/pages/default-evaluation-model.tsx
+++ b/web/src/features/evals/pages/default-evaluation-model.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import Page from "@/src/components/layouts/page";
import { useRouter } from "next/router";
import { useHasProjectAccess } from "@/src/features/rbac";
diff --git a/web/src/features/evals/pages/evaluators.tsx b/web/src/features/evals/pages/evaluators.tsx
index c126b98785..7dcafd9f10 100644
--- a/web/src/features/evals/pages/evaluators.tsx
+++ b/web/src/features/evals/pages/evaluators.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import Page from "@/src/components/layouts/page";
import { useRouter } from "next/router";
import { useHasProjectAccess } from "@/src/features/rbac";
diff --git a/web/src/features/evals/pages/new-evaluator.tsx b/web/src/features/evals/pages/new-evaluator.tsx
index ffe4fc39b7..ceb90ed484 100644
--- a/web/src/features/evals/pages/new-evaluator.tsx
+++ b/web/src/features/evals/pages/new-evaluator.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import Page from "@/src/components/layouts/page";
import {
BreadcrumbSeparator,
diff --git a/web/src/features/evals/pages/new-template.tsx b/web/src/features/evals/pages/new-template.tsx
index 0df8cefdfe..c844f27b21 100644
--- a/web/src/features/evals/pages/new-template.tsx
+++ b/web/src/features/evals/pages/new-template.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import Page from "@/src/components/layouts/page";
import { EvalTemplateForm } from "@/src/features/evals/components/template-form";
import { useHasProjectAccess } from "@/src/features/rbac";
diff --git a/web/src/features/evals/pages/remap-evaluator.tsx b/web/src/features/evals/pages/remap-evaluator.tsx
index 1f58db16dc..759a3edf96 100644
--- a/web/src/features/evals/pages/remap-evaluator.tsx
+++ b/web/src/features/evals/pages/remap-evaluator.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
import { useState, useMemo } from "react";
import { useRouter } from "next/router";
import Page from "@/src/components/layouts/page";
diff --git a/web/src/features/evals/pages/templates.tsx b/web/src/features/evals/pages/templates.tsx
index 4ba8ba7c02..6196a78d20 100644
--- a/web/src/features/evals/pages/templates.tsx
+++ b/web/src/features/evals/pages/templates.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import Page from "@/src/components/layouts/page";
import { useRouter } from "next/router";
import { Button } from "@/src/components/ui/button";
diff --git a/web/src/features/evals/v2/components/Evaluators/EvaluatorSetupEditor/components/DefinitionStep/components/PromptEditor/PromptEditor.tsx b/web/src/features/evals/v2/components/Evaluators/EvaluatorSetupEditor/components/DefinitionStep/components/PromptEditor/PromptEditor.tsx
index 18203f1f2d..e2b28873ce 100644
--- a/web/src/features/evals/v2/components/Evaluators/EvaluatorSetupEditor/components/DefinitionStep/components/PromptEditor/PromptEditor.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/EvaluatorSetupEditor/components/DefinitionStep/components/PromptEditor/PromptEditor.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
import { Fragment, useState, type CSSProperties } from "react";
import {
Check,
diff --git a/web/src/features/evals/v2/components/Evaluators/JudgeModelPicker/JudgeModelPicker.tsx b/web/src/features/evals/v2/components/Evaluators/JudgeModelPicker/JudgeModelPicker.tsx
index 4f957d0776..42e93b20a2 100644
--- a/web/src/features/evals/v2/components/Evaluators/JudgeModelPicker/JudgeModelPicker.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/JudgeModelPicker/JudgeModelPicker.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
import {
Check,
ExternalLink,
diff --git a/web/src/features/evals/v2/components/Evaluators/Testing/components/TestResultTraceActions/TestResultTraceActions.tsx b/web/src/features/evals/v2/components/Evaluators/Testing/components/TestResultTraceActions/TestResultTraceActions.tsx
index 048c2bdf5a..bd083a0eaa 100644
--- a/web/src/features/evals/v2/components/Evaluators/Testing/components/TestResultTraceActions/TestResultTraceActions.tsx
+++ b/web/src/features/evals/v2/components/Evaluators/Testing/components/TestResultTraceActions/TestResultTraceActions.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { forwardRef, type ComponentProps, type ReactNode } from "react";
import { ExternalLink, MoreVertical } from "lucide-react";
diff --git a/web/src/features/evals/v2/components/VariableMapping/components/VariableMappingCardShell.tsx b/web/src/features/evals/v2/components/VariableMapping/components/VariableMappingCardShell.tsx
index abf5f96c5a..ac021cc70e 100644
--- a/web/src/features/evals/v2/components/VariableMapping/components/VariableMappingCardShell.tsx
+++ b/web/src/features/evals/v2/components/VariableMapping/components/VariableMappingCardShell.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
import {
Pencil,
TextCursorInput,
diff --git a/web/src/features/evals/v2/contexts/EvalOnboardingAnalyticsContext.tsx b/web/src/features/evals/v2/contexts/EvalOnboardingAnalyticsContext.tsx
index c2297db547..181fc6b72c 100644
--- a/web/src/features/evals/v2/contexts/EvalOnboardingAnalyticsContext.tsx
+++ b/web/src/features/evals/v2/contexts/EvalOnboardingAnalyticsContext.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { createContext, useContext, type ReactNode } from "react";
import type { createEvalOnboardingAnalytics } from "@/src/features/evals/v2/fns/createEvalOnboardingAnalytics";
diff --git a/web/src/features/events/components/EventsTable.tsx b/web/src/features/events/components/EventsTable.tsx
index fbbee2dc68..2eedb126b1 100644
--- a/web/src/features/events/components/EventsTable.tsx
+++ b/web/src/features/events/components/EventsTable.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
import { eventsSearchRegistry } from "../config/eventsSearchRegistry";
import {
useEventsSearchBar,
diff --git a/web/src/features/events/components/V4SidebarToggle.tsx b/web/src/features/events/components/V4SidebarToggle.tsx
index f0e43f0b73..7fbd6f6af7 100644
--- a/web/src/features/events/components/V4SidebarToggle.tsx
+++ b/web/src/features/events/components/V4SidebarToggle.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { Switch } from "@/src/components/design-system/Switch/Switch";
import { Label } from "@/src/components/ui/label";
import { SidebarMenuButton } from "@/src/components/ui/sidebar";
diff --git a/web/src/features/experiments/components/ExperimentOverviewField.tsx b/web/src/features/experiments/components/ExperimentOverviewField.tsx
index a3732225c9..f4c52b6f42 100644
--- a/web/src/features/experiments/components/ExperimentOverviewField.tsx
+++ b/web/src/features/experiments/components/ExperimentOverviewField.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import type { ReactNode } from "react";
export const ExperimentOverviewSectionHeading = ({
diff --git a/web/src/features/experiments/components/table/ExperimentGridCell.tsx b/web/src/features/experiments/components/table/ExperimentGridCell.tsx
index 6114c949b8..277b3fbb66 100644
--- a/web/src/features/experiments/components/table/ExperimentGridCell.tsx
+++ b/web/src/features/experiments/components/table/ExperimentGridCell.tsx
@@ -1,7 +1,7 @@
/* The experiment marker's colour is data — which run this is, out of the N
selected (`getExperimentColorStyles`) — so it arrives as a class rather than
as a variant, the same way `DiffLabel` takes one. */
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
import { EmptyValue } from "@/src/components/design-system/table/components/EmptyValue/EmptyValue";
import { EMPTY_VALUE_PLACEHOLDER } from "@/src/components/design-system/table/constants";
import { ConnectedIOTableCell } from "@/src/components/table/ConnectedIOTableCell";
diff --git a/web/src/features/experiments/components/table/ExperimentGridSummary.tsx b/web/src/features/experiments/components/table/ExperimentGridSummary.tsx
index db013a74aa..862b4d51d6 100644
--- a/web/src/features/experiments/components/table/ExperimentGridSummary.tsx
+++ b/web/src/features/experiments/components/table/ExperimentGridSummary.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { useMemo } from "react";
import { DropdownIndicator } from "@/src/components/design-system/DropdownIndicator/DropdownIndicator";
import { decomposeAggregateScoreKey } from "@/src/features/scores";
diff --git a/web/src/features/experiments/components/table/ScoreColumnFilterMenu.tsx b/web/src/features/experiments/components/table/ScoreColumnFilterMenu.tsx
index bff66f12fb..dcfba02419 100644
--- a/web/src/features/experiments/components/table/ScoreColumnFilterMenu.tsx
+++ b/web/src/features/experiments/components/table/ScoreColumnFilterMenu.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import {
forwardRef,
type ComponentProps,
diff --git a/web/src/features/feature-flags/components/UserFeaturePreviewsPopover.tsx b/web/src/features/feature-flags/components/UserFeaturePreviewsPopover.tsx
index 9a153c30f2..1c5c6df2a6 100644
--- a/web/src/features/feature-flags/components/UserFeaturePreviewsPopover.tsx
+++ b/web/src/features/feature-flags/components/UserFeaturePreviewsPopover.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { showErrorToast, showSuccessToast } from "@/src/features/notifications";
import { useId, useState, type ReactNode } from "react";
import { useSession } from "next-auth/react";
diff --git a/web/src/features/filters/components/filter-builder.tsx b/web/src/features/filters/components/filter-builder.tsx
index 2c2d3d1038..f7c83c1bf0 100644
--- a/web/src/features/filters/components/filter-builder.tsx
+++ b/web/src/features/filters/components/filter-builder.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
/* eslint-disable @repo/no-style-props */
import { TextActionButton } from "@/src/components/TextActionButton/TextActionButton";
import { Button } from "@/src/components/ui/button";
diff --git a/web/src/features/filters/components/multi-select.tsx b/web/src/features/filters/components/multi-select.tsx
index 57c10e7a4e..7fa66d9c89 100644
--- a/web/src/features/filters/components/multi-select.tsx
+++ b/web/src/features/filters/components/multi-select.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props, @repo/no-abstracted-overlay-trigger */
+/* eslint-disable @repo/no-style-props, @repo/no-abstracted-overlay-trigger, @repo/component-file-structure */
import * as React from "react";
import { Check, Loader2 } from "lucide-react";
import { DropdownIndicator } from "@/src/components/design-system/DropdownIndicator/DropdownIndicator";
diff --git a/web/src/features/filters/components/single-select.tsx b/web/src/features/filters/components/single-select.tsx
index 53ba8548c2..1dbcffc2e6 100644
--- a/web/src/features/filters/components/single-select.tsx
+++ b/web/src/features/filters/components/single-select.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props, @repo/no-abstracted-overlay-trigger */
+/* eslint-disable @repo/no-style-props, @repo/no-abstracted-overlay-trigger, @repo/component-file-structure */
import * as React from "react";
import { Check, Plus } from "lucide-react";
import { DropdownIndicator } from "@/src/components/design-system/DropdownIndicator/DropdownIndicator";
diff --git a/web/src/features/in-app-agent/components/dialog-controller.tsx b/web/src/features/in-app-agent/components/dialog-controller.tsx
index 41bbd7bb17..03480d425f 100644
--- a/web/src/features/in-app-agent/components/dialog-controller.tsx
+++ b/web/src/features/in-app-agent/components/dialog-controller.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
"use client";
import { type ReactNode, useCallback, useState } from "react";
diff --git a/web/src/features/models/components/ModelSettings.tsx b/web/src/features/models/components/ModelSettings.tsx
index f9bb3ba66d..76f6f46eb7 100644
--- a/web/src/features/models/components/ModelSettings.tsx
+++ b/web/src/features/models/components/ModelSettings.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import Header from "@/src/components/layouts/header";
import { ConnectedModelDefinitionsTable } from "@/src/features/models/ModelDefinitionsTable/ConnectedModelDefinitionsTable";
diff --git a/web/src/features/models/components/UpsertModelFormDialog/UpsertModelFormDialogController.tsx b/web/src/features/models/components/UpsertModelFormDialog/UpsertModelFormDialogController.tsx
index 3bc567df57..bfb5649c84 100644
--- a/web/src/features/models/components/UpsertModelFormDialog/UpsertModelFormDialogController.tsx
+++ b/web/src/features/models/components/UpsertModelFormDialog/UpsertModelFormDialogController.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
/* eslint @repo/no-style-props: "off" */
import cloneDeep from "lodash/cloneDeep";
import isEqual from "lodash/isEqual";
diff --git a/web/src/features/models/components/test-match/TestModelMatchDialog.tsx b/web/src/features/models/components/test-match/TestModelMatchDialog.tsx
index 9e15fb082c..bec8576b16 100644
--- a/web/src/features/models/components/test-match/TestModelMatchDialog.tsx
+++ b/web/src/features/models/components/test-match/TestModelMatchDialog.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { useState, useEffect } from "react";
import Link from "next/link";
import {
diff --git a/web/src/features/navigate-detail-pages/context.tsx b/web/src/features/navigate-detail-pages/context.tsx
index f3e8496c0e..5097d4a7d9 100644
--- a/web/src/features/navigate-detail-pages/context.tsx
+++ b/web/src/features/navigate-detail-pages/context.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import React, {
type PropsWithChildren,
createContext,
diff --git a/web/src/features/organizations/components/ProjectOverview.tsx b/web/src/features/organizations/components/ProjectOverview.tsx
index f87fd6d6a6..930345e741 100644
--- a/web/src/features/organizations/components/ProjectOverview.tsx
+++ b/web/src/features/organizations/components/ProjectOverview.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import {
BookOpen,
LockIcon,
diff --git a/web/src/features/playground/page/components/PlaygroundTools/index.tsx b/web/src/features/playground/page/components/PlaygroundTools/index.tsx
index ca472074b3..d5ec47be24 100644
--- a/web/src/features/playground/page/components/PlaygroundTools/index.tsx
+++ b/web/src/features/playground/page/components/PlaygroundTools/index.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import React, { useCallback, useEffect } from "react";
import { usePlaygroundContext } from "@/src/features/playground/page/context";
diff --git a/web/src/features/playground/page/components/StructuredOutputSchemaSection.tsx b/web/src/features/playground/page/components/StructuredOutputSchemaSection.tsx
index 2ff9951729..0f5affa0c2 100644
--- a/web/src/features/playground/page/components/StructuredOutputSchemaSection.tsx
+++ b/web/src/features/playground/page/components/StructuredOutputSchemaSection.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import React, { useCallback, useEffect } from "react";
import { usePlaygroundContext } from "@/src/features/playground/page/context";
diff --git a/web/src/features/playground/page/context/index.tsx b/web/src/features/playground/page/context/index.tsx
index 11abd148ca..74dbc3eb13 100644
--- a/web/src/features/playground/page/context/index.tsx
+++ b/web/src/features/playground/page/context/index.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { showErrorToast } from "@/src/features/notifications";
import React, {
createContext,
diff --git a/web/src/features/playground/page/index.tsx b/web/src/features/playground/page/index.tsx
index 0f2338ec96..6417c163d1 100644
--- a/web/src/features/playground/page/index.tsx
+++ b/web/src/features/playground/page/index.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import React, { useCallback } from "react";
import { Button } from "@/src/components/ui/button";
import { KeyboardShortcut } from "@/src/components/design-system/KeyboardShortcut/KeyboardShortcut";
diff --git a/web/src/features/prompts/components/NewPromptForm/index.tsx b/web/src/features/prompts/components/NewPromptForm/index.tsx
index f8aee9567d..77f0ae6f68 100644
--- a/web/src/features/prompts/components/NewPromptForm/index.tsx
+++ b/web/src/features/prompts/components/NewPromptForm/index.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import capitalize from "lodash/capitalize";
import router from "next/router";
import { useState, useEffect, useMemo, useRef } from "react";
diff --git a/web/src/features/prompts/components/PromptVersionDiffDialog.tsx b/web/src/features/prompts/components/PromptVersionDiffDialog.tsx
index 4d1c03398b..1214c183a3 100644
--- a/web/src/features/prompts/components/PromptVersionDiffDialog.tsx
+++ b/web/src/features/prompts/components/PromptVersionDiffDialog.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { Button } from "@/src/components/ui/button";
import {
DialogBody,
diff --git a/web/src/features/prompts/components/SetPromptVersionLabels/index.tsx b/web/src/features/prompts/components/SetPromptVersionLabels/index.tsx
index bf8eb1143f..a19e6e4b1d 100644
--- a/web/src/features/prompts/components/SetPromptVersionLabels/index.tsx
+++ b/web/src/features/prompts/components/SetPromptVersionLabels/index.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
/* eslint-disable @repo/no-abstracted-overlay-trigger */
import React, { useEffect, useState, useRef } from "react";
import { Plus } from "lucide-react";
diff --git a/web/src/features/prompts/components/delete-folder.tsx b/web/src/features/prompts/components/delete-folder.tsx
index e88316c666..7858811737 100644
--- a/web/src/features/prompts/components/delete-folder.tsx
+++ b/web/src/features/prompts/components/delete-folder.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
/* eslint-disable @repo/no-abstracted-overlay-trigger */
import { Button } from "@/src/components/ui/button";
import { useHasProjectAccess } from "@/src/features/rbac";
diff --git a/web/src/features/prompts/components/delete-prompt-version.tsx b/web/src/features/prompts/components/delete-prompt-version.tsx
index a367a20532..43ccaf5b9c 100644
--- a/web/src/features/prompts/components/delete-prompt-version.tsx
+++ b/web/src/features/prompts/components/delete-prompt-version.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-abstracted-overlay-trigger */
+/* eslint-disable @repo/no-abstracted-overlay-trigger, @repo/component-file-structure */
import { Button } from "@/src/components/ui/button";
import { useHasProjectAccess } from "@/src/features/rbac";
import { api } from "@/src/utils/api";
diff --git a/web/src/features/prompts/components/delete-prompt.tsx b/web/src/features/prompts/components/delete-prompt.tsx
index 0cd87adc22..2b195672cb 100644
--- a/web/src/features/prompts/components/delete-prompt.tsx
+++ b/web/src/features/prompts/components/delete-prompt.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-abstracted-overlay-trigger */
+/* eslint-disable @repo/no-abstracted-overlay-trigger, @repo/component-file-structure */
import { Button } from "@/src/components/ui/button";
import { useHasProjectAccess } from "@/src/features/rbac";
import { api } from "@/src/utils/api";
diff --git a/web/src/features/prompts/components/duplicate-folder.tsx b/web/src/features/prompts/components/duplicate-folder.tsx
index e12dd3f6ad..01336c8d1b 100644
--- a/web/src/features/prompts/components/duplicate-folder.tsx
+++ b/web/src/features/prompts/components/duplicate-folder.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-abstracted-overlay-trigger */
+/* eslint-disable @repo/no-abstracted-overlay-trigger, @repo/component-file-structure */
import { Button } from "@/src/components/ui/button";
import { useHasProjectAccess } from "@/src/features/rbac";
import { api } from "@/src/utils/api";
diff --git a/web/src/features/prompts/components/duplicate-prompt.tsx b/web/src/features/prompts/components/duplicate-prompt.tsx
index 1b03a63851..bf85294c78 100644
--- a/web/src/features/prompts/components/duplicate-prompt.tsx
+++ b/web/src/features/prompts/components/duplicate-prompt.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-abstracted-overlay-trigger */
+/* eslint-disable @repo/no-abstracted-overlay-trigger, @repo/component-file-structure */
import { useRouter } from "next/router";
import { Button } from "@/src/components/ui/button";
import { api, reportNonTrpcError } from "@/src/utils/api";
diff --git a/web/src/features/prompts/components/prompt-detail.tsx b/web/src/features/prompts/components/prompt-detail.tsx
index ac605109d9..f7510d9832 100644
--- a/web/src/features/prompts/components/prompt-detail.tsx
+++ b/web/src/features/prompts/components/prompt-detail.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
import Link from "next/link";
import { useRouter } from "next/router";
import {
diff --git a/web/src/features/prompts/components/prompt-history.tsx b/web/src/features/prompts/components/prompt-history.tsx
index 9385c41702..1b2d109b2a 100644
--- a/web/src/features/prompts/components/prompt-history.tsx
+++ b/web/src/features/prompts/components/prompt-history.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { type RouterOutputs } from "@/src/utils/api";
import { useRef, useEffect } from "react";
import { PromptVersionDiffDialogContent } from "./PromptVersionDiffDialog";
diff --git a/web/src/features/prompts/components/prompt-new.tsx b/web/src/features/prompts/components/prompt-new.tsx
index 908762d985..0fbcabe81f 100644
--- a/web/src/features/prompts/components/prompt-new.tsx
+++ b/web/src/features/prompts/components/prompt-new.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { StringParam, useQueryParam } from "use-query-params";
import { NewPromptForm } from "@/src/features/prompts/components/NewPromptForm";
import useProjectIdFromURL from "@/src/hooks/useProjectIdFromURL";
diff --git a/web/src/features/prompts/components/prompts-table.tsx b/web/src/features/prompts/components/prompts-table.tsx
index 063ba4d31d..578d75590b 100644
--- a/web/src/features/prompts/components/prompts-table.tsx
+++ b/web/src/features/prompts/components/prompts-table.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
import { useEffect, useMemo } from "react";
import {
normalizeOrderByForTable,
diff --git a/web/src/features/public-api/components/LLMApiKeyList.tsx b/web/src/features/public-api/components/LLMApiKeyList.tsx
index 360da4f473..50dd9c83c2 100644
--- a/web/src/features/public-api/components/LLMApiKeyList.tsx
+++ b/web/src/features/public-api/components/LLMApiKeyList.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { useMemo } from "react";
import { Building2, Plug } from "lucide-react";
diff --git a/web/src/features/score-analytics/components/charts/HeatmapCell.tsx b/web/src/features/score-analytics/components/charts/HeatmapCell.tsx
index 677f77c71e..ed73c928d8 100644
--- a/web/src/features/score-analytics/components/charts/HeatmapCell.tsx
+++ b/web/src/features/score-analytics/components/charts/HeatmapCell.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
import { type HeatmapCell } from "@/src/features/score-analytics/lib/heatmap-utils";
import { getContrastColor } from "@/src/features/score-analytics/lib/color-scales";
import {
diff --git a/web/src/features/score-configs/components/UpsertScoreConfigDialogController.tsx b/web/src/features/score-configs/components/UpsertScoreConfigDialogController.tsx
index 97031ebd84..81b0cd378e 100644
--- a/web/src/features/score-configs/components/UpsertScoreConfigDialogController.tsx
+++ b/web/src/features/score-configs/components/UpsertScoreConfigDialogController.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { ScoreDataTypeEnum } from "@langfuse/shared";
import { type ReactNode } from "react";
diff --git a/web/src/features/scores/components/AnnotationForm.tsx b/web/src/features/scores/components/AnnotationForm.tsx
index 024f725a7e..ca9ca8260c 100644
--- a/web/src/features/scores/components/AnnotationForm.tsx
+++ b/web/src/features/scores/components/AnnotationForm.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import React, { useEffect, useImperativeHandle, useRef, useState } from "react";
import { ExternalLink, Plus } from "lucide-react";
import { ScoreDataTypeEnum, type ScoreConfigDataType } from "@langfuse/shared";
diff --git a/web/src/features/scores/components/multi-select-key-values.tsx b/web/src/features/scores/components/multi-select-key-values.tsx
index 5628d2dd27..751dc662b2 100644
--- a/web/src/features/scores/components/multi-select-key-values.tsx
+++ b/web/src/features/scores/components/multi-select-key-values.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props, @repo/no-abstracted-overlay-trigger */
+/* eslint-disable @repo/no-style-props, @repo/no-abstracted-overlay-trigger, @repo/component-file-structure */
import * as React from "react";
import { Archive, Component, Search } from "lucide-react";
import { DropdownIndicator } from "@/src/components/design-system/DropdownIndicator/DropdownIndicator";
diff --git a/web/src/features/scores/contexts/ScoreCacheContext.tsx b/web/src/features/scores/contexts/ScoreCacheContext.tsx
index f2e6daea67..752e570f00 100644
--- a/web/src/features/scores/contexts/ScoreCacheContext.tsx
+++ b/web/src/features/scores/contexts/ScoreCacheContext.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { type ScoreDomain } from "@langfuse/shared";
import {
createContext,
diff --git a/web/src/features/search-bar/components/ComposerSurface.tsx b/web/src/features/search-bar/components/ComposerSurface.tsx
index cbe0ea9df5..6a9953a1f3 100644
--- a/web/src/features/search-bar/components/ComposerSurface.tsx
+++ b/web/src/features/search-bar/components/ComposerSurface.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { Slot } from "@radix-ui/react-slot";
import { cva } from "class-variance-authority";
import { type ComponentPropsWithoutRef } from "react";
diff --git a/web/src/features/sessions/SessionPages.tsx b/web/src/features/sessions/SessionPages.tsx
index 32fe8b408d..470bd19836 100644
--- a/web/src/features/sessions/SessionPages.tsx
+++ b/web/src/features/sessions/SessionPages.tsx
@@ -1,5 +1,5 @@
import { headerActionClassName } from "@/src/features/traces/components/headerActionClassName";
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
/* eslint-disable @repo/no-style-props, @repo/no-null-render */
import { cn } from "@/src/utils/tailwind";
import { GroupedScoreBadges } from "@/src/components/grouped-score-badge";
diff --git a/web/src/features/sessions/TraceEventsRow.tsx b/web/src/features/sessions/TraceEventsRow.tsx
index dad0ec0c5d..beeff3d24a 100644
--- a/web/src/features/sessions/TraceEventsRow.tsx
+++ b/web/src/features/sessions/TraceEventsRow.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
import { GroupedScoreBadges } from "@/src/components/grouped-score-badge";
import { JsonSkeleton } from "@/src/components/ui/CodeJsonViewer";
import { Card } from "@/src/components/ui/card";
diff --git a/web/src/features/sessions/TraceRow.tsx b/web/src/features/sessions/TraceRow.tsx
index 714a4a51c5..8e57332f78 100644
--- a/web/src/features/sessions/TraceRow.tsx
+++ b/web/src/features/sessions/TraceRow.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { SessionIO } from "@/src/features/sessions/SessionPages";
import { GroupedScoreBadges } from "@/src/components/grouped-score-badge";
import { JsonSkeleton } from "@/src/components/ui/CodeJsonViewer";
diff --git a/web/src/features/sessions/sessionReviewLeading.tsx b/web/src/features/sessions/sessionReviewLeading.tsx
index e50e1cbdc7..7b34138b17 100644
--- a/web/src/features/sessions/sessionReviewLeading.tsx
+++ b/web/src/features/sessions/sessionReviewLeading.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { createContext, useContext, type ReactNode } from "react";
import { createPortal } from "react-dom";
diff --git a/web/src/features/skills/components/SkillEditorPage.tsx b/web/src/features/skills/components/SkillEditorPage.tsx
index 26c55e0059..f9728ddec4 100644
--- a/web/src/features/skills/components/SkillEditorPage.tsx
+++ b/web/src/features/skills/components/SkillEditorPage.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { type ComponentProps, useMemo, useState } from "react";
import { useRouter } from "next/router";
import { useStore } from "zustand";
diff --git a/web/src/features/skills/components/SkillMetadataSelect.tsx b/web/src/features/skills/components/SkillMetadataSelect.tsx
index 39099037cd..4055423a01 100644
--- a/web/src/features/skills/components/SkillMetadataSelect.tsx
+++ b/web/src/features/skills/components/SkillMetadataSelect.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { useId, useMemo, useState } from "react";
import { CircleCheckIcon, CircleIcon, Plus, TagIcon, X } from "lucide-react";
import { PromptLabelSchema, SKILL_LATEST_LABEL } from "@langfuse/shared";
diff --git a/web/src/features/skills/components/SkillVersionComparison.tsx b/web/src/features/skills/components/SkillVersionComparison.tsx
index 727fae08c8..b9c6a021b3 100644
--- a/web/src/features/skills/components/SkillVersionComparison.tsx
+++ b/web/src/features/skills/components/SkillVersionComparison.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { type ReactNode, useState } from "react";
import { Button } from "@/src/components/design-system/Button/Button";
import { Dialog } from "@/src/components/design-system/Dialog/Dialog";
diff --git a/web/src/features/traces/TracesSetupPage.tsx b/web/src/features/traces/TracesSetupPage.tsx
index 0099d5ca9a..6008fbb2f7 100644
--- a/web/src/features/traces/TracesSetupPage.tsx
+++ b/web/src/features/traces/TracesSetupPage.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import React, { useEffect, useState } from "react";
import { useRouter } from "next/router";
import { api, reportNonTrpcError } from "@/src/utils/api";
diff --git a/web/src/features/traces/components/AdvancedJsonViewer/contexts/SectionContext.tsx b/web/src/features/traces/components/AdvancedJsonViewer/contexts/SectionContext.tsx
index 03bd93f55d..7b60a945cb 100644
--- a/web/src/features/traces/components/AdvancedJsonViewer/contexts/SectionContext.tsx
+++ b/web/src/features/traces/components/AdvancedJsonViewer/contexts/SectionContext.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { createContext, useMemo } from "react";
import type { SectionContext } from "../types";
import type { TreeState } from "../utils/treeStructure";
diff --git a/web/src/features/traces/components/DetailHeaderActionsMenuController.tsx b/web/src/features/traces/components/DetailHeaderActionsMenuController.tsx
index af14c0908a..e5cec9ab93 100644
--- a/web/src/features/traces/components/DetailHeaderActionsMenuController.tsx
+++ b/web/src/features/traces/components/DetailHeaderActionsMenuController.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { useRouter } from "next/router";
import { useSession } from "next-auth/react";
import { CheckIcon, CopyIcon, Webhook } from "lucide-react";
diff --git a/web/src/features/traces/components/ObservationMetadataBadgesSimple/ObservationMetadataBadgesSimple.tsx b/web/src/features/traces/components/ObservationMetadataBadgesSimple/ObservationMetadataBadgesSimple.tsx
index 6b1375208b..4519bf3c9a 100644
--- a/web/src/features/traces/components/ObservationMetadataBadgesSimple/ObservationMetadataBadgesSimple.tsx
+++ b/web/src/features/traces/components/ObservationMetadataBadgesSimple/ObservationMetadataBadgesSimple.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { Badge } from "@/src/components/design-system/Badge/Badge";
import { formatIntervalSeconds } from "@/src/utils/dates";
diff --git a/web/src/features/traces/components/ObservationMetadataBadgesTooltip.tsx b/web/src/features/traces/components/ObservationMetadataBadgesTooltip.tsx
index 89d1e25df3..3d22f3ced1 100644
--- a/web/src/features/traces/components/ObservationMetadataBadgesTooltip.tsx
+++ b/web/src/features/traces/components/ObservationMetadataBadgesTooltip.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
/** Cost and token metrics for the trace, observation and session headers; breakdowns open on hover. */
import { TriangleAlert } from "lucide-react";
diff --git a/web/src/features/traces/components/ThinkingBlock.tsx b/web/src/features/traces/components/ThinkingBlock.tsx
index 34e2ed7bef..2ed3bfc8f9 100644
--- a/web/src/features/traces/components/ThinkingBlock.tsx
+++ b/web/src/features/traces/components/ThinkingBlock.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { useState } from "react";
import { ChevronRight } from "lucide-react";
import { cn } from "@/src/utils/tailwind";
diff --git a/web/src/features/traces/components/TraceMetadataBadges.tsx b/web/src/features/traces/components/TraceMetadataBadges.tsx
index 8768bceec8..0858497e11 100644
--- a/web/src/features/traces/components/TraceMetadataBadges.tsx
+++ b/web/src/features/traces/components/TraceMetadataBadges.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
/**
* TraceMetadataBadges - Extracted badge components for trace metadata
*
diff --git a/web/src/features/traces/components/TraceReviewPanel.tsx b/web/src/features/traces/components/TraceReviewPanel.tsx
index 0cd30aa7da..df7cdd376e 100644
--- a/web/src/features/traces/components/TraceReviewPanel.tsx
+++ b/web/src/features/traces/components/TraceReviewPanel.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { type AnnotationPanelData } from "@/src/features/scores/types";
import { type CommentTarget } from "@/src/features/comments/state/commentOverlayStore";
import { getCommentDrawerInitialStateFromUrl } from "@/src/features/comments/CommentDrawerController";
diff --git a/web/src/features/traces/components/TraceSettingsDropdown.tsx b/web/src/features/traces/components/TraceSettingsDropdown.tsx
index 437eb529d6..80e96c5afe 100644
--- a/web/src/features/traces/components/TraceSettingsDropdown.tsx
+++ b/web/src/features/traces/components/TraceSettingsDropdown.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-abstracted-overlay-trigger */
+/* eslint-disable @repo/no-abstracted-overlay-trigger, @repo/component-file-structure */
/**
* TraceSettingsDropdown - View preferences dropdown component
*
diff --git a/web/src/features/traces/contexts/JsonExpansionContext.tsx b/web/src/features/traces/contexts/JsonExpansionContext.tsx
index d39abcbe4a..3c2d2b85f3 100644
--- a/web/src/features/traces/contexts/JsonExpansionContext.tsx
+++ b/web/src/features/traces/contexts/JsonExpansionContext.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
/**
* JsonExpansionContext - Persists JSON expand/collapse state per view type
*
diff --git a/web/src/features/traces/contexts/SearchContext.tsx b/web/src/features/traces/contexts/SearchContext.tsx
index aea4883d1a..55def95e0a 100644
--- a/web/src/features/traces/contexts/SearchContext.tsx
+++ b/web/src/features/traces/contexts/SearchContext.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
/**
* SearchContext - Isolated search state management
*
diff --git a/web/src/features/traces/contexts/SelectionContext.tsx b/web/src/features/traces/contexts/SelectionContext.tsx
index 6c2cfefa74..ff9e7fb6e3 100644
--- a/web/src/features/traces/contexts/SelectionContext.tsx
+++ b/web/src/features/traces/contexts/SelectionContext.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
/**
* SelectionContext - Manages UI navigation and interaction state.
*
diff --git a/web/src/features/traces/contexts/TraceDataContext.tsx b/web/src/features/traces/contexts/TraceDataContext.tsx
index ee0a495872..ca4a3cf01c 100644
--- a/web/src/features/traces/contexts/TraceDataContext.tsx
+++ b/web/src/features/traces/contexts/TraceDataContext.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
/**
* TraceDataContext - Provides read-only trace data and derived structures.
*
diff --git a/web/src/features/traces/contexts/TraceGraphDataContext.tsx b/web/src/features/traces/contexts/TraceGraphDataContext.tsx
index 9963cb30b3..0ed03b05bc 100644
--- a/web/src/features/traces/contexts/TraceGraphDataContext.tsx
+++ b/web/src/features/traces/contexts/TraceGraphDataContext.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
/**
* TraceGraphDataContext - Provides agent graph data for visualization.
*
diff --git a/web/src/features/traces/contexts/TraceReviewPanelContext.tsx b/web/src/features/traces/contexts/TraceReviewPanelContext.tsx
index d7ae9b3c25..c19fbec691 100644
--- a/web/src/features/traces/contexts/TraceReviewPanelContext.tsx
+++ b/web/src/features/traces/contexts/TraceReviewPanelContext.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { createContext, useContext, useState, type ReactNode } from "react";
import { type CommentTarget } from "@/src/features/comments/state/commentOverlayStore";
import {
diff --git a/web/src/features/traces/contexts/ViewPreferencesContext.tsx b/web/src/features/traces/contexts/ViewPreferencesContext.tsx
index df7c656ed5..7e46bfceb2 100644
--- a/web/src/features/traces/contexts/ViewPreferencesContext.tsx
+++ b/web/src/features/traces/contexts/ViewPreferencesContext.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
/**
* ViewPreferencesContext - Manages user display preferences persisted to localStorage.
*
diff --git a/web/src/features/v4-migration/V4MigrationBadgeContent.tsx b/web/src/features/v4-migration/V4MigrationBadgeContent.tsx
index efe4fab8cd..cc196b2b6f 100644
--- a/web/src/features/v4-migration/V4MigrationBadgeContent.tsx
+++ b/web/src/features/v4-migration/V4MigrationBadgeContent.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { DropdownIndicator } from "@/src/components/design-system/DropdownIndicator/DropdownIndicator";
import { cn } from "@/src/utils/tailwind";
diff --git a/web/src/features/v4-migration/V4MigrationContent.tsx b/web/src/features/v4-migration/V4MigrationContent.tsx
index a61ee9b11a..df9d939d70 100644
--- a/web/src/features/v4-migration/V4MigrationContent.tsx
+++ b/web/src/features/v4-migration/V4MigrationContent.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
/* eslint-disable @repo/no-style-props, @repo/no-null-render */
import { showSuccessToast, showErrorToast } from "@/src/features/notifications";
import { type ReactNode, useEffect, useRef, useState } from "react";
diff --git a/web/src/features/v4-migration/V4MigrationDelayBadge.tsx b/web/src/features/v4-migration/V4MigrationDelayBadge.tsx
index 5cebb4d77c..421239f1c7 100644
--- a/web/src/features/v4-migration/V4MigrationDelayBadge.tsx
+++ b/web/src/features/v4-migration/V4MigrationDelayBadge.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-null-render */
+/* eslint-disable @repo/no-null-render, @repo/component-file-structure */
import { useEffect, useRef, useState } from "react";
import { useRouter } from "next/router";
import {
diff --git a/web/src/features/web-callouts/components/WebCalloutMenuItem.tsx b/web/src/features/web-callouts/components/WebCalloutMenuItem.tsx
index c7126cc7b4..be06c1ca5f 100644
--- a/web/src/features/web-callouts/components/WebCalloutMenuItem.tsx
+++ b/web/src/features/web-callouts/components/WebCalloutMenuItem.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { Webhook } from "lucide-react";
import { Button } from "@/src/components/ui/button";
diff --git a/web/src/features/widgets/chart-library/TimeSeriesLegend.tsx b/web/src/features/widgets/chart-library/TimeSeriesLegend.tsx
index 0b9cbcf6df..ae528d5d6f 100644
--- a/web/src/features/widgets/chart-library/TimeSeriesLegend.tsx
+++ b/web/src/features/widgets/chart-library/TimeSeriesLegend.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
/** The 8-slot chart line palette, cycled by series index. */
export const seriesColor = (index: number): string =>
`hsl(var(--chart-${(index % 8) + 1}))`;
diff --git a/web/src/features/widgets/components/InlineWidget.tsx b/web/src/features/widgets/components/InlineWidget.tsx
index 4f149e3edf..9216d6810e 100644
--- a/web/src/features/widgets/components/InlineWidget.tsx
+++ b/web/src/features/widgets/components/InlineWidget.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable no-nested-ternary */
+/* eslint-disable no-nested-ternary, @repo/component-file-structure */
/* eslint-disable @repo/no-style-props */
import { useMemo, useState, useCallback, type ReactNode } from "react";
import { type DashboardWidgetChartType } from "@langfuse/shared/src/db";
diff --git a/web/src/features/widgets/components/WidgetPropertySelectItem.tsx b/web/src/features/widgets/components/WidgetPropertySelectItem.tsx
index 2c1c63ca24..ea0583f845 100644
--- a/web/src/features/widgets/components/WidgetPropertySelectItem.tsx
+++ b/web/src/features/widgets/components/WidgetPropertySelectItem.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @repo/no-style-props */
+/* eslint-disable @repo/no-style-props, @repo/component-file-structure */
import { HoverCard } from "@/src/components/design-system/HoverCard/HoverCard";
import { SelectItem } from "@/src/components/ui/select";
import * as React from "react";
diff --git a/web/src/features/widgets/components/WidgetTable/ConnectedWidgetTable.tsx b/web/src/features/widgets/components/WidgetTable/ConnectedWidgetTable.tsx
index 04b7fac216..b7dc0bcb0b 100644
--- a/web/src/features/widgets/components/WidgetTable/ConnectedWidgetTable.tsx
+++ b/web/src/features/widgets/components/WidgetTable/ConnectedWidgetTable.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { showErrorToast, showSuccessToast } from "@/src/features/notifications";
import { useCallback, useEffect, useMemo, useState } from "react";
import useProjectIdFromURL from "@/src/hooks/useProjectIdFromURL";
diff --git a/web/src/features/widgets/components/WidgetTable/WidgetTable.tsx b/web/src/features/widgets/components/WidgetTable/WidgetTable.tsx
index c82b5736d4..973c17ec7c 100644
--- a/web/src/features/widgets/components/WidgetTable/WidgetTable.tsx
+++ b/web/src/features/widgets/components/WidgetTable/WidgetTable.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { useCallback, useMemo } from "react";
import { Copy, CopyPlus, FileJson, Trash } from "lucide-react";
import startCase from "lodash/startCase";
diff --git a/web/src/hooks/useMarkdownRenderCharacterLimit.tsx b/web/src/hooks/useMarkdownRenderCharacterLimit.tsx
index a739399996..c48e6b071c 100644
--- a/web/src/hooks/useMarkdownRenderCharacterLimit.tsx
+++ b/web/src/hooks/useMarkdownRenderCharacterLimit.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { createContext, useContext, type ReactNode } from "react";
import { DEFAULT_MARKDOWN_RENDER_CHARACTER_LIMIT } from "@/src/components/ui/markdown-render-limits";
diff --git a/web/src/hooks/useReadyRouteParams.tsx b/web/src/hooks/useReadyRouteParams.tsx
index cc8588161a..de8efea43c 100644
--- a/web/src/hooks/useReadyRouteParams.tsx
+++ b/web/src/hooks/useReadyRouteParams.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import { useRouter } from "next/router";
import { Spinner } from "@/src/components/design-system/Spinner/Spinner";
diff --git a/web/src/utils/nextAdapterPagesWithReadyGuard.tsx b/web/src/utils/nextAdapterPagesWithReadyGuard.tsx
index 22c678fbbf..e27e6ce1fd 100644
--- a/web/src/utils/nextAdapterPagesWithReadyGuard.tsx
+++ b/web/src/utils/nextAdapterPagesWithReadyGuard.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @repo/component-file-structure */
import NextAdapterPages from "next-query-params/pages";
import { useRouter } from "next/router";
import type {