@r_masseater/oxlint-typed-rules 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,11 @@
1
1
  import { a as __toESM, t as __commonJSMin } from "./rolldown-runtime-DQp2zzRu.mjs";
2
- import { t as require_version } from "./version-BGaGRR5G.mjs";
3
2
  import { n as import_eslint_utils, r as init_typescript_eslint_utils } from "./typescript-eslint-utils-BjYjauy-.mjs";
3
+ import { a as isArrayBindingPattern, c as isExpressionStatement, d as isJsxOpeningElement, f as isJsxSelfClosingElement, h as isStringLiteral, i as forEachChild, l as isFunctionLike, m as isParameter, n as _typescript_default_exports, o as isBindingElement, p as isObjectBindingPattern, r as SymbolFlags, s as isCallExpression, u as isIdentifier } from "./_typescript-default-CzTenk4q.mjs";
4
4
  import { r as typedRules } from "./typed-rule-FCRt1nKZ.mjs";
5
5
  import path from "node:path";
6
6
  // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_ae9aaf3310b3955a25fa9b24bb5cb06b/node_modules/@tanstack/eslint-plugin-start/dist/esm/utils/get-docs-url.js
7
7
  var getDocsUrl = (ruleName) => `https://tanstack.com/start/latest/docs/eslint/${ruleName}`;
8
8
  // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_ae9aaf3310b3955a25fa9b24bb5cb06b/node_modules/@tanstack/eslint-plugin-start/dist/esm/shared/use-client-resolver.js
9
- var import_version = /* @__PURE__ */ __toESM(require_version(), 1);
10
9
  /**
11
10
  * Creates a resolver that checks for 'use client' directive in source files
12
11
  */
@@ -16,7 +15,7 @@ function createUseClientResolver(program) {
16
15
  if (!sourceFile) return false;
17
16
  const firstStmt = sourceFile.statements[0];
18
17
  if (!firstStmt) return false;
19
- if (import_version.isExpressionStatement(firstStmt) && import_version.isStringLiteral(firstStmt.expression)) return firstStmt.expression.text === "use client";
18
+ if (isExpressionStatement(firstStmt) && isStringLiteral(firstStmt.expression)) return firstStmt.expression.text === "use client";
20
19
  return false;
21
20
  }
22
21
  return { hasUseClientDirective };
@@ -3824,11 +3823,11 @@ var rule$1 = import_eslint_utils.RuleCreator(getDocsUrl)({
3824
3823
  const checker = program.getTypeChecker();
3825
3824
  const allowedHooks = /* @__PURE__ */ new Set([...DEFAULT_ALLOWED_HOOKS, ...options.allowedServerHooks]);
3826
3825
  const useClientResolver = createUseClientResolver(program);
3827
- const violationDetector = createViolationDetector(import_version, {
3826
+ const violationDetector = createViolationDetector(_typescript_default_exports, {
3828
3827
  allowedHooks,
3829
3828
  checker
3830
3829
  });
3831
- const transitiveAnalyzer = createTransitiveAnalyzer(import_version, program, checker, useClientResolver, violationDetector);
3830
+ const transitiveAnalyzer = createTransitiveAnalyzer(_typescript_default_exports, program, checker, useClientResolver, violationDetector);
3832
3831
  return { CallExpression(node) {
3833
3832
  const sourceFile = services.esTreeNodeToTSNodeMap.get(node).getSourceFile();
3834
3833
  if (useClientResolver.hasUseClientDirective(sourceFile.fileName)) return;
@@ -3838,8 +3837,8 @@ var rule$1 = import_eslint_utils.RuleCreator(getDocsUrl)({
3838
3837
  const callback = node.arguments[0];
3839
3838
  if (!callback) return;
3840
3839
  const tsNode = services.esTreeNodeToTSNodeMap.get(callback);
3841
- if (import_version.isFunctionLike(tsNode)) analyzeServerComponentCallback(tsNode, node, rootKind);
3842
- else if (import_version.isIdentifier(tsNode)) analyzeDirectComponentReference(tsNode, node, rootKind);
3840
+ if (isFunctionLike(tsNode)) analyzeServerComponentCallback(tsNode, node, rootKind);
3841
+ else if (isIdentifier(tsNode)) analyzeDirectComponentReference(tsNode, node, rootKind);
3843
3842
  return;
3844
3843
  }
3845
3844
  const element = node.arguments[0];
@@ -3877,7 +3876,7 @@ var rule$1 = import_eslint_utils.RuleCreator(getDocsUrl)({
3877
3876
  for (const ref of componentRefs) {
3878
3877
  const symbol = checker.getSymbolAtLocation(ref);
3879
3878
  if (!symbol) continue;
3880
- const resolvedSymbol = import_version.SymbolFlags.Alias & symbol.flags ? checker.getAliasedSymbol(symbol) : symbol;
3879
+ const resolvedSymbol = SymbolFlags.Alias & symbol.flags ? checker.getAliasedSymbol(symbol) : symbol;
3881
3880
  const result = transitiveAnalyzer.analyzeEntrySymbol(resolvedSymbol);
3882
3881
  if (result.isClientBoundary) continue;
3883
3882
  for (const violation of result.violations) {
@@ -3916,7 +3915,7 @@ var rule$1 = import_eslint_utils.RuleCreator(getDocsUrl)({
3916
3915
  const symbol = checker.getSymbolAtLocation(ref);
3917
3916
  if (!symbol) continue;
3918
3917
  if (symbol.getDeclarations()?.some((d) => isWithinParameters(d, callback))) continue;
3919
- const resolvedSymbol = import_version.SymbolFlags.Alias & symbol.flags ? checker.getAliasedSymbol(symbol) : symbol;
3918
+ const resolvedSymbol = SymbolFlags.Alias & symbol.flags ? checker.getAliasedSymbol(symbol) : symbol;
3920
3919
  const result = transitiveAnalyzer.analyzeEntrySymbol(resolvedSymbol);
3921
3920
  if (result.isClientBoundary) continue;
3922
3921
  for (const violation of result.violations) {
@@ -3934,7 +3933,7 @@ var rule$1 = import_eslint_utils.RuleCreator(getDocsUrl)({
3934
3933
  function analyzeDirectComponentReference(ref, eslintNode, rootKind = "createCompositeComponent") {
3935
3934
  const symbol = checker.getSymbolAtLocation(ref);
3936
3935
  if (!symbol) return;
3937
- const resolvedSymbol = import_version.SymbolFlags.Alias & symbol.flags ? checker.getAliasedSymbol(symbol) : symbol;
3936
+ const resolvedSymbol = SymbolFlags.Alias & symbol.flags ? checker.getAliasedSymbol(symbol) : symbol;
3938
3937
  const result = transitiveAnalyzer.analyzeEntrySymbol(resolvedSymbol);
3939
3938
  if (result.isClientBoundary) return;
3940
3939
  const reportedViolations = /* @__PURE__ */ new Set();
@@ -3951,10 +3950,10 @@ var rule$1 = import_eslint_utils.RuleCreator(getDocsUrl)({
3951
3950
  */
3952
3951
  function collectParameterBindings(bindingName, names) {
3953
3952
  function collectFromBinding(node) {
3954
- if (import_version.isIdentifier(node)) names.add(node.text);
3955
- else if (import_version.isObjectBindingPattern(node)) for (const element of node.elements) collectFromBinding(element.name);
3956
- else if (import_version.isArrayBindingPattern(node)) {
3957
- for (const element of node.elements) if (import_version.isBindingElement(element)) collectFromBinding(element.name);
3953
+ if (isIdentifier(node)) names.add(node.text);
3954
+ else if (isObjectBindingPattern(node)) for (const element of node.elements) collectFromBinding(element.name);
3955
+ else if (isArrayBindingPattern(node)) {
3956
+ for (const element of node.elements) if (isBindingElement(element)) collectFromBinding(element.name);
3958
3957
  }
3959
3958
  }
3960
3959
  collectFromBinding(bindingName);
@@ -3965,9 +3964,9 @@ var rule$1 = import_eslint_utils.RuleCreator(getDocsUrl)({
3965
3964
  function isWithinParameters(decl, callback) {
3966
3965
  let current = decl;
3967
3966
  while (current) {
3968
- if (import_version.isParameter(current)) {
3967
+ if (isParameter(current)) {
3969
3968
  const paramParent = current.parent;
3970
- if (import_version.isFunctionLike(paramParent) && paramParent === callback) return true;
3969
+ if (isFunctionLike(paramParent) && paramParent === callback) return true;
3971
3970
  }
3972
3971
  current = current.parent;
3973
3972
  }
@@ -3976,15 +3975,15 @@ var rule$1 = import_eslint_utils.RuleCreator(getDocsUrl)({
3976
3975
  function findComponentReferences(node) {
3977
3976
  const refs = [];
3978
3977
  function visit(n) {
3979
- if (import_version.isJsxOpeningElement(n) || import_version.isJsxSelfClosingElement(n)) {
3978
+ if (isJsxOpeningElement(n) || isJsxSelfClosingElement(n)) {
3980
3979
  const tagName = n.tagName;
3981
- if (import_version.isIdentifier(tagName) && /^[A-Z]/.test(tagName.text)) refs.push(tagName);
3980
+ if (isIdentifier(tagName) && /^[A-Z]/.test(tagName.text)) refs.push(tagName);
3982
3981
  }
3983
- if (import_version.isCallExpression(n)) {
3982
+ if (isCallExpression(n)) {
3984
3983
  const callee = n.expression;
3985
- if (import_version.isIdentifier(callee) && /^[A-Z]/.test(callee.text)) refs.push(callee);
3984
+ if (isIdentifier(callee) && /^[A-Z]/.test(callee.text)) refs.push(callee);
3986
3985
  }
3987
- import_version.forEachChild(n, visit);
3986
+ forEachChild(n, visit);
3988
3987
  }
3989
3988
  visit(node);
3990
3989
  return refs;
@@ -4453,7 +4452,7 @@ var rule = import_eslint_utils.RuleCreator(getDocsUrl)({
4453
4452
  let cached = perProgramCache.get(program);
4454
4453
  if (!cached) {
4455
4454
  cached = {
4456
- builder: createRenderGraphBuilder(import_version, program, checker),
4455
+ builder: createRenderGraphBuilder(_typescript_default_exports, program, checker),
4457
4456
  graphBuilt: false
4458
4457
  };
4459
4458
  perProgramCache.set(program, cached);
@@ -1 +1 @@
1
- {"version":3,"file":"tanstack-start.mjs","names":["ts","globals","name","rule","ESLintUtils","ts","ESLintUtils","ts","name","rule","name$1","rule$1","plugin","tanstackStart"],"sources":["../../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_ae9aaf3310b3955a25fa9b24bb5cb06b/node_modules/@tanstack/eslint-plugin-start/dist/esm/utils/get-docs-url.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_ae9aaf3310b3955a25fa9b24bb5cb06b/node_modules/@tanstack/eslint-plugin-start/dist/esm/shared/use-client-resolver.js","../../../node_modules/.pnpm/globals@16.4.0/node_modules/globals/globals.json","../../../node_modules/.pnpm/globals@16.4.0/node_modules/globals/index.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_ae9aaf3310b3955a25fa9b24bb5cb06b/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-client-code-in-server-component/constants.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_ae9aaf3310b3955a25fa9b24bb5cb06b/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-client-code-in-server-component/violation-detector.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_ae9aaf3310b3955a25fa9b24bb5cb06b/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-client-code-in-server-component/transitive-analyzer.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_ae9aaf3310b3955a25fa9b24bb5cb06b/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-client-code-in-server-component/no-client-code-in-server-component.rule.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_ae9aaf3310b3955a25fa9b24bb5cb06b/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-async-client-component/constants.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_ae9aaf3310b3955a25fa9b24bb5cb06b/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-async-client-component/render-graph-builder.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_ae9aaf3310b3955a25fa9b24bb5cb06b/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-async-client-component/context-analyzer.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_ae9aaf3310b3955a25fa9b24bb5cb06b/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-async-client-component/no-async-client-component.rule.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_ae9aaf3310b3955a25fa9b24bb5cb06b/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_ae9aaf3310b3955a25fa9b24bb5cb06b/node_modules/@tanstack/eslint-plugin-start/dist/esm/index.js","../src/app/tanstack-start.ts"],"sourcesContent":["//#region src/utils/get-docs-url.ts\nvar getDocsUrl = (ruleName) => `https://tanstack.com/start/latest/docs/eslint/${ruleName}`;\n//#endregion\nexport { getDocsUrl };\n\n//# sourceMappingURL=get-docs-url.js.map","import * as ts from \"typescript\";\n//#region src/shared/use-client-resolver.ts\n/**\n* Creates a resolver that checks for 'use client' directive in source files\n*/\nfunction createUseClientResolver(program) {\n\tfunction hasUseClientDirective(fileName) {\n\t\tconst sourceFile = program.getSourceFile(fileName);\n\t\tif (!sourceFile) return false;\n\t\tconst firstStmt = sourceFile.statements[0];\n\t\tif (!firstStmt) return false;\n\t\tif (ts.isExpressionStatement(firstStmt) && ts.isStringLiteral(firstStmt.expression)) return firstStmt.expression.text === \"use client\";\n\t\treturn false;\n\t}\n\treturn { hasUseClientDirective };\n}\n//#endregion\nexport { createUseClientResolver };\n\n//# sourceMappingURL=use-client-resolver.js.map","","'use strict';\nmodule.exports = require('./globals.json');\n","import globals from \"globals\";\n//#region src/rules/no-client-code-in-server-component/constants.ts\n/**\n* Hooks allowed in server components\n*/\nvar DEFAULT_ALLOWED_HOOKS = new Set([\"useId\"]);\n/**\n* Browser-only globals not available in server context\n* Dynamically computed from globals package: browser globals that are NOT in node\n*/\nvar BROWSER_ONLY_GLOBALS = (() => {\n\tconst browserGlobals = Object.keys(globals.browser);\n\tconst nodeGlobals = new Set(Object.keys(globals.node));\n\tconst browserOnly = /* @__PURE__ */ new Set();\n\tfor (const name of browserGlobals) if (!nodeGlobals.has(name)) browserOnly.add(name);\n\treturn browserOnly;\n})();\n/**\n* React event handler props - comprehensive list from React types\n*/\nvar REACT_EVENT_HANDLERS = new Set([\n\t\"onCopy\",\n\t\"onCopyCapture\",\n\t\"onCut\",\n\t\"onCutCapture\",\n\t\"onPaste\",\n\t\"onPasteCapture\",\n\t\"onCompositionEnd\",\n\t\"onCompositionEndCapture\",\n\t\"onCompositionStart\",\n\t\"onCompositionStartCapture\",\n\t\"onCompositionUpdate\",\n\t\"onCompositionUpdateCapture\",\n\t\"onFocus\",\n\t\"onFocusCapture\",\n\t\"onBlur\",\n\t\"onBlurCapture\",\n\t\"onChange\",\n\t\"onChangeCapture\",\n\t\"onBeforeInput\",\n\t\"onBeforeInputCapture\",\n\t\"onInput\",\n\t\"onInputCapture\",\n\t\"onReset\",\n\t\"onResetCapture\",\n\t\"onSubmit\",\n\t\"onSubmitCapture\",\n\t\"onInvalid\",\n\t\"onInvalidCapture\",\n\t\"onLoad\",\n\t\"onLoadCapture\",\n\t\"onError\",\n\t\"onErrorCapture\",\n\t\"onKeyDown\",\n\t\"onKeyDownCapture\",\n\t\"onKeyPress\",\n\t\"onKeyPressCapture\",\n\t\"onKeyUp\",\n\t\"onKeyUpCapture\",\n\t\"onAbort\",\n\t\"onAbortCapture\",\n\t\"onCanPlay\",\n\t\"onCanPlayCapture\",\n\t\"onCanPlayThrough\",\n\t\"onCanPlayThroughCapture\",\n\t\"onDurationChange\",\n\t\"onDurationChangeCapture\",\n\t\"onEmptied\",\n\t\"onEmptiedCapture\",\n\t\"onEncrypted\",\n\t\"onEncryptedCapture\",\n\t\"onEnded\",\n\t\"onEndedCapture\",\n\t\"onLoadedData\",\n\t\"onLoadedDataCapture\",\n\t\"onLoadedMetadata\",\n\t\"onLoadedMetadataCapture\",\n\t\"onLoadStart\",\n\t\"onLoadStartCapture\",\n\t\"onPause\",\n\t\"onPauseCapture\",\n\t\"onPlay\",\n\t\"onPlayCapture\",\n\t\"onPlaying\",\n\t\"onPlayingCapture\",\n\t\"onProgress\",\n\t\"onProgressCapture\",\n\t\"onRateChange\",\n\t\"onRateChangeCapture\",\n\t\"onResize\",\n\t\"onResizeCapture\",\n\t\"onSeeked\",\n\t\"onSeekedCapture\",\n\t\"onSeeking\",\n\t\"onSeekingCapture\",\n\t\"onStalled\",\n\t\"onStalledCapture\",\n\t\"onSuspend\",\n\t\"onSuspendCapture\",\n\t\"onTimeUpdate\",\n\t\"onTimeUpdateCapture\",\n\t\"onVolumeChange\",\n\t\"onVolumeChangeCapture\",\n\t\"onWaiting\",\n\t\"onWaitingCapture\",\n\t\"onAuxClick\",\n\t\"onAuxClickCapture\",\n\t\"onClick\",\n\t\"onClickCapture\",\n\t\"onContextMenu\",\n\t\"onContextMenuCapture\",\n\t\"onDoubleClick\",\n\t\"onDoubleClickCapture\",\n\t\"onDrag\",\n\t\"onDragCapture\",\n\t\"onDragEnd\",\n\t\"onDragEndCapture\",\n\t\"onDragEnter\",\n\t\"onDragEnterCapture\",\n\t\"onDragExit\",\n\t\"onDragExitCapture\",\n\t\"onDragLeave\",\n\t\"onDragLeaveCapture\",\n\t\"onDragOver\",\n\t\"onDragOverCapture\",\n\t\"onDragStart\",\n\t\"onDragStartCapture\",\n\t\"onDrop\",\n\t\"onDropCapture\",\n\t\"onMouseDown\",\n\t\"onMouseDownCapture\",\n\t\"onMouseEnter\",\n\t\"onMouseLeave\",\n\t\"onMouseMove\",\n\t\"onMouseMoveCapture\",\n\t\"onMouseOut\",\n\t\"onMouseOutCapture\",\n\t\"onMouseOver\",\n\t\"onMouseOverCapture\",\n\t\"onMouseUp\",\n\t\"onMouseUpCapture\",\n\t\"onSelect\",\n\t\"onSelectCapture\",\n\t\"onTouchCancel\",\n\t\"onTouchCancelCapture\",\n\t\"onTouchEnd\",\n\t\"onTouchEndCapture\",\n\t\"onTouchMove\",\n\t\"onTouchMoveCapture\",\n\t\"onTouchStart\",\n\t\"onTouchStartCapture\",\n\t\"onPointerDown\",\n\t\"onPointerDownCapture\",\n\t\"onPointerMove\",\n\t\"onPointerMoveCapture\",\n\t\"onPointerUp\",\n\t\"onPointerUpCapture\",\n\t\"onPointerCancel\",\n\t\"onPointerCancelCapture\",\n\t\"onPointerEnter\",\n\t\"onPointerEnterCapture\",\n\t\"onPointerLeave\",\n\t\"onPointerLeaveCapture\",\n\t\"onPointerOver\",\n\t\"onPointerOverCapture\",\n\t\"onPointerOut\",\n\t\"onPointerOutCapture\",\n\t\"onGotPointerCapture\",\n\t\"onGotPointerCaptureCapture\",\n\t\"onLostPointerCapture\",\n\t\"onLostPointerCaptureCapture\",\n\t\"onScroll\",\n\t\"onScrollCapture\",\n\t\"onWheel\",\n\t\"onWheelCapture\",\n\t\"onAnimationStart\",\n\t\"onAnimationStartCapture\",\n\t\"onAnimationEnd\",\n\t\"onAnimationEndCapture\",\n\t\"onAnimationIteration\",\n\t\"onAnimationIterationCapture\",\n\t\"onTransitionEnd\",\n\t\"onTransitionEndCapture\"\n]);\n/**\n* Check if a prop name is a React event handler\n*/\nfunction isReactEventHandler(name) {\n\treturn REACT_EVENT_HANDLERS.has(name);\n}\n/**\n* Check if a hook name is client-only (not allowed in server components)\n*/\nfunction isClientOnlyHook(name, allowedHooks = DEFAULT_ALLOWED_HOOKS) {\n\tif (!/^use[A-Z]/.test(name)) return false;\n\tif (allowedHooks.has(name)) return false;\n\treturn true;\n}\n//#endregion\nexport { BROWSER_ONLY_GLOBALS, DEFAULT_ALLOWED_HOOKS, isClientOnlyHook, isReactEventHandler };\n\n//# sourceMappingURL=constants.js.map","import { BROWSER_ONLY_GLOBALS, DEFAULT_ALLOWED_HOOKS, isClientOnlyHook, isReactEventHandler } from \"./constants.js\";\n//#region src/rules/no-client-code-in-server-component/violation-detector.ts\n/**\n* Get line and column position for a node\n*/\nfunction getPosition(node, sourceFile) {\n\tconst { line, character } = sourceFile.getLineAndCharacterOfPosition(node.getStart());\n\treturn {\n\t\tline: line + 1,\n\t\tcolumn: character + 1\n\t};\n}\n/**\n* Creates a detector that finds client-only code violations in TypeScript AST\n*/\nfunction createViolationDetector(tsLib, options = {}) {\n\tconst allowedHooks = options.allowedHooks ?? DEFAULT_ALLOWED_HOOKS;\n\tconst checker = options.checker;\n\t/**\n\t* Check if a class declaration extends React.Component or React.PureComponent\n\t*/\n\tfunction isReactClassComponent(node) {\n\t\tif (!node.heritageClauses) return false;\n\t\tfor (const clause of node.heritageClauses) {\n\t\t\tif (clause.token !== tsLib.SyntaxKind.ExtendsKeyword) continue;\n\t\t\tfor (const type of clause.types) {\n\t\t\t\tconst expr = type.expression;\n\t\t\t\tif (tsLib.isPropertyAccessExpression(expr)) {\n\t\t\t\t\tconst propName = expr.name.text;\n\t\t\t\t\tif (propName === \"Component\" || propName === \"PureComponent\") {\n\t\t\t\t\t\tif (tsLib.isIdentifier(expr.expression)) {\n\t\t\t\t\t\t\tif (expr.expression.text === \"React\") return true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (tsLib.isIdentifier(expr)) {\n\t\t\t\t\tconst name = expr.text;\n\t\t\t\t\tif (name === \"Component\" || name === \"PureComponent\") return true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}\n\t/**\n\t* Shared visitor logic that collects violations into the provided array\n\t*/\n\tfunction visitNode(node, sourceFile, violations) {\n\t\tif (tsLib.isClassDeclaration(node) && isReactClassComponent(node)) {\n\t\t\tconst name = node.name?.text ?? \"ClassComponent\";\n\t\t\tviolations.push({\n\t\t\t\ttype: \"class-component\",\n\t\t\t\tname,\n\t\t\t\tnode,\n\t\t\t\tfileName: sourceFile.fileName,\n\t\t\t\t...getPosition(node, sourceFile)\n\t\t\t});\n\t\t}\n\t\tif (tsLib.isCallExpression(node)) {\n\t\t\tconst callee = node.expression;\n\t\t\tlet name = \"\";\n\t\t\tif (tsLib.isIdentifier(callee)) name = callee.text;\n\t\t\telse if (tsLib.isPropertyAccessExpression(callee)) name = callee.name.text;\n\t\t\tif (name && isClientOnlyHook(name, allowedHooks)) violations.push({\n\t\t\t\ttype: \"hook\",\n\t\t\t\tname,\n\t\t\t\tnode,\n\t\t\t\tfileName: sourceFile.fileName,\n\t\t\t\t...getPosition(node, sourceFile)\n\t\t\t});\n\t\t}\n\t\tif (tsLib.isIdentifier(node)) {\n\t\t\tconst name = node.text;\n\t\t\tif (BROWSER_ONLY_GLOBALS.has(name)) {\n\t\t\t\tconst parent = node.parent;\n\t\t\t\tif (tsLib.isPropertyAccessExpression(parent) && parent.name === node) {} else if (tsLib.isPropertyAssignment(parent) && parent.name === node) {} else if (tsLib.isTypeReferenceNode(parent) || tsLib.isInterfaceDeclaration(parent) || tsLib.isTypeAliasDeclaration(parent)) {} else if (tsLib.isParameter(parent) && parent.name === node || tsLib.isVariableDeclaration(parent) && parent.name === node) {} else if (tsLib.isImportSpecifier(parent) || tsLib.isImportClause(parent)) {} else if (checker) {\n\t\t\t\t\tconst symbol = checker.getSymbolAtLocation(node);\n\t\t\t\t\tif (symbol) {\n\t\t\t\t\t\tconst declarations = symbol.getDeclarations();\n\t\t\t\t\t\tif (declarations?.length) if (declarations.some((decl) => {\n\t\t\t\t\t\t\tconst fileName = decl.getSourceFile().fileName;\n\t\t\t\t\t\t\treturn !fileName.includes(\"/node_modules/\") && !fileName.includes(\"/typescript/lib/\");\n\t\t\t\t\t\t})) {} else violations.push({\n\t\t\t\t\t\t\ttype: \"browser-global\",\n\t\t\t\t\t\t\tname,\n\t\t\t\t\t\t\tnode,\n\t\t\t\t\t\t\tfileName: sourceFile.fileName,\n\t\t\t\t\t\t\t...getPosition(node, sourceFile)\n\t\t\t\t\t\t});\n\t\t\t\t\t\telse violations.push({\n\t\t\t\t\t\t\ttype: \"browser-global\",\n\t\t\t\t\t\t\tname,\n\t\t\t\t\t\t\tnode,\n\t\t\t\t\t\t\tfileName: sourceFile.fileName,\n\t\t\t\t\t\t\t...getPosition(node, sourceFile)\n\t\t\t\t\t\t});\n\t\t\t\t\t} else violations.push({\n\t\t\t\t\t\ttype: \"browser-global\",\n\t\t\t\t\t\tname,\n\t\t\t\t\t\tnode,\n\t\t\t\t\t\tfileName: sourceFile.fileName,\n\t\t\t\t\t\t...getPosition(node, sourceFile)\n\t\t\t\t\t});\n\t\t\t\t} else violations.push({\n\t\t\t\t\ttype: \"browser-global\",\n\t\t\t\t\tname,\n\t\t\t\t\tnode,\n\t\t\t\t\tfileName: sourceFile.fileName,\n\t\t\t\t\t...getPosition(node, sourceFile)\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t\tif (tsLib.isJsxAttribute(node)) {\n\t\t\tconst attrName = node.name;\n\t\t\tif (tsLib.isIdentifier(attrName)) {\n\t\t\t\tconst name = attrName.text;\n\t\t\t\tconst value = node.initializer;\n\t\t\t\tif (isReactEventHandler(name)) violations.push({\n\t\t\t\t\ttype: \"event-handler\",\n\t\t\t\t\tname,\n\t\t\t\t\tnode,\n\t\t\t\t\tfileName: sourceFile.fileName,\n\t\t\t\t\t...getPosition(node, sourceFile)\n\t\t\t\t});\n\t\t\t\telse if (name !== \"style\" && name !== \"className\" && name !== \"key\" && name !== \"ref\" && name !== \"dangerouslySetInnerHTML\" && value && tsLib.isJsxExpression(value) && value.expression) {\n\t\t\t\t\tconst expr = value.expression;\n\t\t\t\t\tif (tsLib.isArrowFunction(expr) || tsLib.isFunctionExpression(expr)) violations.push({\n\t\t\t\t\t\ttype: \"function-prop\",\n\t\t\t\t\t\tname,\n\t\t\t\t\t\tnode,\n\t\t\t\t\t\tfileName: sourceFile.fileName,\n\t\t\t\t\t\t...getPosition(node, sourceFile)\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ttsLib.forEachChild(node, (child) => visitNode(child, sourceFile, violations));\n\t}\n\tfunction detectViolations(sourceFile) {\n\t\tconst violations = [];\n\t\ttsLib.forEachChild(sourceFile, (child) => visitNode(child, sourceFile, violations));\n\t\treturn violations;\n\t}\n\tfunction detectViolationsInNode(node, sourceFile) {\n\t\tconst violations = [];\n\t\tvisitNode(node, sourceFile, violations);\n\t\treturn violations;\n\t}\n\treturn {\n\t\tdetectViolations,\n\t\tdetectViolationsInNode\n\t};\n}\n//#endregion\nexport { createViolationDetector };\n\n//# sourceMappingURL=violation-detector.js.map","//#region src/rules/no-client-code-in-server-component/transitive-analyzer.ts\n/**\n* Creates an analyzer that follows reachable symbol references\n* to find transitive violations, stopping at 'use client' boundaries.\n*/\nfunction createTransitiveAnalyzer(tsLib, program, checker, useClientResolver, violationDetector) {\n\tconst visitedSymbols = /* @__PURE__ */ new Set();\n\tconst analysisCache = /* @__PURE__ */ new Map();\n\tfunction symbolKey(symbol) {\n\t\treturn `${(symbol.getDeclarations()?.[0])?.getSourceFile().fileName ?? \"unknown\"}::${symbol.getName()}`;\n\t}\n\tfunction analyzeEntrySymbol(entrySymbol) {\n\t\tvisitedSymbols.clear();\n\t\tconst cached = analysisCache.get(symbolKey(entrySymbol));\n\t\tif (cached) return cached;\n\t\tconst violations = [];\n\t\tfunction visitSymbol(symbol, chain) {\n\t\t\tconst key = symbolKey(symbol);\n\t\t\tif (visitedSymbols.has(key)) return false;\n\t\t\tvisitedSymbols.add(key);\n\t\t\tconst decl = symbol.getDeclarations()?.[0];\n\t\t\tif (!decl) return false;\n\t\t\tconst sourceFile = decl.getSourceFile();\n\t\t\tconst fileName = sourceFile.fileName;\n\t\t\tif (fileName.includes(\"/node_modules/\") || fileName.endsWith(\".d.ts\")) return false;\n\t\t\tif (useClientResolver.hasUseClientDirective(fileName)) return true;\n\t\t\tconst traversalRoots = getTraversalRoots(decl);\n\t\t\tfor (const root of traversalRoots) {\n\t\t\t\tconst rootViolations = violationDetector.detectViolationsInNode(root, sourceFile);\n\t\t\t\tfor (const v of rootViolations) violations.push({\n\t\t\t\t\t...v,\n\t\t\t\t\tchain: [...chain]\n\t\t\t\t});\n\t\t\t}\n\t\t\tfor (const root of traversalRoots) {\n\t\t\t\tconst identifiers = collectReachableIdentifiers(root, decl);\n\t\t\t\tfor (const ident of identifiers) {\n\t\t\t\t\tconst refSym = checker.getSymbolAtLocation(ident);\n\t\t\t\t\tif (!refSym) continue;\n\t\t\t\t\tconst aliased = tsLib.SymbolFlags.Alias & refSym.flags ? checker.getAliasedSymbol(refSym) : refSym;\n\t\t\t\t\tconst refFile = (aliased.getDeclarations()?.[0])?.getSourceFile().fileName;\n\t\t\t\t\tif (!refFile) continue;\n\t\t\t\t\tif (refFile.includes(\"/node_modules/\") || refFile.endsWith(\".d.ts\")) continue;\n\t\t\t\t\tconst edge = {\n\t\t\t\t\t\tfromFile: fileName,\n\t\t\t\t\t\ttoFile: refFile,\n\t\t\t\t\t\tviaSymbol: aliased.getName()\n\t\t\t\t\t};\n\t\t\t\t\tvisitSymbol(aliased, [...chain, edge]);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\t/**\n\t\t* Get traversal roots based on declaration kind\n\t\t*/\n\t\tfunction getTraversalRoots(decl) {\n\t\t\tif (tsLib.isFunctionDeclaration(decl) && decl.body) return [decl.body];\n\t\t\tif (tsLib.isFunctionExpression(decl)) return [decl.body];\n\t\t\tif (tsLib.isArrowFunction(decl)) return [decl.body];\n\t\t\tif (tsLib.isVariableDeclaration(decl) && decl.initializer) {\n\t\t\t\tif (tsLib.isFunctionExpression(decl.initializer) || tsLib.isArrowFunction(decl.initializer)) return [decl.initializer.body];\n\t\t\t\treturn [decl.initializer];\n\t\t\t}\n\t\t\tif (tsLib.isClassDeclaration(decl) || tsLib.isClassExpression(decl)) {\n\t\t\t\tconst roots = [];\n\t\t\t\tfor (const member of decl.members) {\n\t\t\t\t\tif (tsLib.isMethodDeclaration(member) && member.body) roots.push(member.body);\n\t\t\t\t\tif (tsLib.isPropertyDeclaration(member) && member.initializer) roots.push(member.initializer);\n\t\t\t\t}\n\t\t\t\treturn roots;\n\t\t\t}\n\t\t\treturn [decl];\n\t\t}\n\t\t/**\n\t\t* Collect identifier nodes from a traversal root, skipping:\n\t\t* - The defining identifier for the symbol (avoid self-loop)\n\t\t* - Type-only positions\n\t\t* - Property names when not computed\n\t\t*/\n\t\tfunction collectReachableIdentifiers(root, originalDecl) {\n\t\t\tconst identifiers = [];\n\t\t\tlet declName;\n\t\t\tif (\"name\" in originalDecl && originalDecl.name) {\n\t\t\t\tconst nameNode = originalDecl.name;\n\t\t\t\tif (tsLib.isIdentifier(nameNode)) declName = nameNode.text;\n\t\t\t}\n\t\t\tfunction visit(node) {\n\t\t\t\tif (tsLib.isTypeReferenceNode(node) || tsLib.isInterfaceDeclaration(node) || tsLib.isTypeAliasDeclaration(node) || tsLib.isTypeQueryNode(node) || tsLib.isTypeParameterDeclaration(node)) return;\n\t\t\t\tif (tsLib.isIdentifier(node)) {\n\t\t\t\t\tif (node.text === declName) return;\n\t\t\t\t\tconst parent = node.parent;\n\t\t\t\t\tif (tsLib.isPropertyAccessExpression(parent) && parent.name === node) return;\n\t\t\t\t\tif (tsLib.isPropertyAssignment(parent) && parent.name === node) return;\n\t\t\t\t\tif (tsLib.isParameter(parent) && parent.name === node || tsLib.isVariableDeclaration(parent) && parent.name === node) return;\n\t\t\t\t\tidentifiers.push(node);\n\t\t\t\t}\n\t\t\t\ttsLib.forEachChild(node, visit);\n\t\t\t}\n\t\t\tvisit(root);\n\t\t\treturn identifiers;\n\t\t}\n\t\tconst result = {\n\t\t\tisClientBoundary: visitSymbol(entrySymbol, []),\n\t\t\tviolations\n\t\t};\n\t\tanalysisCache.set(symbolKey(entrySymbol), result);\n\t\treturn result;\n\t}\n\treturn { analyzeEntrySymbol };\n}\n//#endregion\nexport { createTransitiveAnalyzer };\n\n//# sourceMappingURL=transitive-analyzer.js.map","import { getDocsUrl } from \"../../utils/get-docs-url.js\";\nimport { createUseClientResolver } from \"../../shared/use-client-resolver.js\";\nimport { DEFAULT_ALLOWED_HOOKS } from \"./constants.js\";\nimport { createViolationDetector } from \"./violation-detector.js\";\nimport { createTransitiveAnalyzer } from \"./transitive-analyzer.js\";\nimport path from \"node:path\";\nimport { ESLintUtils } from \"@typescript-eslint/utils\";\nimport * as ts from \"typescript\";\n//#region src/rules/no-client-code-in-server-component/no-client-code-in-server-component.rule.ts\nvar name = \"no-client-code-in-server-component\";\nvar TRIGGER_HINT = \"Triggered by rendering \\\"{{entry}}\\\".\";\nvar rule = ESLintUtils.RuleCreator(getDocsUrl)({\n\tname,\n\tmeta: {\n\t\ttype: \"problem\",\n\t\tdocs: {\n\t\t\tdescription: \"Disallow client-only code inside server components\",\n\t\t\trecommended: \"error\"\n\t\t},\n\t\tschema: [{\n\t\t\ttype: \"object\",\n\t\t\tproperties: { allowedServerHooks: {\n\t\t\t\ttype: \"array\",\n\t\t\t\titems: { type: \"string\" },\n\t\t\t\tdescription: \"Additional hooks that are allowed in server components (e.g., custom server-safe hooks)\"\n\t\t\t} },\n\t\t\tadditionalProperties: false\n\t\t}],\n\t\tmessages: {\n\t\t\thookInServerComponent: \"\\\"{{name}}\\\" hook {{location}} cannot be used in server components. \" + TRIGGER_HINT + \" To use client functionality, either: (1) pass the client component as a prop/slot to the server component, or (2) move this code to a separate file and add \\\"use client\\\" directive.\",\n\t\t\tbrowserGlobalInServerComponent: \"\\\"{{name}}\\\" browser API {{location}} is not available in server components. \" + TRIGGER_HINT + \" To use client functionality, either: (1) pass the client component as a prop/slot to the server component, or (2) move this code to a separate file and add \\\"use client\\\" directive.\",\n\t\t\teventHandlerInServerComponent: \"\\\"{{name}}\\\" event handler {{location}} cannot be used in server components. \" + TRIGGER_HINT + \" To use client functionality, either: (1) pass the client component as a prop/slot to the server component, or (2) move this code to a separate file and add \\\"use client\\\" directive.\",\n\t\t\tfunctionPropInServerComponent: \"\\\"{{name}}\\\" function prop {{location}} cannot be passed in server components. Functions cannot be serialized from server to client. \" + TRIGGER_HINT + \" To use client functionality, either: (1) pass the client component as a prop/slot to the server component, or (2) move this code to a separate file and add \\\"use client\\\" directive.\",\n\t\t\tclassComponentInServerComponent: \"\\\"{{name}}\\\" class component {{location}} cannot be used in server components. Class components require client-side lifecycle methods. \" + TRIGGER_HINT + \" To use client functionality, either: (1) pass the client component as a prop/slot to the server component, or (2) move this code to a separate file and add \\\"use client\\\" directive.\"\n\t\t}\n\t},\n\tdefaultOptions: [{ allowedServerHooks: [] }],\n\tcreate(context, [options]) {\n\t\tconst services = ESLintUtils.getParserServices(context);\n\t\tconst program = services.program;\n\t\tconst checker = program.getTypeChecker();\n\t\tconst allowedHooks = new Set([...DEFAULT_ALLOWED_HOOKS, ...options.allowedServerHooks]);\n\t\tconst useClientResolver = createUseClientResolver(program);\n\t\tconst violationDetector = createViolationDetector(ts, {\n\t\t\tallowedHooks,\n\t\t\tchecker\n\t\t});\n\t\tconst transitiveAnalyzer = createTransitiveAnalyzer(ts, program, checker, useClientResolver, violationDetector);\n\t\treturn { CallExpression(node) {\n\t\t\tconst sourceFile = services.esTreeNodeToTSNodeMap.get(node).getSourceFile();\n\t\t\tif (useClientResolver.hasUseClientDirective(sourceFile.fileName)) return;\n\t\t\tconst rootKind = getServerRootKind(node);\n\t\t\tif (!rootKind) return;\n\t\t\tif (rootKind === \"createCompositeComponent\") {\n\t\t\t\tconst callback = node.arguments[0];\n\t\t\t\tif (!callback) return;\n\t\t\t\tconst tsNode = services.esTreeNodeToTSNodeMap.get(callback);\n\t\t\t\tif (ts.isFunctionLike(tsNode)) analyzeServerComponentCallback(tsNode, node, rootKind);\n\t\t\t\telse if (ts.isIdentifier(tsNode)) analyzeDirectComponentReference(tsNode, node, rootKind);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst element = node.arguments[0];\n\t\t\tif (!element) return;\n\t\t\tanalyzeServerComponentNode(services.esTreeNodeToTSNodeMap.get(element), node, rootKind);\n\t\t} };\n\t\tfunction getServerRootKind(node) {\n\t\t\tif (node.callee.type === \"Identifier\") {\n\t\t\t\tif (node.callee.name === \"createCompositeComponent\") return \"createCompositeComponent\";\n\t\t\t\tif (node.callee.name === \"renderServerComponent\") return \"renderServerComponent\";\n\t\t\t}\n\t\t\tif (node.callee.type === \"MemberExpression\" && node.callee.property.type === \"Identifier\") {\n\t\t\t\tif (node.callee.property.name === \"createCompositeComponent\") return \"createCompositeComponent\";\n\t\t\t\tif (node.callee.property.name === \"renderServerComponent\") return \"renderServerComponent\";\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t\tfunction analyzeServerComponentNode(node, eslintNode, rootKind) {\n\t\t\tconst reportedViolations = /* @__PURE__ */ new Set();\n\t\t\tconst sourceFile = node.getSourceFile();\n\t\t\tconst directViolations = violationDetector.detectViolations(sourceFile);\n\t\t\tconst start = node.getStart();\n\t\t\tconst end = node.getEnd();\n\t\t\tfor (const violation of directViolations) {\n\t\t\t\tconst violationPos = violation.node.getStart();\n\t\t\t\tif (violationPos >= start && violationPos <= end) {\n\t\t\t\t\tconst key = `${violation.fileName}:${violation.line}:${violation.name}`;\n\t\t\t\t\tif (!reportedViolations.has(key)) {\n\t\t\t\t\t\treportedViolations.add(key);\n\t\t\t\t\t\treportViolation(violation, [], rootKind, eslintNode);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tconst componentRefs = findComponentReferences(node);\n\t\t\tfor (const ref of componentRefs) {\n\t\t\t\tconst symbol = checker.getSymbolAtLocation(ref);\n\t\t\t\tif (!symbol) continue;\n\t\t\t\tconst resolvedSymbol = ts.SymbolFlags.Alias & symbol.flags ? checker.getAliasedSymbol(symbol) : symbol;\n\t\t\t\tconst result = transitiveAnalyzer.analyzeEntrySymbol(resolvedSymbol);\n\t\t\t\tif (result.isClientBoundary) continue;\n\t\t\t\tfor (const violation of result.violations) {\n\t\t\t\t\tconst key = `${violation.fileName}:${violation.line}:${violation.name}`;\n\t\t\t\t\tif (!reportedViolations.has(key)) {\n\t\t\t\t\t\treportedViolations.add(key);\n\t\t\t\t\t\treportViolation(violation, violation.chain, rootKind, eslintNode);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfunction analyzeServerComponentCallback(callback, eslintNode, rootKind) {\n\t\t\tconst reportedViolations = /* @__PURE__ */ new Set();\n\t\t\tconst parameterNames = /* @__PURE__ */ new Set();\n\t\t\tfor (const param of callback.parameters) collectParameterBindings(param.name, parameterNames);\n\t\t\tconst body = callback.body;\n\t\t\tif (body) {\n\t\t\t\tconst sourceFile = callback.getSourceFile();\n\t\t\t\tconst directViolations = violationDetector.detectViolations(sourceFile);\n\t\t\t\tconst callbackStart = body.getStart();\n\t\t\t\tconst callbackEnd = body.getEnd();\n\t\t\t\tfor (const violation of directViolations) {\n\t\t\t\t\tconst violationPos = violation.node.getStart();\n\t\t\t\t\tif (violationPos >= callbackStart && violationPos <= callbackEnd) {\n\t\t\t\t\t\tconst key = `${violation.fileName}:${violation.line}:${violation.name}`;\n\t\t\t\t\t\tif (!reportedViolations.has(key)) {\n\t\t\t\t\t\t\treportedViolations.add(key);\n\t\t\t\t\t\t\treportViolation(violation, [], rootKind, eslintNode);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tconst componentRefs = findComponentReferences(callback);\n\t\t\tfor (const ref of componentRefs) {\n\t\t\t\tif (parameterNames.has(ref.text)) continue;\n\t\t\t\tconst symbol = checker.getSymbolAtLocation(ref);\n\t\t\t\tif (!symbol) continue;\n\t\t\t\tif (symbol.getDeclarations()?.some((d) => isWithinParameters(d, callback))) continue;\n\t\t\t\tconst resolvedSymbol = ts.SymbolFlags.Alias & symbol.flags ? checker.getAliasedSymbol(symbol) : symbol;\n\t\t\t\tconst result = transitiveAnalyzer.analyzeEntrySymbol(resolvedSymbol);\n\t\t\t\tif (result.isClientBoundary) continue;\n\t\t\t\tfor (const violation of result.violations) {\n\t\t\t\t\tconst key = `${violation.fileName}:${violation.line}:${violation.name}`;\n\t\t\t\t\tif (!reportedViolations.has(key)) {\n\t\t\t\t\t\treportedViolations.add(key);\n\t\t\t\t\t\treportViolation(violation, violation.chain, rootKind, eslintNode);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t/**\n\t\t* Analyze a component passed directly to createCompositeComponent(Component)\n\t\t*/\n\t\tfunction analyzeDirectComponentReference(ref, eslintNode, rootKind = \"createCompositeComponent\") {\n\t\t\tconst symbol = checker.getSymbolAtLocation(ref);\n\t\t\tif (!symbol) return;\n\t\t\tconst resolvedSymbol = ts.SymbolFlags.Alias & symbol.flags ? checker.getAliasedSymbol(symbol) : symbol;\n\t\t\tconst result = transitiveAnalyzer.analyzeEntrySymbol(resolvedSymbol);\n\t\t\tif (result.isClientBoundary) return;\n\t\t\tconst reportedViolations = /* @__PURE__ */ new Set();\n\t\t\tfor (const violation of result.violations) {\n\t\t\t\tconst key = `${violation.fileName}:${violation.line}:${violation.name}`;\n\t\t\t\tif (!reportedViolations.has(key)) {\n\t\t\t\t\treportedViolations.add(key);\n\t\t\t\t\treportViolation(violation, violation.chain, rootKind, eslintNode);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t/**\n\t\t* Collect all binding names from a parameter (handles destructuring)\n\t\t*/\n\t\tfunction collectParameterBindings(bindingName, names) {\n\t\t\tfunction collectFromBinding(node) {\n\t\t\t\tif (ts.isIdentifier(node)) names.add(node.text);\n\t\t\t\telse if (ts.isObjectBindingPattern(node)) for (const element of node.elements) collectFromBinding(element.name);\n\t\t\t\telse if (ts.isArrayBindingPattern(node)) {\n\t\t\t\t\tfor (const element of node.elements) if (ts.isBindingElement(element)) collectFromBinding(element.name);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcollectFromBinding(bindingName);\n\t\t}\n\t\t/**\n\t\t* Check if a declaration is within the parameters of the callback\n\t\t*/\n\t\tfunction isWithinParameters(decl, callback) {\n\t\t\tlet current = decl;\n\t\t\twhile (current) {\n\t\t\t\tif (ts.isParameter(current)) {\n\t\t\t\t\tconst paramParent = current.parent;\n\t\t\t\t\tif (ts.isFunctionLike(paramParent) && paramParent === callback) return true;\n\t\t\t\t}\n\t\t\t\tcurrent = current.parent;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\tfunction findComponentReferences(node) {\n\t\t\tconst refs = [];\n\t\t\tfunction visit(n) {\n\t\t\t\tif (ts.isJsxOpeningElement(n) || ts.isJsxSelfClosingElement(n)) {\n\t\t\t\t\tconst tagName = n.tagName;\n\t\t\t\t\tif (ts.isIdentifier(tagName) && /^[A-Z]/.test(tagName.text)) refs.push(tagName);\n\t\t\t\t}\n\t\t\t\tif (ts.isCallExpression(n)) {\n\t\t\t\t\tconst callee = n.expression;\n\t\t\t\t\tif (ts.isIdentifier(callee) && /^[A-Z]/.test(callee.text)) refs.push(callee);\n\t\t\t\t}\n\t\t\t\tts.forEachChild(n, visit);\n\t\t\t}\n\t\t\tvisit(node);\n\t\t\treturn refs;\n\t\t}\n\t\tfunction reportViolation(violation, chain, entryComponentName, eslintNode) {\n\t\t\tconst location = formatLocation(violation, chain);\n\t\t\tconst messageId = getMessageId(violation.type);\n\t\t\tcontext.report({\n\t\t\t\tnode: eslintNode,\n\t\t\t\tmessageId,\n\t\t\t\tdata: {\n\t\t\t\t\tname: violation.name,\n\t\t\t\t\tlocation,\n\t\t\t\t\tentry: entryComponentName,\n\t\t\t\t\tfileName: getRelativePath(violation.fileName)\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\tfunction getMessageId(type) {\n\t\t\tswitch (type) {\n\t\t\t\tcase \"hook\": return \"hookInServerComponent\";\n\t\t\t\tcase \"browser-global\": return \"browserGlobalInServerComponent\";\n\t\t\t\tcase \"event-handler\": return \"eventHandlerInServerComponent\";\n\t\t\t\tcase \"function-prop\": return \"functionPropInServerComponent\";\n\t\t\t\tcase \"class-component\": return \"classComponentInServerComponent\";\n\t\t\t}\n\t\t}\n\t\tfunction formatLocation(violation, chain) {\n\t\t\tif (chain.length > 0) return `(via ${chain.map((e) => getRelativePath(e.toFile)).join(\" -> \")}) at ${getRelativePath(violation.fileName)}:${violation.line}`;\n\t\t\treturn `at ${getRelativePath(violation.fileName)}:${violation.line}`;\n\t\t}\n\t\tfunction getRelativePath(fileName) {\n\t\t\tconst cwd = context.cwd;\n\t\t\treturn path.relative(cwd, fileName);\n\t\t}\n\t}\n});\n//#endregion\nexport { name, rule };\n\n//# sourceMappingURL=no-client-code-in-server-component.rule.js.map","//#region src/rules/no-async-client-component/constants.ts\n/**\n* Route option names that accept component references.\n* These make the referenced component a \"client root\".\n*/\nvar ROUTE_COMPONENT_OPTION_NAMES = [\n\t\"component\",\n\t\"pendingComponent\",\n\t\"errorComponent\",\n\t\"notFoundComponent\"\n];\n/**\n* Function names that create routes (client entry points).\n*/\nvar ROUTE_CREATOR_NAMES = [\n\t\"createFileRoute\",\n\t\"createRootRoute\",\n\t\"createRootRouteWithContext\"\n];\n/**\n* Function names that create server-component roots.\n*/\nvar SERVER_COMPONENT_ROOTS = [\"renderServerComponent\", \"createCompositeComponent\"];\n//#endregion\nexport { ROUTE_COMPONENT_OPTION_NAMES, ROUTE_CREATOR_NAMES, SERVER_COMPONENT_ROOTS };\n\n//# sourceMappingURL=constants.js.map","import { ROUTE_COMPONENT_OPTION_NAMES, ROUTE_CREATOR_NAMES, SERVER_COMPONENT_ROOTS } from \"./constants.js\";\n//#region src/rules/no-async-client-component/render-graph-builder.ts\n/**\n* Builds a render graph from the TypeScript program.\n* Indexes components, JSX edges, server roots, and client roots.\n*/\nfunction createRenderGraphBuilder(tsLib, program, checker) {\n\tconst graph = {\n\t\tcomponents: /* @__PURE__ */ new Map(),\n\t\tedges: [],\n\t\tserverRoots: /* @__PURE__ */ new Set(),\n\t\tclientRoots: /* @__PURE__ */ new Set(),\n\t\tuseClientFiles: /* @__PURE__ */ new Set(),\n\t\trouteOptionUsages: /* @__PURE__ */ new Map(),\n\t\trouteOptionRootsByFile: /* @__PURE__ */ new Map()\n\t};\n\treturn {\n\t\tbuild() {\n\t\t\tfor (const sourceFile of program.getSourceFiles()) {\n\t\t\t\tif (sourceFile.isDeclarationFile) continue;\n\t\t\t\tif (sourceFile.fileName.includes(\"node_modules\")) continue;\n\t\t\t\tif (!fileCanContribute(sourceFile)) continue;\n\t\t\t\tprocessSourceFile(sourceFile);\n\t\t\t}\n\t\t\treturn graph;\n\t\t},\n\t\tgetGraph() {\n\t\t\treturn graph;\n\t\t}\n\t};\n\t/**\n\t* Quick text-based check to skip files that can't contribute edges or roots.\n\t* A file can contribute if it might have:\n\t* - JSX (components, edges)\n\t* - 'use client' directive (client roots)\n\t* - createFileRoute/createRootRoute (route-option roots)\n\t* - renderServerComponent/createCompositeComponent (server roots)\n\t\n\t*/\n\tfunction fileCanContribute(sourceFile) {\n\t\tconst text = sourceFile.text;\n\t\tconst hasJsx = text.includes(\"<\") && (text.includes(\"/>\") || text.includes(\"</\"));\n\t\tconst hasUseClient = text.includes(\"use client\");\n\t\tconst hasRouteCreator = text.includes(\"createFileRoute\") || text.includes(\"createRootRoute\") || text.includes(\"createRootRouteWithContext\");\n\t\tconst hasServerComponentRoot = SERVER_COMPONENT_ROOTS.some((name) => text.includes(name));\n\t\treturn hasJsx || hasUseClient || hasRouteCreator || hasServerComponentRoot;\n\t}\n\tfunction processSourceFile(sourceFile) {\n\t\tif (hasUseClientDirective(sourceFile)) graph.useClientFiles.add(sourceFile.fileName);\n\t\tvisitNode(sourceFile, sourceFile, null);\n\t}\n\tfunction hasUseClientDirective(sourceFile) {\n\t\tconst firstStatement = sourceFile.statements[0];\n\t\tif (!firstStatement) return false;\n\t\tif (tsLib.isExpressionStatement(firstStatement) && tsLib.isStringLiteral(firstStatement.expression) && firstStatement.expression.text === \"use client\") return true;\n\t\treturn false;\n\t}\n\tfunction visitNode(node, sourceFile, currentComponent) {\n\t\tif (tsLib.isFunctionDeclaration(node) && node.name) {\n\t\t\tif (isPascalCase(node.name.text)) {\n\t\t\t\tconst key = makeKey(sourceFile.fileName, node.name.text);\n\t\t\t\tgraph.components.set(key, {\n\t\t\t\t\tname: node.name.text,\n\t\t\t\t\tfileName: sourceFile.fileName,\n\t\t\t\t\tnode,\n\t\t\t\t\tisAsync: hasAsyncModifier(node),\n\t\t\t\t\tline: getLine(sourceFile, node)\n\t\t\t\t});\n\t\t\t\tif (graph.useClientFiles.has(sourceFile.fileName)) graph.clientRoots.add(key);\n\t\t\t\tif (node.body) tsLib.forEachChild(node.body, (child) => visitNode(child, sourceFile, key));\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif (tsLib.isVariableStatement(node)) {\n\t\t\tfor (const decl of node.declarationList.declarations) if (tsLib.isIdentifier(decl.name) && isPascalCase(decl.name.text) && decl.initializer && isFunctionLike(decl.initializer)) {\n\t\t\t\tconst key = makeKey(sourceFile.fileName, decl.name.text);\n\t\t\t\tgraph.components.set(key, {\n\t\t\t\t\tname: decl.name.text,\n\t\t\t\t\tfileName: sourceFile.fileName,\n\t\t\t\t\tnode: decl,\n\t\t\t\t\tisAsync: isAsyncFunctionLike(decl.initializer),\n\t\t\t\t\tline: getLine(sourceFile, decl)\n\t\t\t\t});\n\t\t\t\tif (graph.useClientFiles.has(sourceFile.fileName)) graph.clientRoots.add(key);\n\t\t\t\tconst funcNode = decl.initializer;\n\t\t\t\ttsLib.forEachChild(funcNode.body, (child) => visitNode(child, sourceFile, key));\n\t\t\t} else if (decl.initializer) visitNode(decl.initializer, sourceFile, currentComponent);\n\t\t\treturn;\n\t\t}\n\t\tif (tsLib.isCallExpression(node)) {\n\t\t\tconst serverRootKind = getServerRootKind(node, checker);\n\t\t\tif (serverRootKind === \"createCompositeComponent\") {\n\t\t\t\tconst callback = node.arguments[0];\n\t\t\t\tif (callback && isFunctionLike(callback)) collectJsxComponentRefs(callback, sourceFile, currentComponent, true);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (serverRootKind === \"renderServerComponent\") {\n\t\t\t\tconst element = node.arguments[0];\n\t\t\t\tif (element) collectJsxComponentRefs(element, sourceFile, currentComponent, true);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif (tsLib.isCallExpression(node)) {\n\t\t\tconst routeOptions = getRouteOptionsObject(node);\n\t\t\tif (routeOptions) {\n\t\t\t\tfor (const prop of routeOptions.properties) if (tsLib.isPropertyAssignment(prop) && tsLib.isIdentifier(prop.name) && ROUTE_COMPONENT_OPTION_NAMES.includes(prop.name.text)) markAsClientRoot(prop.initializer, sourceFile, currentComponent, prop);\n\t\t\t}\n\t\t}\n\t\tif (tsLib.isJsxOpeningElement(node) || tsLib.isJsxSelfClosingElement(node)) {\n\t\t\tconst tagName = node.tagName;\n\t\t\tif (tsLib.isIdentifier(tagName) && isPascalCase(tagName.text)) {\n\t\t\t\tconst symbol = checker.getSymbolAtLocation(tagName);\n\t\t\t\tif (symbol) {\n\t\t\t\t\tconst resolved = resolveSymbol(symbol);\n\t\t\t\t\tif (resolved) {\n\t\t\t\t\t\tconst decls = resolved.getDeclarations();\n\t\t\t\t\t\tif (decls && decls.length > 0) {\n\t\t\t\t\t\t\tconst declFile = decls[0].getSourceFile().fileName;\n\t\t\t\t\t\t\tconst toKey = makeKey(declFile, tagName.text);\n\t\t\t\t\t\t\tif (currentComponent) graph.edges.push({\n\t\t\t\t\t\t\t\tfromFile: sourceFile.fileName,\n\t\t\t\t\t\t\t\tfromComponent: currentComponent.split(\":\")[1],\n\t\t\t\t\t\t\t\ttoFile: declFile,\n\t\t\t\t\t\t\t\ttoComponent: tagName.text,\n\t\t\t\t\t\t\t\ttoComponentKey: toKey,\n\t\t\t\t\t\t\t\tjsxNode: node,\n\t\t\t\t\t\t\t\tjsxLine: getLine(sourceFile, node)\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ttsLib.forEachChild(node, (child) => visitNode(child, sourceFile, currentComponent));\n\t}\n\tfunction getServerRootKind(node, _checker) {\n\t\tif (tsLib.isIdentifier(node.expression)) {\n\t\t\tconst name = node.expression.text;\n\t\t\treturn SERVER_COMPONENT_ROOTS.includes(name) ? name : null;\n\t\t}\n\t\tif (tsLib.isPropertyAccessExpression(node.expression) && tsLib.isIdentifier(node.expression.name)) {\n\t\t\tconst name = node.expression.name.text;\n\t\t\treturn SERVER_COMPONENT_ROOTS.includes(name) ? name : null;\n\t\t}\n\t\treturn null;\n\t}\n\tfunction getRouteOptionsObject(node) {\n\t\tconst optionsArg = node.arguments[0];\n\t\tif (!optionsArg || !tsLib.isObjectLiteralExpression(optionsArg)) return;\n\t\tconst routeCreator = findRouteCreatorFromCallee(node.expression);\n\t\tif (!routeCreator) return;\n\t\tconst routeCreatorName = tsLib.isIdentifier(routeCreator) ? routeCreator.text : routeCreator.name.text;\n\t\tif (ROUTE_CREATOR_NAMES.includes(routeCreatorName)) return optionsArg;\n\t}\n\tfunction findRouteCreatorFromCallee(expr) {\n\t\tif (tsLib.isParenthesizedExpression(expr)) return findRouteCreatorFromCallee(expr.expression);\n\t\tif (tsLib.isCallExpression(expr)) return findRouteCreatorFromCallee(expr.expression);\n\t\tif (tsLib.isPropertyAccessExpression(expr)) {\n\t\t\tif (tsLib.isIdentifier(expr.name)) {\n\t\t\t\tif (ROUTE_CREATOR_NAMES.includes(expr.name.text)) return expr;\n\t\t\t}\n\t\t\treturn findRouteCreatorFromCallee(expr.expression);\n\t\t}\n\t\tif (tsLib.isIdentifier(expr)) return expr;\n\t}\n\tfunction markAsClientRoot(node, sourceFile, _currentComponent, usageNode) {\n\t\tif (tsLib.isIdentifier(node)) {\n\t\t\tconst componentName = node.text;\n\t\t\tconst symbol = checker.getSymbolAtLocation(node);\n\t\t\tif (symbol) {\n\t\t\t\tconst resolved = resolveSymbol(symbol);\n\t\t\t\tif (resolved) {\n\t\t\t\t\tconst decls = resolved.getDeclarations();\n\t\t\t\t\tif (decls && decls.length > 0) {\n\t\t\t\t\t\tconst declFile = decls[0].getSourceFile().fileName;\n\t\t\t\t\t\tconst key = makeKey(declFile, componentName);\n\t\t\t\t\t\tgraph.clientRoots.add(key);\n\t\t\t\t\t\tif (usageNode) {\n\t\t\t\t\t\t\tgraph.routeOptionUsages.set(key, {\n\t\t\t\t\t\t\t\tcomponentKey: key,\n\t\t\t\t\t\t\t\tusageNode,\n\t\t\t\t\t\t\t\tusageLine: getLine(sourceFile, usageNode),\n\t\t\t\t\t\t\t\tfileName: sourceFile.fileName\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\taddToRouteOptionRootsByFile(sourceFile.fileName, key);\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tconst fallbackKey = makeKey(sourceFile.fileName, componentName);\n\t\t\tgraph.clientRoots.add(fallbackKey);\n\t\t\tif (usageNode) {\n\t\t\t\tgraph.routeOptionUsages.set(fallbackKey, {\n\t\t\t\t\tcomponentKey: fallbackKey,\n\t\t\t\t\tusageNode,\n\t\t\t\t\tusageLine: getLine(sourceFile, usageNode),\n\t\t\t\t\tfileName: sourceFile.fileName\n\t\t\t\t});\n\t\t\t\taddToRouteOptionRootsByFile(sourceFile.fileName, fallbackKey);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif (isFunctionLike(node)) collectJsxComponentRefs(node, sourceFile, null, false, usageNode);\n\t}\n\tfunction collectJsxComponentRefs(node, sourceFile, _currentComponent, isServerContext, usageNode) {\n\t\tfunction walk(n) {\n\t\t\tif (tsLib.isJsxOpeningElement(n) || tsLib.isJsxSelfClosingElement(n)) {\n\t\t\t\tconst tagName = n.tagName;\n\t\t\t\tif (tsLib.isIdentifier(tagName) && isPascalCase(tagName.text)) {\n\t\t\t\t\tconst symbol = checker.getSymbolAtLocation(tagName);\n\t\t\t\t\tif (symbol) {\n\t\t\t\t\t\tconst resolved = resolveSymbol(symbol);\n\t\t\t\t\t\tif (resolved) {\n\t\t\t\t\t\t\tconst decls = resolved.getDeclarations();\n\t\t\t\t\t\t\tif (decls && decls.length > 0) {\n\t\t\t\t\t\t\t\tconst declFile = decls[0].getSourceFile().fileName;\n\t\t\t\t\t\t\t\tconst key = makeKey(declFile, tagName.text);\n\t\t\t\t\t\t\t\tif (isServerContext) graph.serverRoots.add(key);\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tgraph.clientRoots.add(key);\n\t\t\t\t\t\t\t\t\tconst effectiveUsageNode = usageNode ?? n;\n\t\t\t\t\t\t\t\t\tgraph.routeOptionUsages.set(key, {\n\t\t\t\t\t\t\t\t\t\tcomponentKey: key,\n\t\t\t\t\t\t\t\t\t\tusageNode: effectiveUsageNode,\n\t\t\t\t\t\t\t\t\t\tusageLine: getLine(sourceFile, effectiveUsageNode),\n\t\t\t\t\t\t\t\t\t\tfileName: sourceFile.fileName\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\taddToRouteOptionRootsByFile(sourceFile.fileName, key);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ttsLib.forEachChild(n, walk);\n\t\t}\n\t\twalk(node);\n\t}\n\tfunction resolveSymbol(symbol) {\n\t\tif (symbol.flags & tsLib.SymbolFlags.Alias) return checker.getAliasedSymbol(symbol);\n\t\treturn symbol;\n\t}\n\tfunction isPascalCase(name) {\n\t\treturn /^[A-Z]/.test(name);\n\t}\n\tfunction hasAsyncModifier(node) {\n\t\treturn node.modifiers?.some((mod) => mod.kind === tsLib.SyntaxKind.AsyncKeyword) ?? false;\n\t}\n\tfunction isFunctionLike(node) {\n\t\treturn tsLib.isArrowFunction(node) || tsLib.isFunctionExpression(node) || tsLib.isFunctionDeclaration(node);\n\t}\n\tfunction isAsyncFunctionLike(node) {\n\t\tif (tsLib.isArrowFunction(node) || tsLib.isFunctionExpression(node)) return hasAsyncModifier(node);\n\t\treturn false;\n\t}\n\tfunction makeKey(fileName, componentName) {\n\t\treturn `${fileName}:${componentName}`;\n\t}\n\tfunction getLine(sourceFile, node) {\n\t\treturn sourceFile.getLineAndCharacterOfPosition(node.getStart()).line + 1;\n\t}\n\tfunction addToRouteOptionRootsByFile(fileName, key) {\n\t\tlet set = graph.routeOptionRootsByFile.get(fileName);\n\t\tif (!set) {\n\t\t\tset = /* @__PURE__ */ new Set();\n\t\t\tgraph.routeOptionRootsByFile.set(fileName, set);\n\t\t}\n\t\tset.add(key);\n\t}\n}\n//#endregion\nexport { createRenderGraphBuilder };\n\n//# sourceMappingURL=render-graph-builder.js.map","//#region src/rules/no-async-client-component/context-analyzer.ts\n/**\n* Analyzes the render graph to propagate server/client context.\n*\n* Algorithm:\n* 1. Mark server roots as server context, propagate to descendants\n* 2. Stop propagation at 'use client' boundaries\n* 3. Mark client roots as client context, propagate to descendants\n* 4. Components reachable from both => client wins (tainted)\n\n*/\nfunction analyzeContext(graph) {\n\tconst contexts = /* @__PURE__ */ new Map();\n\tfor (const [key, component] of graph.components) contexts.set(key, {\n\t\tkey,\n\t\tcomponent,\n\t\tisServerContext: false,\n\t\tisClientContext: false\n\t});\n\tconst adjacency = buildAdjacencyList(graph.edges);\n\tconst serverVisited = /* @__PURE__ */ new Set();\n\tfor (const serverRoot of graph.serverRoots) propagateServerContext(serverRoot, serverVisited, graph, contexts, adjacency);\n\tconst clientVisited = /* @__PURE__ */ new Set();\n\tfor (const clientRoot of graph.clientRoots) {\n\t\tconst ctx = contexts.get(clientRoot);\n\t\tif (!ctx) continue;\n\t\tlet reason;\n\t\tif (graph.useClientFiles.has(ctx.component.fileName)) reason = {\n\t\t\ttype: \"use-client\",\n\t\t\tfileName: ctx.component.fileName\n\t\t};\n\t\telse {\n\t\t\tconst routeUsage = graph.routeOptionUsages.get(clientRoot);\n\t\t\treason = {\n\t\t\t\ttype: \"route-option\",\n\t\t\t\tfileName: ctx.component.fileName,\n\t\t\t\tusageFile: routeUsage?.fileName,\n\t\t\t\tusageNode: routeUsage?.usageNode,\n\t\t\t\tusageLine: routeUsage?.usageLine\n\t\t\t};\n\t\t}\n\t\tpropagateClientContext(clientRoot, clientVisited, contexts, adjacency, reason);\n\t}\n\tfor (const [_key, ctx] of contexts) if (graph.useClientFiles.has(ctx.component.fileName) && !ctx.isClientContext) {\n\t\tctx.isClientContext = true;\n\t\tctx.clientReason = {\n\t\t\ttype: \"use-client\",\n\t\t\tfileName: ctx.component.fileName\n\t\t};\n\t}\n\tconst clientEdges = [];\n\tfor (const edge of graph.edges) {\n\t\tconst fromKey = `${edge.fromFile}:${edge.fromComponent}`;\n\t\tif (contexts.get(fromKey)?.isClientContext) clientEdges.push(edge);\n\t}\n\treturn {\n\t\tcontexts,\n\t\tclientEdges\n\t};\n}\nfunction buildAdjacencyList(edges) {\n\tconst adj = /* @__PURE__ */ new Map();\n\tfor (const edge of edges) {\n\t\tconst fromKey = `${edge.fromFile}:${edge.fromComponent}`;\n\t\tif (!adj.has(fromKey)) adj.set(fromKey, []);\n\t\tadj.get(fromKey).push(edge);\n\t}\n\treturn adj;\n}\nfunction propagateServerContext(key, visited, graph, contexts, adjacency) {\n\tif (visited.has(key)) return;\n\tvisited.add(key);\n\tconst ctx = contexts.get(key);\n\tif (!ctx) return;\n\tif (graph.useClientFiles.has(ctx.component.fileName)) {\n\t\tctx.isClientContext = true;\n\t\tctx.clientReason = {\n\t\t\ttype: \"use-client\",\n\t\t\tfileName: ctx.component.fileName\n\t\t};\n\t\treturn;\n\t}\n\tctx.isServerContext = true;\n\tconst edges = adjacency.get(key) ?? [];\n\tfor (const edge of edges) propagateServerContext(edge.toComponentKey, visited, graph, contexts, adjacency);\n}\nfunction propagateClientContext(key, visited, contexts, adjacency, reason) {\n\tif (visited.has(key)) return;\n\tvisited.add(key);\n\tconst ctx = contexts.get(key);\n\tif (!ctx) return;\n\tctx.isClientContext = true;\n\tif (!ctx.clientReason) ctx.clientReason = reason;\n\tconst edges = adjacency.get(key) ?? [];\n\tfor (const edge of edges) propagateClientContext(edge.toComponentKey, visited, contexts, adjacency, {\n\t\ttype: \"rendered-by-client\",\n\t\tparentComponent: ctx.component.name,\n\t\tparentFile: ctx.component.fileName\n\t});\n}\n//#endregion\nexport { analyzeContext };\n\n//# sourceMappingURL=context-analyzer.js.map","import { getDocsUrl } from \"../../utils/get-docs-url.js\";\nimport { createRenderGraphBuilder } from \"./render-graph-builder.js\";\nimport { analyzeContext } from \"./context-analyzer.js\";\nimport path from \"node:path\";\nimport { ESLintUtils } from \"@typescript-eslint/utils\";\nimport * as ts from \"typescript\";\n//#region src/rules/no-async-client-component/no-async-client-component.rule.ts\nvar name = \"no-async-client-component\";\nvar perProgramCache = /* @__PURE__ */ new WeakMap();\nvar onDemandCache = /* @__PURE__ */ new WeakMap();\nvar adjacencyCache = /* @__PURE__ */ new WeakMap();\nvar rule = ESLintUtils.RuleCreator(getDocsUrl)({\n\tname,\n\tmeta: {\n\t\ttype: \"problem\",\n\t\tdocs: {\n\t\t\tdescription: \"Disallow async components in client context. Async components are only valid inside server components.\",\n\t\t\trecommended: \"error\"\n\t\t},\n\t\tschema: [{\n\t\t\ttype: \"object\",\n\t\t\tproperties: { ignorePatterns: {\n\t\t\t\ttype: \"array\",\n\t\t\t\titems: { type: \"string\" },\n\t\t\t\tdescription: \"File patterns to ignore\"\n\t\t\t} },\n\t\t\tadditionalProperties: false\n\t\t}],\n\t\tmessages: {\n\t\t\tasyncClientComponentDefinition: \"Async component \\\"{{name}}\\\" cannot be used in client context. Async components are only valid inside server components. Either remove \\\"async\\\" or ensure this component is only rendered within server components. {{reason}}\",\n\t\t\tasyncClientComponentUsage: \"Async component \\\"{{name}}\\\" is rendered in client context here. Async components are only valid inside server components. Move this to a server component or use a non-async version.\"\n\t\t}\n\t},\n\tdefaultOptions: [{ ignorePatterns: [] }],\n\tcreate(context, [options]) {\n\t\tconst services = ESLintUtils.getParserServices(context);\n\t\tconst program = services.program;\n\t\tconst checker = program.getTypeChecker();\n\t\tconst currentFile = path.isAbsolute(context.filename) ? context.filename : path.resolve(context.cwd, context.filename);\n\t\tif (shouldIgnore(currentFile, [...options.ignorePatterns])) return {};\n\t\tlet cached = perProgramCache.get(program);\n\t\tif (!cached) {\n\t\t\tcached = {\n\t\t\t\tbuilder: createRenderGraphBuilder(ts, program, checker),\n\t\t\t\tgraphBuilt: false\n\t\t\t};\n\t\t\tperProgramCache.set(program, cached);\n\t\t}\n\t\tconst reported = /* @__PURE__ */ new Set();\n\t\treturn { Program() {\n\t\t\tconst sourceFile = program.getSourceFile(currentFile);\n\t\t\tif (!sourceFile) return;\n\t\t\tif (fileContainsRouteOptions(sourceFile)) {}\n\t\t\tconst analysis = getOnDemandAnalysis(currentFile);\n\t\t\tfor (const [key, ctx] of analysis.contexts) {\n\t\t\t\tif (!ctx.component.isAsync || !ctx.isClientContext) continue;\n\t\t\t\tconst reportKey = `def:${key}`;\n\t\t\t\tif (reported.has(reportKey)) continue;\n\t\t\t\tif (ctx.clientReason?.type === \"route-option\") {\n\t\t\t\t\tconst usageFile = ctx.clientReason.usageFile;\n\t\t\t\t\tif (usageFile && usageFile === currentFile) {\n\t\t\t\t\t\tconst usageTsNode = ctx.clientReason.usageNode;\n\t\t\t\t\t\tconst usageEslintNode = services.tsNodeToESTreeNodeMap.get(usageTsNode);\n\t\t\t\t\t\tif (usageEslintNode) {\n\t\t\t\t\t\t\treported.add(reportKey);\n\t\t\t\t\t\t\tcontext.report({\n\t\t\t\t\t\t\t\tnode: usageEslintNode,\n\t\t\t\t\t\t\t\tmessageId: \"asyncClientComponentDefinition\",\n\t\t\t\t\t\t\t\tdata: {\n\t\t\t\t\t\t\t\t\tname: ctx.component.name,\n\t\t\t\t\t\t\t\t\treason: formatReason(ctx.clientReason, context.cwd)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\treported.add(reportKey);\n\t\t\t\tconst tsNode = ctx.component.node;\n\t\t\t\tconst eslintNode = services.tsNodeToESTreeNodeMap.get(tsNode);\n\t\t\t\tif (eslintNode) context.report({\n\t\t\t\t\tnode: eslintNode,\n\t\t\t\t\tmessageId: \"asyncClientComponentDefinition\",\n\t\t\t\t\tdata: {\n\t\t\t\t\t\tname: ctx.component.name,\n\t\t\t\t\t\treason: ctx.clientReason ? formatReason(ctx.clientReason, context.cwd) : \"\"\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\tfor (const edge of analysis.clientEdges) {\n\t\t\t\tif (!analysis.contexts.get(edge.toComponentKey)?.component.isAsync) continue;\n\t\t\t\tif (edge.fromFile !== currentFile) continue;\n\t\t\t\tconst reportKey = `usage:${edge.fromFile}:${edge.jsxLine}:${edge.toComponent}`;\n\t\t\t\tif (reported.has(reportKey)) continue;\n\t\t\t\treported.add(reportKey);\n\t\t\t\tconst eslintNode = services.tsNodeToESTreeNodeMap.get(edge.jsxNode);\n\t\t\t\tif (eslintNode) context.report({\n\t\t\t\t\tnode: eslintNode,\n\t\t\t\t\tmessageId: \"asyncClientComponentUsage\",\n\t\t\t\t\tdata: { name: edge.toComponent }\n\t\t\t\t});\n\t\t\t}\n\t\t} };\n\t\tfunction shouldIgnore(filePath, patterns) {\n\t\t\tfor (const pattern of patterns) if (filePath.includes(pattern)) return true;\n\t\t\treturn false;\n\t\t}\n\t\tfunction formatReason(reason, cwd) {\n\t\t\tswitch (reason.type) {\n\t\t\t\tcase \"use-client\": return `File has \"use client\" directive.`;\n\t\t\t\tcase \"route-option\": return `Component is referenced by a route option (createFileRoute/createRootRoute).`;\n\t\t\t\tcase \"rendered-by-client\": return `Rendered by client component \"${reason.parentComponent}\" in ${path.relative(cwd, reason.parentFile)}.`;\n\t\t\t}\n\t\t}\n\t\tfunction getOnDemandAnalysis(entryFile) {\n\t\t\tlet programCache = onDemandCache.get(program);\n\t\t\tif (!programCache) {\n\t\t\t\tprogramCache = /* @__PURE__ */ new Map();\n\t\t\t\tonDemandCache.set(program, programCache);\n\t\t\t}\n\t\t\tconst cachedResult = programCache.get(entryFile);\n\t\t\tif (cachedResult) return cachedResult.analysis;\n\t\t\tif (!cached.graphBuilt) {\n\t\t\t\tcached.builder.build();\n\t\t\t\tcached.graphBuilt = true;\n\t\t\t}\n\t\t\tconst full = cached.builder.getGraph();\n\t\t\tconst subgraph = sliceGraphForEntryFile(full, entryFile);\n\t\t\tconst entrySourceFile = program.getSourceFile(entryFile);\n\t\t\tconst analysis = !!entrySourceFile && subgraph.clientRoots.size === 0 && subgraph.serverRoots.size === 0 ? analyzeContext(full) : analyzeContext(subgraph);\n\t\t\tprogramCache.set(entryFile, {\n\t\t\t\tgraph: subgraph,\n\t\t\t\tanalysis\n\t\t\t});\n\t\t\treturn analysis;\n\t\t}\n\t\tfunction sliceGraphForEntryFile(full, entryFile) {\n\t\t\tconst components = full.components;\n\t\t\tconst edges = full.edges;\n\t\t\tconst serverRoots = full.serverRoots;\n\t\t\tconst clientRoots = full.clientRoots;\n\t\t\tconst useClientFiles = full.useClientFiles;\n\t\t\tconst routeOptionUsages = full.routeOptionUsages;\n\t\t\tconst entryClientRoots = /* @__PURE__ */ new Set();\n\t\t\tconst entryServerRoots = /* @__PURE__ */ new Set();\n\t\t\tconst routeRootsInFile = routeOptionUsages.size > 0 ? full.routeOptionRootsByFile.get(entryFile) : void 0;\n\t\t\tif (routeRootsInFile) {\n\t\t\t\tfor (const key of routeRootsInFile) if (clientRoots.has(key)) entryClientRoots.add(key);\n\t\t\t}\n\t\t\tfor (const key of serverRoots) if (components.get(key)?.fileName === entryFile) entryServerRoots.add(key);\n\t\t\tif (useClientFiles.has(entryFile)) {\n\t\t\t\tfor (const [key, component] of components) if (component.fileName === entryFile) entryClientRoots.add(key);\n\t\t\t}\n\t\t\tconst reachable = /* @__PURE__ */ new Set();\n\t\t\tconst queue = [];\n\t\t\tfor (const r of entryClientRoots) queue.push(r);\n\t\t\tfor (const r of entryServerRoots) queue.push(r);\n\t\t\tconst adjacency = getAdjacency(full);\n\t\t\twhile (queue.length) {\n\t\t\t\tconst key = queue.pop();\n\t\t\t\tif (reachable.has(key)) continue;\n\t\t\t\treachable.add(key);\n\t\t\t\tconst children = adjacency.get(key);\n\t\t\t\tif (!children) continue;\n\t\t\t\tfor (const toKey of children) if (!reachable.has(toKey)) queue.push(toKey);\n\t\t\t}\n\t\t\tconst subComponents = /* @__PURE__ */ new Map();\n\t\t\tfor (const key of reachable) {\n\t\t\t\tconst comp = components.get(key);\n\t\t\t\tif (comp) subComponents.set(key, comp);\n\t\t\t}\n\t\t\tconst subEdges = edges.filter((edge) => {\n\t\t\t\tconst fromKey = `${edge.fromFile}:${edge.fromComponent}`;\n\t\t\t\treturn reachable.has(fromKey) && reachable.has(edge.toComponentKey);\n\t\t\t});\n\t\t\tconst subServerRoots = new Set([...entryServerRoots].filter((k) => reachable.has(k)));\n\t\t\tconst subClientRoots = new Set([...entryClientRoots].filter((k) => reachable.has(k)));\n\t\t\tconst subRouteOptionUsages = /* @__PURE__ */ new Map();\n\t\t\tconst subRouteOptionRootsByFile = /* @__PURE__ */ new Map();\n\t\t\tfor (const key of subClientRoots) {\n\t\t\t\tconst usage = routeOptionUsages.get(key);\n\t\t\t\tif (usage) {\n\t\t\t\t\tsubRouteOptionUsages.set(key, usage);\n\t\t\t\t\tlet set = subRouteOptionRootsByFile.get(usage.fileName);\n\t\t\t\t\tif (!set) {\n\t\t\t\t\t\tset = /* @__PURE__ */ new Set();\n\t\t\t\t\t\tsubRouteOptionRootsByFile.set(usage.fileName, set);\n\t\t\t\t\t}\n\t\t\t\t\tset.add(key);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn {\n\t\t\t\tcomponents: subComponents,\n\t\t\t\tedges: subEdges,\n\t\t\t\tserverRoots: subServerRoots,\n\t\t\t\tclientRoots: subClientRoots,\n\t\t\t\tuseClientFiles,\n\t\t\t\trouteOptionUsages: subRouteOptionUsages,\n\t\t\t\trouteOptionRootsByFile: subRouteOptionRootsByFile\n\t\t\t};\n\t\t}\n\t\tfunction getAdjacency(full) {\n\t\t\tlet cachedAdjacency = adjacencyCache.get(program);\n\t\t\tif (cachedAdjacency) return cachedAdjacency;\n\t\t\tcachedAdjacency = /* @__PURE__ */ new Map();\n\t\t\tfor (const edge of full.edges) {\n\t\t\t\tconst fromKey = `${edge.fromFile}:${edge.fromComponent}`;\n\t\t\t\tlet set = cachedAdjacency.get(fromKey);\n\t\t\t\tif (!set) {\n\t\t\t\t\tset = /* @__PURE__ */ new Set();\n\t\t\t\t\tcachedAdjacency.set(fromKey, set);\n\t\t\t\t}\n\t\t\t\tset.add(edge.toComponentKey);\n\t\t\t}\n\t\t\tadjacencyCache.set(program, cachedAdjacency);\n\t\t\treturn cachedAdjacency;\n\t\t}\n\t\tfunction fileHasUseClientDirective(sourceFile) {\n\t\t\tconst firstStmt = sourceFile.statements[0];\n\t\t\tif (!firstStmt) return false;\n\t\t\treturn ts.isExpressionStatement(firstStmt) && ts.isStringLiteral(firstStmt.expression) && firstStmt.expression.text === \"use client\";\n\t\t}\n\t\tfunction fileContainsServerComponentRoots(sourceFile) {\n\t\t\tconst text = sourceFile.text;\n\t\t\treturn text.includes(\"renderServerComponent\") || text.includes(\"createCompositeComponent\");\n\t\t}\n\t\tfunction fileContainsRouteOptions(sourceFile) {\n\t\t\tconst text = sourceFile.text;\n\t\t\tif (!text.includes(\"createFileRoute\") && !text.includes(\"createRootRoute\") && !text.includes(\"createRootRouteWithContext\")) return false;\n\t\t\treturn text.includes(\"component\") || text.includes(\"pendingComponent\") || text.includes(\"errorComponent\") || text.includes(\"notFoundComponent\");\n\t\t}\n\t}\n});\n//#endregion\nexport { name, rule };\n\n//# sourceMappingURL=no-async-client-component.rule.js.map","import { name, rule } from \"./rules/no-client-code-in-server-component/no-client-code-in-server-component.rule.js\";\nimport { name as name$1, rule as rule$1 } from \"./rules/no-async-client-component/no-async-client-component.rule.js\";\n//#region src/rules.ts\nvar rules = {\n\t[name]: rule,\n\t[name$1]: rule$1\n};\n//#endregion\nexport { rules };\n\n//# sourceMappingURL=rules.js.map","import { rules } from \"./rules.js\";\n//#region src/index.ts\nvar plugin = {\n\tmeta: { name: \"@tanstack/eslint-plugin-start\" },\n\tconfigs: {},\n\trules\n};\nObject.assign(plugin.configs, {\n\trecommended: {\n\t\tplugins: [\"@tanstack/eslint-plugin-start\"],\n\t\trules: {\n\t\t\t\"@tanstack/start/no-client-code-in-server-component\": \"error\",\n\t\t\t\"@tanstack/start/no-async-client-component\": \"error\"\n\t\t}\n\t},\n\t\"flat/recommended\": [{\n\t\tplugins: { \"@tanstack/start\": plugin },\n\t\trules: {\n\t\t\t\"@tanstack/start/no-client-code-in-server-component\": \"error\",\n\t\t\t\"@tanstack/start/no-async-client-component\": \"error\"\n\t\t}\n\t}]\n});\n//#endregion\nexport { plugin as default };\n\n//# sourceMappingURL=index.js.map","import tanstackStart from \"@tanstack/eslint-plugin-start\";\nimport type { Plugin } from \"vite-plus/lint/plugins\";\n\nimport { typedRules } from \"#/entities/typed-rule/index.ts\";\n\nconst plugin: Plugin & { readonly meta: { readonly name: string } } = {\n meta: { name: \"tanstack-start\" },\n rules: typedRules(tanstackStart.rules),\n};\n\nexport default plugin;\n"],"ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13],"mappings":";;;;;;AACA,IAAI,cAAc,aAAa,iDAAiD;;;;;;ACIhF,SAAS,wBAAwB,SAAS;CACzC,SAAS,sBAAsB,UAAU;EACxC,MAAM,aAAa,QAAQ,cAAc,QAAQ;EACjD,IAAI,CAAC,YAAY,OAAO;EACxB,MAAM,YAAY,WAAW,WAAW;EACxC,IAAI,CAAC,WAAW,OAAO;EACvB,IAAIA,eAAG,sBAAsB,SAAS,KAAKA,eAAG,gBAAgB,UAAU,UAAU,GAAG,OAAO,UAAU,WAAW,SAAS;EAC1H,OAAO;CACR;CACA,OAAO,EAAE,sBAAsB;AAChC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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KC,eAAAA,QAAQ,OAAO;CAClD,MAAM,cAAc,IAAI,IAAI,OAAO,KAAKA,eAAAA,QAAQ,IAAI,CAAC;CACrD,MAAM,8BAA8B,IAAI,IAAI;CAC5C,KAAK,MAAM,QAAQ,gBAAgB,IAAI,CAAC,YAAY,IAAI,IAAI,GAAG,YAAY,IAAI,IAAI;CACnF,OAAO;AACR,EAAA,CAAG;;;;AAIH,IAAI,uCAAuB,IAAI,IAAI;CAClC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,CAAC;;;;AAID,SAAS,oBAAoB,MAAM;CAClC,OAAO,qBAAqB,IAAI,IAAI;AACrC;;;;AAIA,SAAS,iBAAiB,MAAM,eAAe,uBAAuB;CACrE,IAAI,CAAC,YAAY,KAAK,IAAI,GAAG,OAAO;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C9C,SAAS,CAAC;CACV;GDDCJ,SAAOC;GACPC,OAASC;CCAV;AACD;AACA,OAAO,OAAOC,SAAO,SAAS;CAC7B,aAAa;EACZ,SAAS,CAAC,+BAA+B;EACzC,OAAO;GACN,sDAAsD;GACtD,6CAA6C;EAC9C;CACD;CACA,oBAAoB,CAAC;EACpB,SAAS,EAAE,mBAAmBA,SAAO;EACrC,OAAO;GACN,sDAAsD;GACtD,6CAA6C;EAC9C;CACD,CAAC;AACF,CAAC;;ACjBD,MAAM,SAAgE;CACpE,MAAM,EAAE,MAAM,iBAAiB;CAC/B,OAAO,WAAWC,SAAc,KAAK;AACvC"}
1
+ {"version":3,"file":"tanstack-start.mjs","names":["ts.isExpressionStatement","ts.isStringLiteral","globals","name","rule","ESLintUtils","ts","ts.isFunctionLike","ts.isIdentifier","ts.isObjectBindingPattern","ts.isArrayBindingPattern","ts.isBindingElement","ts.isParameter","ts.isJsxOpeningElement","ts.isJsxSelfClosingElement","ts.isCallExpression","ESLintUtils","ts","name","rule","name$1","rule$1","plugin","tanstackStart"],"sources":["../../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_ae9aaf3310b3955a25fa9b24bb5cb06b/node_modules/@tanstack/eslint-plugin-start/dist/esm/utils/get-docs-url.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_ae9aaf3310b3955a25fa9b24bb5cb06b/node_modules/@tanstack/eslint-plugin-start/dist/esm/shared/use-client-resolver.js","../../../node_modules/.pnpm/globals@16.4.0/node_modules/globals/globals.json","../../../node_modules/.pnpm/globals@16.4.0/node_modules/globals/index.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_ae9aaf3310b3955a25fa9b24bb5cb06b/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-client-code-in-server-component/constants.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_ae9aaf3310b3955a25fa9b24bb5cb06b/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-client-code-in-server-component/violation-detector.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_ae9aaf3310b3955a25fa9b24bb5cb06b/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-client-code-in-server-component/transitive-analyzer.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_ae9aaf3310b3955a25fa9b24bb5cb06b/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-client-code-in-server-component/no-client-code-in-server-component.rule.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_ae9aaf3310b3955a25fa9b24bb5cb06b/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-async-client-component/constants.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_ae9aaf3310b3955a25fa9b24bb5cb06b/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-async-client-component/render-graph-builder.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_ae9aaf3310b3955a25fa9b24bb5cb06b/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-async-client-component/context-analyzer.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_ae9aaf3310b3955a25fa9b24bb5cb06b/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-async-client-component/no-async-client-component.rule.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_ae9aaf3310b3955a25fa9b24bb5cb06b/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_ae9aaf3310b3955a25fa9b24bb5cb06b/node_modules/@tanstack/eslint-plugin-start/dist/esm/index.js","../src/app/tanstack-start.ts"],"sourcesContent":["//#region src/utils/get-docs-url.ts\nvar getDocsUrl = (ruleName) => `https://tanstack.com/start/latest/docs/eslint/${ruleName}`;\n//#endregion\nexport { getDocsUrl };\n\n//# sourceMappingURL=get-docs-url.js.map","import * as ts from \"typescript\";\n//#region src/shared/use-client-resolver.ts\n/**\n* Creates a resolver that checks for 'use client' directive in source files\n*/\nfunction createUseClientResolver(program) {\n\tfunction hasUseClientDirective(fileName) {\n\t\tconst sourceFile = program.getSourceFile(fileName);\n\t\tif (!sourceFile) return false;\n\t\tconst firstStmt = sourceFile.statements[0];\n\t\tif (!firstStmt) return false;\n\t\tif (ts.isExpressionStatement(firstStmt) && ts.isStringLiteral(firstStmt.expression)) return firstStmt.expression.text === \"use client\";\n\t\treturn false;\n\t}\n\treturn { hasUseClientDirective };\n}\n//#endregion\nexport { createUseClientResolver };\n\n//# sourceMappingURL=use-client-resolver.js.map","","'use strict';\nmodule.exports = require('./globals.json');\n","import globals from \"globals\";\n//#region src/rules/no-client-code-in-server-component/constants.ts\n/**\n* Hooks allowed in server components\n*/\nvar DEFAULT_ALLOWED_HOOKS = new Set([\"useId\"]);\n/**\n* Browser-only globals not available in server context\n* Dynamically computed from globals package: browser globals that are NOT in node\n*/\nvar BROWSER_ONLY_GLOBALS = (() => {\n\tconst browserGlobals = Object.keys(globals.browser);\n\tconst nodeGlobals = new Set(Object.keys(globals.node));\n\tconst browserOnly = /* @__PURE__ */ new Set();\n\tfor (const name of browserGlobals) if (!nodeGlobals.has(name)) browserOnly.add(name);\n\treturn browserOnly;\n})();\n/**\n* React event handler props - comprehensive list from React types\n*/\nvar REACT_EVENT_HANDLERS = new Set([\n\t\"onCopy\",\n\t\"onCopyCapture\",\n\t\"onCut\",\n\t\"onCutCapture\",\n\t\"onPaste\",\n\t\"onPasteCapture\",\n\t\"onCompositionEnd\",\n\t\"onCompositionEndCapture\",\n\t\"onCompositionStart\",\n\t\"onCompositionStartCapture\",\n\t\"onCompositionUpdate\",\n\t\"onCompositionUpdateCapture\",\n\t\"onFocus\",\n\t\"onFocusCapture\",\n\t\"onBlur\",\n\t\"onBlurCapture\",\n\t\"onChange\",\n\t\"onChangeCapture\",\n\t\"onBeforeInput\",\n\t\"onBeforeInputCapture\",\n\t\"onInput\",\n\t\"onInputCapture\",\n\t\"onReset\",\n\t\"onResetCapture\",\n\t\"onSubmit\",\n\t\"onSubmitCapture\",\n\t\"onInvalid\",\n\t\"onInvalidCapture\",\n\t\"onLoad\",\n\t\"onLoadCapture\",\n\t\"onError\",\n\t\"onErrorCapture\",\n\t\"onKeyDown\",\n\t\"onKeyDownCapture\",\n\t\"onKeyPress\",\n\t\"onKeyPressCapture\",\n\t\"onKeyUp\",\n\t\"onKeyUpCapture\",\n\t\"onAbort\",\n\t\"onAbortCapture\",\n\t\"onCanPlay\",\n\t\"onCanPlayCapture\",\n\t\"onCanPlayThrough\",\n\t\"onCanPlayThroughCapture\",\n\t\"onDurationChange\",\n\t\"onDurationChangeCapture\",\n\t\"onEmptied\",\n\t\"onEmptiedCapture\",\n\t\"onEncrypted\",\n\t\"onEncryptedCapture\",\n\t\"onEnded\",\n\t\"onEndedCapture\",\n\t\"onLoadedData\",\n\t\"onLoadedDataCapture\",\n\t\"onLoadedMetadata\",\n\t\"onLoadedMetadataCapture\",\n\t\"onLoadStart\",\n\t\"onLoadStartCapture\",\n\t\"onPause\",\n\t\"onPauseCapture\",\n\t\"onPlay\",\n\t\"onPlayCapture\",\n\t\"onPlaying\",\n\t\"onPlayingCapture\",\n\t\"onProgress\",\n\t\"onProgressCapture\",\n\t\"onRateChange\",\n\t\"onRateChangeCapture\",\n\t\"onResize\",\n\t\"onResizeCapture\",\n\t\"onSeeked\",\n\t\"onSeekedCapture\",\n\t\"onSeeking\",\n\t\"onSeekingCapture\",\n\t\"onStalled\",\n\t\"onStalledCapture\",\n\t\"onSuspend\",\n\t\"onSuspendCapture\",\n\t\"onTimeUpdate\",\n\t\"onTimeUpdateCapture\",\n\t\"onVolumeChange\",\n\t\"onVolumeChangeCapture\",\n\t\"onWaiting\",\n\t\"onWaitingCapture\",\n\t\"onAuxClick\",\n\t\"onAuxClickCapture\",\n\t\"onClick\",\n\t\"onClickCapture\",\n\t\"onContextMenu\",\n\t\"onContextMenuCapture\",\n\t\"onDoubleClick\",\n\t\"onDoubleClickCapture\",\n\t\"onDrag\",\n\t\"onDragCapture\",\n\t\"onDragEnd\",\n\t\"onDragEndCapture\",\n\t\"onDragEnter\",\n\t\"onDragEnterCapture\",\n\t\"onDragExit\",\n\t\"onDragExitCapture\",\n\t\"onDragLeave\",\n\t\"onDragLeaveCapture\",\n\t\"onDragOver\",\n\t\"onDragOverCapture\",\n\t\"onDragStart\",\n\t\"onDragStartCapture\",\n\t\"onDrop\",\n\t\"onDropCapture\",\n\t\"onMouseDown\",\n\t\"onMouseDownCapture\",\n\t\"onMouseEnter\",\n\t\"onMouseLeave\",\n\t\"onMouseMove\",\n\t\"onMouseMoveCapture\",\n\t\"onMouseOut\",\n\t\"onMouseOutCapture\",\n\t\"onMouseOver\",\n\t\"onMouseOverCapture\",\n\t\"onMouseUp\",\n\t\"onMouseUpCapture\",\n\t\"onSelect\",\n\t\"onSelectCapture\",\n\t\"onTouchCancel\",\n\t\"onTouchCancelCapture\",\n\t\"onTouchEnd\",\n\t\"onTouchEndCapture\",\n\t\"onTouchMove\",\n\t\"onTouchMoveCapture\",\n\t\"onTouchStart\",\n\t\"onTouchStartCapture\",\n\t\"onPointerDown\",\n\t\"onPointerDownCapture\",\n\t\"onPointerMove\",\n\t\"onPointerMoveCapture\",\n\t\"onPointerUp\",\n\t\"onPointerUpCapture\",\n\t\"onPointerCancel\",\n\t\"onPointerCancelCapture\",\n\t\"onPointerEnter\",\n\t\"onPointerEnterCapture\",\n\t\"onPointerLeave\",\n\t\"onPointerLeaveCapture\",\n\t\"onPointerOver\",\n\t\"onPointerOverCapture\",\n\t\"onPointerOut\",\n\t\"onPointerOutCapture\",\n\t\"onGotPointerCapture\",\n\t\"onGotPointerCaptureCapture\",\n\t\"onLostPointerCapture\",\n\t\"onLostPointerCaptureCapture\",\n\t\"onScroll\",\n\t\"onScrollCapture\",\n\t\"onWheel\",\n\t\"onWheelCapture\",\n\t\"onAnimationStart\",\n\t\"onAnimationStartCapture\",\n\t\"onAnimationEnd\",\n\t\"onAnimationEndCapture\",\n\t\"onAnimationIteration\",\n\t\"onAnimationIterationCapture\",\n\t\"onTransitionEnd\",\n\t\"onTransitionEndCapture\"\n]);\n/**\n* Check if a prop name is a React event handler\n*/\nfunction isReactEventHandler(name) {\n\treturn REACT_EVENT_HANDLERS.has(name);\n}\n/**\n* Check if a hook name is client-only (not allowed in server components)\n*/\nfunction isClientOnlyHook(name, allowedHooks = DEFAULT_ALLOWED_HOOKS) {\n\tif (!/^use[A-Z]/.test(name)) return false;\n\tif (allowedHooks.has(name)) return false;\n\treturn true;\n}\n//#endregion\nexport { BROWSER_ONLY_GLOBALS, DEFAULT_ALLOWED_HOOKS, isClientOnlyHook, isReactEventHandler };\n\n//# sourceMappingURL=constants.js.map","import { BROWSER_ONLY_GLOBALS, DEFAULT_ALLOWED_HOOKS, isClientOnlyHook, isReactEventHandler } from \"./constants.js\";\n//#region src/rules/no-client-code-in-server-component/violation-detector.ts\n/**\n* Get line and column position for a node\n*/\nfunction getPosition(node, sourceFile) {\n\tconst { line, character } = sourceFile.getLineAndCharacterOfPosition(node.getStart());\n\treturn {\n\t\tline: line + 1,\n\t\tcolumn: character + 1\n\t};\n}\n/**\n* Creates a detector that finds client-only code violations in TypeScript AST\n*/\nfunction createViolationDetector(tsLib, options = {}) {\n\tconst allowedHooks = options.allowedHooks ?? DEFAULT_ALLOWED_HOOKS;\n\tconst checker = options.checker;\n\t/**\n\t* Check if a class declaration extends React.Component or React.PureComponent\n\t*/\n\tfunction isReactClassComponent(node) {\n\t\tif (!node.heritageClauses) return false;\n\t\tfor (const clause of node.heritageClauses) {\n\t\t\tif (clause.token !== tsLib.SyntaxKind.ExtendsKeyword) continue;\n\t\t\tfor (const type of clause.types) {\n\t\t\t\tconst expr = type.expression;\n\t\t\t\tif (tsLib.isPropertyAccessExpression(expr)) {\n\t\t\t\t\tconst propName = expr.name.text;\n\t\t\t\t\tif (propName === \"Component\" || propName === \"PureComponent\") {\n\t\t\t\t\t\tif (tsLib.isIdentifier(expr.expression)) {\n\t\t\t\t\t\t\tif (expr.expression.text === \"React\") return true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (tsLib.isIdentifier(expr)) {\n\t\t\t\t\tconst name = expr.text;\n\t\t\t\t\tif (name === \"Component\" || name === \"PureComponent\") return true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}\n\t/**\n\t* Shared visitor logic that collects violations into the provided array\n\t*/\n\tfunction visitNode(node, sourceFile, violations) {\n\t\tif (tsLib.isClassDeclaration(node) && isReactClassComponent(node)) {\n\t\t\tconst name = node.name?.text ?? \"ClassComponent\";\n\t\t\tviolations.push({\n\t\t\t\ttype: \"class-component\",\n\t\t\t\tname,\n\t\t\t\tnode,\n\t\t\t\tfileName: sourceFile.fileName,\n\t\t\t\t...getPosition(node, sourceFile)\n\t\t\t});\n\t\t}\n\t\tif (tsLib.isCallExpression(node)) {\n\t\t\tconst callee = node.expression;\n\t\t\tlet name = \"\";\n\t\t\tif (tsLib.isIdentifier(callee)) name = callee.text;\n\t\t\telse if (tsLib.isPropertyAccessExpression(callee)) name = callee.name.text;\n\t\t\tif (name && isClientOnlyHook(name, allowedHooks)) violations.push({\n\t\t\t\ttype: \"hook\",\n\t\t\t\tname,\n\t\t\t\tnode,\n\t\t\t\tfileName: sourceFile.fileName,\n\t\t\t\t...getPosition(node, sourceFile)\n\t\t\t});\n\t\t}\n\t\tif (tsLib.isIdentifier(node)) {\n\t\t\tconst name = node.text;\n\t\t\tif (BROWSER_ONLY_GLOBALS.has(name)) {\n\t\t\t\tconst parent = node.parent;\n\t\t\t\tif (tsLib.isPropertyAccessExpression(parent) && parent.name === node) {} else if (tsLib.isPropertyAssignment(parent) && parent.name === node) {} else if (tsLib.isTypeReferenceNode(parent) || tsLib.isInterfaceDeclaration(parent) || tsLib.isTypeAliasDeclaration(parent)) {} else if (tsLib.isParameter(parent) && parent.name === node || tsLib.isVariableDeclaration(parent) && parent.name === node) {} else if (tsLib.isImportSpecifier(parent) || tsLib.isImportClause(parent)) {} else if (checker) {\n\t\t\t\t\tconst symbol = checker.getSymbolAtLocation(node);\n\t\t\t\t\tif (symbol) {\n\t\t\t\t\t\tconst declarations = symbol.getDeclarations();\n\t\t\t\t\t\tif (declarations?.length) if (declarations.some((decl) => {\n\t\t\t\t\t\t\tconst fileName = decl.getSourceFile().fileName;\n\t\t\t\t\t\t\treturn !fileName.includes(\"/node_modules/\") && !fileName.includes(\"/typescript/lib/\");\n\t\t\t\t\t\t})) {} else violations.push({\n\t\t\t\t\t\t\ttype: \"browser-global\",\n\t\t\t\t\t\t\tname,\n\t\t\t\t\t\t\tnode,\n\t\t\t\t\t\t\tfileName: sourceFile.fileName,\n\t\t\t\t\t\t\t...getPosition(node, sourceFile)\n\t\t\t\t\t\t});\n\t\t\t\t\t\telse violations.push({\n\t\t\t\t\t\t\ttype: \"browser-global\",\n\t\t\t\t\t\t\tname,\n\t\t\t\t\t\t\tnode,\n\t\t\t\t\t\t\tfileName: sourceFile.fileName,\n\t\t\t\t\t\t\t...getPosition(node, sourceFile)\n\t\t\t\t\t\t});\n\t\t\t\t\t} else violations.push({\n\t\t\t\t\t\ttype: \"browser-global\",\n\t\t\t\t\t\tname,\n\t\t\t\t\t\tnode,\n\t\t\t\t\t\tfileName: sourceFile.fileName,\n\t\t\t\t\t\t...getPosition(node, sourceFile)\n\t\t\t\t\t});\n\t\t\t\t} else violations.push({\n\t\t\t\t\ttype: \"browser-global\",\n\t\t\t\t\tname,\n\t\t\t\t\tnode,\n\t\t\t\t\tfileName: sourceFile.fileName,\n\t\t\t\t\t...getPosition(node, sourceFile)\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t\tif (tsLib.isJsxAttribute(node)) {\n\t\t\tconst attrName = node.name;\n\t\t\tif (tsLib.isIdentifier(attrName)) {\n\t\t\t\tconst name = attrName.text;\n\t\t\t\tconst value = node.initializer;\n\t\t\t\tif (isReactEventHandler(name)) violations.push({\n\t\t\t\t\ttype: \"event-handler\",\n\t\t\t\t\tname,\n\t\t\t\t\tnode,\n\t\t\t\t\tfileName: sourceFile.fileName,\n\t\t\t\t\t...getPosition(node, sourceFile)\n\t\t\t\t});\n\t\t\t\telse if (name !== \"style\" && name !== \"className\" && name !== \"key\" && name !== \"ref\" && name !== \"dangerouslySetInnerHTML\" && value && tsLib.isJsxExpression(value) && value.expression) {\n\t\t\t\t\tconst expr = value.expression;\n\t\t\t\t\tif (tsLib.isArrowFunction(expr) || tsLib.isFunctionExpression(expr)) violations.push({\n\t\t\t\t\t\ttype: \"function-prop\",\n\t\t\t\t\t\tname,\n\t\t\t\t\t\tnode,\n\t\t\t\t\t\tfileName: sourceFile.fileName,\n\t\t\t\t\t\t...getPosition(node, sourceFile)\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ttsLib.forEachChild(node, (child) => visitNode(child, sourceFile, violations));\n\t}\n\tfunction detectViolations(sourceFile) {\n\t\tconst violations = [];\n\t\ttsLib.forEachChild(sourceFile, (child) => visitNode(child, sourceFile, violations));\n\t\treturn violations;\n\t}\n\tfunction detectViolationsInNode(node, sourceFile) {\n\t\tconst violations = [];\n\t\tvisitNode(node, sourceFile, violations);\n\t\treturn violations;\n\t}\n\treturn {\n\t\tdetectViolations,\n\t\tdetectViolationsInNode\n\t};\n}\n//#endregion\nexport { createViolationDetector };\n\n//# sourceMappingURL=violation-detector.js.map","//#region src/rules/no-client-code-in-server-component/transitive-analyzer.ts\n/**\n* Creates an analyzer that follows reachable symbol references\n* to find transitive violations, stopping at 'use client' boundaries.\n*/\nfunction createTransitiveAnalyzer(tsLib, program, checker, useClientResolver, violationDetector) {\n\tconst visitedSymbols = /* @__PURE__ */ new Set();\n\tconst analysisCache = /* @__PURE__ */ new Map();\n\tfunction symbolKey(symbol) {\n\t\treturn `${(symbol.getDeclarations()?.[0])?.getSourceFile().fileName ?? \"unknown\"}::${symbol.getName()}`;\n\t}\n\tfunction analyzeEntrySymbol(entrySymbol) {\n\t\tvisitedSymbols.clear();\n\t\tconst cached = analysisCache.get(symbolKey(entrySymbol));\n\t\tif (cached) return cached;\n\t\tconst violations = [];\n\t\tfunction visitSymbol(symbol, chain) {\n\t\t\tconst key = symbolKey(symbol);\n\t\t\tif (visitedSymbols.has(key)) return false;\n\t\t\tvisitedSymbols.add(key);\n\t\t\tconst decl = symbol.getDeclarations()?.[0];\n\t\t\tif (!decl) return false;\n\t\t\tconst sourceFile = decl.getSourceFile();\n\t\t\tconst fileName = sourceFile.fileName;\n\t\t\tif (fileName.includes(\"/node_modules/\") || fileName.endsWith(\".d.ts\")) return false;\n\t\t\tif (useClientResolver.hasUseClientDirective(fileName)) return true;\n\t\t\tconst traversalRoots = getTraversalRoots(decl);\n\t\t\tfor (const root of traversalRoots) {\n\t\t\t\tconst rootViolations = violationDetector.detectViolationsInNode(root, sourceFile);\n\t\t\t\tfor (const v of rootViolations) violations.push({\n\t\t\t\t\t...v,\n\t\t\t\t\tchain: [...chain]\n\t\t\t\t});\n\t\t\t}\n\t\t\tfor (const root of traversalRoots) {\n\t\t\t\tconst identifiers = collectReachableIdentifiers(root, decl);\n\t\t\t\tfor (const ident of identifiers) {\n\t\t\t\t\tconst refSym = checker.getSymbolAtLocation(ident);\n\t\t\t\t\tif (!refSym) continue;\n\t\t\t\t\tconst aliased = tsLib.SymbolFlags.Alias & refSym.flags ? checker.getAliasedSymbol(refSym) : refSym;\n\t\t\t\t\tconst refFile = (aliased.getDeclarations()?.[0])?.getSourceFile().fileName;\n\t\t\t\t\tif (!refFile) continue;\n\t\t\t\t\tif (refFile.includes(\"/node_modules/\") || refFile.endsWith(\".d.ts\")) continue;\n\t\t\t\t\tconst edge = {\n\t\t\t\t\t\tfromFile: fileName,\n\t\t\t\t\t\ttoFile: refFile,\n\t\t\t\t\t\tviaSymbol: aliased.getName()\n\t\t\t\t\t};\n\t\t\t\t\tvisitSymbol(aliased, [...chain, edge]);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\t/**\n\t\t* Get traversal roots based on declaration kind\n\t\t*/\n\t\tfunction getTraversalRoots(decl) {\n\t\t\tif (tsLib.isFunctionDeclaration(decl) && decl.body) return [decl.body];\n\t\t\tif (tsLib.isFunctionExpression(decl)) return [decl.body];\n\t\t\tif (tsLib.isArrowFunction(decl)) return [decl.body];\n\t\t\tif (tsLib.isVariableDeclaration(decl) && decl.initializer) {\n\t\t\t\tif (tsLib.isFunctionExpression(decl.initializer) || tsLib.isArrowFunction(decl.initializer)) return [decl.initializer.body];\n\t\t\t\treturn [decl.initializer];\n\t\t\t}\n\t\t\tif (tsLib.isClassDeclaration(decl) || tsLib.isClassExpression(decl)) {\n\t\t\t\tconst roots = [];\n\t\t\t\tfor (const member of decl.members) {\n\t\t\t\t\tif (tsLib.isMethodDeclaration(member) && member.body) roots.push(member.body);\n\t\t\t\t\tif (tsLib.isPropertyDeclaration(member) && member.initializer) roots.push(member.initializer);\n\t\t\t\t}\n\t\t\t\treturn roots;\n\t\t\t}\n\t\t\treturn [decl];\n\t\t}\n\t\t/**\n\t\t* Collect identifier nodes from a traversal root, skipping:\n\t\t* - The defining identifier for the symbol (avoid self-loop)\n\t\t* - Type-only positions\n\t\t* - Property names when not computed\n\t\t*/\n\t\tfunction collectReachableIdentifiers(root, originalDecl) {\n\t\t\tconst identifiers = [];\n\t\t\tlet declName;\n\t\t\tif (\"name\" in originalDecl && originalDecl.name) {\n\t\t\t\tconst nameNode = originalDecl.name;\n\t\t\t\tif (tsLib.isIdentifier(nameNode)) declName = nameNode.text;\n\t\t\t}\n\t\t\tfunction visit(node) {\n\t\t\t\tif (tsLib.isTypeReferenceNode(node) || tsLib.isInterfaceDeclaration(node) || tsLib.isTypeAliasDeclaration(node) || tsLib.isTypeQueryNode(node) || tsLib.isTypeParameterDeclaration(node)) return;\n\t\t\t\tif (tsLib.isIdentifier(node)) {\n\t\t\t\t\tif (node.text === declName) return;\n\t\t\t\t\tconst parent = node.parent;\n\t\t\t\t\tif (tsLib.isPropertyAccessExpression(parent) && parent.name === node) return;\n\t\t\t\t\tif (tsLib.isPropertyAssignment(parent) && parent.name === node) return;\n\t\t\t\t\tif (tsLib.isParameter(parent) && parent.name === node || tsLib.isVariableDeclaration(parent) && parent.name === node) return;\n\t\t\t\t\tidentifiers.push(node);\n\t\t\t\t}\n\t\t\t\ttsLib.forEachChild(node, visit);\n\t\t\t}\n\t\t\tvisit(root);\n\t\t\treturn identifiers;\n\t\t}\n\t\tconst result = {\n\t\t\tisClientBoundary: visitSymbol(entrySymbol, []),\n\t\t\tviolations\n\t\t};\n\t\tanalysisCache.set(symbolKey(entrySymbol), result);\n\t\treturn result;\n\t}\n\treturn { analyzeEntrySymbol };\n}\n//#endregion\nexport { createTransitiveAnalyzer };\n\n//# sourceMappingURL=transitive-analyzer.js.map","import { getDocsUrl } from \"../../utils/get-docs-url.js\";\nimport { createUseClientResolver } from \"../../shared/use-client-resolver.js\";\nimport { DEFAULT_ALLOWED_HOOKS } from \"./constants.js\";\nimport { createViolationDetector } from \"./violation-detector.js\";\nimport { createTransitiveAnalyzer } from \"./transitive-analyzer.js\";\nimport path from \"node:path\";\nimport { ESLintUtils } from \"@typescript-eslint/utils\";\nimport * as ts from \"typescript\";\n//#region src/rules/no-client-code-in-server-component/no-client-code-in-server-component.rule.ts\nvar name = \"no-client-code-in-server-component\";\nvar TRIGGER_HINT = \"Triggered by rendering \\\"{{entry}}\\\".\";\nvar rule = ESLintUtils.RuleCreator(getDocsUrl)({\n\tname,\n\tmeta: {\n\t\ttype: \"problem\",\n\t\tdocs: {\n\t\t\tdescription: \"Disallow client-only code inside server components\",\n\t\t\trecommended: \"error\"\n\t\t},\n\t\tschema: [{\n\t\t\ttype: \"object\",\n\t\t\tproperties: { allowedServerHooks: {\n\t\t\t\ttype: \"array\",\n\t\t\t\titems: { type: \"string\" },\n\t\t\t\tdescription: \"Additional hooks that are allowed in server components (e.g., custom server-safe hooks)\"\n\t\t\t} },\n\t\t\tadditionalProperties: false\n\t\t}],\n\t\tmessages: {\n\t\t\thookInServerComponent: \"\\\"{{name}}\\\" hook {{location}} cannot be used in server components. \" + TRIGGER_HINT + \" To use client functionality, either: (1) pass the client component as a prop/slot to the server component, or (2) move this code to a separate file and add \\\"use client\\\" directive.\",\n\t\t\tbrowserGlobalInServerComponent: \"\\\"{{name}}\\\" browser API {{location}} is not available in server components. \" + TRIGGER_HINT + \" To use client functionality, either: (1) pass the client component as a prop/slot to the server component, or (2) move this code to a separate file and add \\\"use client\\\" directive.\",\n\t\t\teventHandlerInServerComponent: \"\\\"{{name}}\\\" event handler {{location}} cannot be used in server components. \" + TRIGGER_HINT + \" To use client functionality, either: (1) pass the client component as a prop/slot to the server component, or (2) move this code to a separate file and add \\\"use client\\\" directive.\",\n\t\t\tfunctionPropInServerComponent: \"\\\"{{name}}\\\" function prop {{location}} cannot be passed in server components. Functions cannot be serialized from server to client. \" + TRIGGER_HINT + \" To use client functionality, either: (1) pass the client component as a prop/slot to the server component, or (2) move this code to a separate file and add \\\"use client\\\" directive.\",\n\t\t\tclassComponentInServerComponent: \"\\\"{{name}}\\\" class component {{location}} cannot be used in server components. Class components require client-side lifecycle methods. \" + TRIGGER_HINT + \" To use client functionality, either: (1) pass the client component as a prop/slot to the server component, or (2) move this code to a separate file and add \\\"use client\\\" directive.\"\n\t\t}\n\t},\n\tdefaultOptions: [{ allowedServerHooks: [] }],\n\tcreate(context, [options]) {\n\t\tconst services = ESLintUtils.getParserServices(context);\n\t\tconst program = services.program;\n\t\tconst checker = program.getTypeChecker();\n\t\tconst allowedHooks = new Set([...DEFAULT_ALLOWED_HOOKS, ...options.allowedServerHooks]);\n\t\tconst useClientResolver = createUseClientResolver(program);\n\t\tconst violationDetector = createViolationDetector(ts, {\n\t\t\tallowedHooks,\n\t\t\tchecker\n\t\t});\n\t\tconst transitiveAnalyzer = createTransitiveAnalyzer(ts, program, checker, useClientResolver, violationDetector);\n\t\treturn { CallExpression(node) {\n\t\t\tconst sourceFile = services.esTreeNodeToTSNodeMap.get(node).getSourceFile();\n\t\t\tif (useClientResolver.hasUseClientDirective(sourceFile.fileName)) return;\n\t\t\tconst rootKind = getServerRootKind(node);\n\t\t\tif (!rootKind) return;\n\t\t\tif (rootKind === \"createCompositeComponent\") {\n\t\t\t\tconst callback = node.arguments[0];\n\t\t\t\tif (!callback) return;\n\t\t\t\tconst tsNode = services.esTreeNodeToTSNodeMap.get(callback);\n\t\t\t\tif (ts.isFunctionLike(tsNode)) analyzeServerComponentCallback(tsNode, node, rootKind);\n\t\t\t\telse if (ts.isIdentifier(tsNode)) analyzeDirectComponentReference(tsNode, node, rootKind);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst element = node.arguments[0];\n\t\t\tif (!element) return;\n\t\t\tanalyzeServerComponentNode(services.esTreeNodeToTSNodeMap.get(element), node, rootKind);\n\t\t} };\n\t\tfunction getServerRootKind(node) {\n\t\t\tif (node.callee.type === \"Identifier\") {\n\t\t\t\tif (node.callee.name === \"createCompositeComponent\") return \"createCompositeComponent\";\n\t\t\t\tif (node.callee.name === \"renderServerComponent\") return \"renderServerComponent\";\n\t\t\t}\n\t\t\tif (node.callee.type === \"MemberExpression\" && node.callee.property.type === \"Identifier\") {\n\t\t\t\tif (node.callee.property.name === \"createCompositeComponent\") return \"createCompositeComponent\";\n\t\t\t\tif (node.callee.property.name === \"renderServerComponent\") return \"renderServerComponent\";\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t\tfunction analyzeServerComponentNode(node, eslintNode, rootKind) {\n\t\t\tconst reportedViolations = /* @__PURE__ */ new Set();\n\t\t\tconst sourceFile = node.getSourceFile();\n\t\t\tconst directViolations = violationDetector.detectViolations(sourceFile);\n\t\t\tconst start = node.getStart();\n\t\t\tconst end = node.getEnd();\n\t\t\tfor (const violation of directViolations) {\n\t\t\t\tconst violationPos = violation.node.getStart();\n\t\t\t\tif (violationPos >= start && violationPos <= end) {\n\t\t\t\t\tconst key = `${violation.fileName}:${violation.line}:${violation.name}`;\n\t\t\t\t\tif (!reportedViolations.has(key)) {\n\t\t\t\t\t\treportedViolations.add(key);\n\t\t\t\t\t\treportViolation(violation, [], rootKind, eslintNode);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tconst componentRefs = findComponentReferences(node);\n\t\t\tfor (const ref of componentRefs) {\n\t\t\t\tconst symbol = checker.getSymbolAtLocation(ref);\n\t\t\t\tif (!symbol) continue;\n\t\t\t\tconst resolvedSymbol = ts.SymbolFlags.Alias & symbol.flags ? checker.getAliasedSymbol(symbol) : symbol;\n\t\t\t\tconst result = transitiveAnalyzer.analyzeEntrySymbol(resolvedSymbol);\n\t\t\t\tif (result.isClientBoundary) continue;\n\t\t\t\tfor (const violation of result.violations) {\n\t\t\t\t\tconst key = `${violation.fileName}:${violation.line}:${violation.name}`;\n\t\t\t\t\tif (!reportedViolations.has(key)) {\n\t\t\t\t\t\treportedViolations.add(key);\n\t\t\t\t\t\treportViolation(violation, violation.chain, rootKind, eslintNode);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfunction analyzeServerComponentCallback(callback, eslintNode, rootKind) {\n\t\t\tconst reportedViolations = /* @__PURE__ */ new Set();\n\t\t\tconst parameterNames = /* @__PURE__ */ new Set();\n\t\t\tfor (const param of callback.parameters) collectParameterBindings(param.name, parameterNames);\n\t\t\tconst body = callback.body;\n\t\t\tif (body) {\n\t\t\t\tconst sourceFile = callback.getSourceFile();\n\t\t\t\tconst directViolations = violationDetector.detectViolations(sourceFile);\n\t\t\t\tconst callbackStart = body.getStart();\n\t\t\t\tconst callbackEnd = body.getEnd();\n\t\t\t\tfor (const violation of directViolations) {\n\t\t\t\t\tconst violationPos = violation.node.getStart();\n\t\t\t\t\tif (violationPos >= callbackStart && violationPos <= callbackEnd) {\n\t\t\t\t\t\tconst key = `${violation.fileName}:${violation.line}:${violation.name}`;\n\t\t\t\t\t\tif (!reportedViolations.has(key)) {\n\t\t\t\t\t\t\treportedViolations.add(key);\n\t\t\t\t\t\t\treportViolation(violation, [], rootKind, eslintNode);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tconst componentRefs = findComponentReferences(callback);\n\t\t\tfor (const ref of componentRefs) {\n\t\t\t\tif (parameterNames.has(ref.text)) continue;\n\t\t\t\tconst symbol = checker.getSymbolAtLocation(ref);\n\t\t\t\tif (!symbol) continue;\n\t\t\t\tif (symbol.getDeclarations()?.some((d) => isWithinParameters(d, callback))) continue;\n\t\t\t\tconst resolvedSymbol = ts.SymbolFlags.Alias & symbol.flags ? checker.getAliasedSymbol(symbol) : symbol;\n\t\t\t\tconst result = transitiveAnalyzer.analyzeEntrySymbol(resolvedSymbol);\n\t\t\t\tif (result.isClientBoundary) continue;\n\t\t\t\tfor (const violation of result.violations) {\n\t\t\t\t\tconst key = `${violation.fileName}:${violation.line}:${violation.name}`;\n\t\t\t\t\tif (!reportedViolations.has(key)) {\n\t\t\t\t\t\treportedViolations.add(key);\n\t\t\t\t\t\treportViolation(violation, violation.chain, rootKind, eslintNode);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t/**\n\t\t* Analyze a component passed directly to createCompositeComponent(Component)\n\t\t*/\n\t\tfunction analyzeDirectComponentReference(ref, eslintNode, rootKind = \"createCompositeComponent\") {\n\t\t\tconst symbol = checker.getSymbolAtLocation(ref);\n\t\t\tif (!symbol) return;\n\t\t\tconst resolvedSymbol = ts.SymbolFlags.Alias & symbol.flags ? checker.getAliasedSymbol(symbol) : symbol;\n\t\t\tconst result = transitiveAnalyzer.analyzeEntrySymbol(resolvedSymbol);\n\t\t\tif (result.isClientBoundary) return;\n\t\t\tconst reportedViolations = /* @__PURE__ */ new Set();\n\t\t\tfor (const violation of result.violations) {\n\t\t\t\tconst key = `${violation.fileName}:${violation.line}:${violation.name}`;\n\t\t\t\tif (!reportedViolations.has(key)) {\n\t\t\t\t\treportedViolations.add(key);\n\t\t\t\t\treportViolation(violation, violation.chain, rootKind, eslintNode);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t/**\n\t\t* Collect all binding names from a parameter (handles destructuring)\n\t\t*/\n\t\tfunction collectParameterBindings(bindingName, names) {\n\t\t\tfunction collectFromBinding(node) {\n\t\t\t\tif (ts.isIdentifier(node)) names.add(node.text);\n\t\t\t\telse if (ts.isObjectBindingPattern(node)) for (const element of node.elements) collectFromBinding(element.name);\n\t\t\t\telse if (ts.isArrayBindingPattern(node)) {\n\t\t\t\t\tfor (const element of node.elements) if (ts.isBindingElement(element)) collectFromBinding(element.name);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcollectFromBinding(bindingName);\n\t\t}\n\t\t/**\n\t\t* Check if a declaration is within the parameters of the callback\n\t\t*/\n\t\tfunction isWithinParameters(decl, callback) {\n\t\t\tlet current = decl;\n\t\t\twhile (current) {\n\t\t\t\tif (ts.isParameter(current)) {\n\t\t\t\t\tconst paramParent = current.parent;\n\t\t\t\t\tif (ts.isFunctionLike(paramParent) && paramParent === callback) return true;\n\t\t\t\t}\n\t\t\t\tcurrent = current.parent;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\tfunction findComponentReferences(node) {\n\t\t\tconst refs = [];\n\t\t\tfunction visit(n) {\n\t\t\t\tif (ts.isJsxOpeningElement(n) || ts.isJsxSelfClosingElement(n)) {\n\t\t\t\t\tconst tagName = n.tagName;\n\t\t\t\t\tif (ts.isIdentifier(tagName) && /^[A-Z]/.test(tagName.text)) refs.push(tagName);\n\t\t\t\t}\n\t\t\t\tif (ts.isCallExpression(n)) {\n\t\t\t\t\tconst callee = n.expression;\n\t\t\t\t\tif (ts.isIdentifier(callee) && /^[A-Z]/.test(callee.text)) refs.push(callee);\n\t\t\t\t}\n\t\t\t\tts.forEachChild(n, visit);\n\t\t\t}\n\t\t\tvisit(node);\n\t\t\treturn refs;\n\t\t}\n\t\tfunction reportViolation(violation, chain, entryComponentName, eslintNode) {\n\t\t\tconst location = formatLocation(violation, chain);\n\t\t\tconst messageId = getMessageId(violation.type);\n\t\t\tcontext.report({\n\t\t\t\tnode: eslintNode,\n\t\t\t\tmessageId,\n\t\t\t\tdata: {\n\t\t\t\t\tname: violation.name,\n\t\t\t\t\tlocation,\n\t\t\t\t\tentry: entryComponentName,\n\t\t\t\t\tfileName: getRelativePath(violation.fileName)\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\tfunction getMessageId(type) {\n\t\t\tswitch (type) {\n\t\t\t\tcase \"hook\": return \"hookInServerComponent\";\n\t\t\t\tcase \"browser-global\": return \"browserGlobalInServerComponent\";\n\t\t\t\tcase \"event-handler\": return \"eventHandlerInServerComponent\";\n\t\t\t\tcase \"function-prop\": return \"functionPropInServerComponent\";\n\t\t\t\tcase \"class-component\": return \"classComponentInServerComponent\";\n\t\t\t}\n\t\t}\n\t\tfunction formatLocation(violation, chain) {\n\t\t\tif (chain.length > 0) return `(via ${chain.map((e) => getRelativePath(e.toFile)).join(\" -> \")}) at ${getRelativePath(violation.fileName)}:${violation.line}`;\n\t\t\treturn `at ${getRelativePath(violation.fileName)}:${violation.line}`;\n\t\t}\n\t\tfunction getRelativePath(fileName) {\n\t\t\tconst cwd = context.cwd;\n\t\t\treturn path.relative(cwd, fileName);\n\t\t}\n\t}\n});\n//#endregion\nexport { name, rule };\n\n//# sourceMappingURL=no-client-code-in-server-component.rule.js.map","//#region src/rules/no-async-client-component/constants.ts\n/**\n* Route option names that accept component references.\n* These make the referenced component a \"client root\".\n*/\nvar ROUTE_COMPONENT_OPTION_NAMES = [\n\t\"component\",\n\t\"pendingComponent\",\n\t\"errorComponent\",\n\t\"notFoundComponent\"\n];\n/**\n* Function names that create routes (client entry points).\n*/\nvar ROUTE_CREATOR_NAMES = [\n\t\"createFileRoute\",\n\t\"createRootRoute\",\n\t\"createRootRouteWithContext\"\n];\n/**\n* Function names that create server-component roots.\n*/\nvar SERVER_COMPONENT_ROOTS = [\"renderServerComponent\", \"createCompositeComponent\"];\n//#endregion\nexport { ROUTE_COMPONENT_OPTION_NAMES, ROUTE_CREATOR_NAMES, SERVER_COMPONENT_ROOTS };\n\n//# sourceMappingURL=constants.js.map","import { ROUTE_COMPONENT_OPTION_NAMES, ROUTE_CREATOR_NAMES, SERVER_COMPONENT_ROOTS } from \"./constants.js\";\n//#region src/rules/no-async-client-component/render-graph-builder.ts\n/**\n* Builds a render graph from the TypeScript program.\n* Indexes components, JSX edges, server roots, and client roots.\n*/\nfunction createRenderGraphBuilder(tsLib, program, checker) {\n\tconst graph = {\n\t\tcomponents: /* @__PURE__ */ new Map(),\n\t\tedges: [],\n\t\tserverRoots: /* @__PURE__ */ new Set(),\n\t\tclientRoots: /* @__PURE__ */ new Set(),\n\t\tuseClientFiles: /* @__PURE__ */ new Set(),\n\t\trouteOptionUsages: /* @__PURE__ */ new Map(),\n\t\trouteOptionRootsByFile: /* @__PURE__ */ new Map()\n\t};\n\treturn {\n\t\tbuild() {\n\t\t\tfor (const sourceFile of program.getSourceFiles()) {\n\t\t\t\tif (sourceFile.isDeclarationFile) continue;\n\t\t\t\tif (sourceFile.fileName.includes(\"node_modules\")) continue;\n\t\t\t\tif (!fileCanContribute(sourceFile)) continue;\n\t\t\t\tprocessSourceFile(sourceFile);\n\t\t\t}\n\t\t\treturn graph;\n\t\t},\n\t\tgetGraph() {\n\t\t\treturn graph;\n\t\t}\n\t};\n\t/**\n\t* Quick text-based check to skip files that can't contribute edges or roots.\n\t* A file can contribute if it might have:\n\t* - JSX (components, edges)\n\t* - 'use client' directive (client roots)\n\t* - createFileRoute/createRootRoute (route-option roots)\n\t* - renderServerComponent/createCompositeComponent (server roots)\n\t\n\t*/\n\tfunction fileCanContribute(sourceFile) {\n\t\tconst text = sourceFile.text;\n\t\tconst hasJsx = text.includes(\"<\") && (text.includes(\"/>\") || text.includes(\"</\"));\n\t\tconst hasUseClient = text.includes(\"use client\");\n\t\tconst hasRouteCreator = text.includes(\"createFileRoute\") || text.includes(\"createRootRoute\") || text.includes(\"createRootRouteWithContext\");\n\t\tconst hasServerComponentRoot = SERVER_COMPONENT_ROOTS.some((name) => text.includes(name));\n\t\treturn hasJsx || hasUseClient || hasRouteCreator || hasServerComponentRoot;\n\t}\n\tfunction processSourceFile(sourceFile) {\n\t\tif (hasUseClientDirective(sourceFile)) graph.useClientFiles.add(sourceFile.fileName);\n\t\tvisitNode(sourceFile, sourceFile, null);\n\t}\n\tfunction hasUseClientDirective(sourceFile) {\n\t\tconst firstStatement = sourceFile.statements[0];\n\t\tif (!firstStatement) return false;\n\t\tif (tsLib.isExpressionStatement(firstStatement) && tsLib.isStringLiteral(firstStatement.expression) && firstStatement.expression.text === \"use client\") return true;\n\t\treturn false;\n\t}\n\tfunction visitNode(node, sourceFile, currentComponent) {\n\t\tif (tsLib.isFunctionDeclaration(node) && node.name) {\n\t\t\tif (isPascalCase(node.name.text)) {\n\t\t\t\tconst key = makeKey(sourceFile.fileName, node.name.text);\n\t\t\t\tgraph.components.set(key, {\n\t\t\t\t\tname: node.name.text,\n\t\t\t\t\tfileName: sourceFile.fileName,\n\t\t\t\t\tnode,\n\t\t\t\t\tisAsync: hasAsyncModifier(node),\n\t\t\t\t\tline: getLine(sourceFile, node)\n\t\t\t\t});\n\t\t\t\tif (graph.useClientFiles.has(sourceFile.fileName)) graph.clientRoots.add(key);\n\t\t\t\tif (node.body) tsLib.forEachChild(node.body, (child) => visitNode(child, sourceFile, key));\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif (tsLib.isVariableStatement(node)) {\n\t\t\tfor (const decl of node.declarationList.declarations) if (tsLib.isIdentifier(decl.name) && isPascalCase(decl.name.text) && decl.initializer && isFunctionLike(decl.initializer)) {\n\t\t\t\tconst key = makeKey(sourceFile.fileName, decl.name.text);\n\t\t\t\tgraph.components.set(key, {\n\t\t\t\t\tname: decl.name.text,\n\t\t\t\t\tfileName: sourceFile.fileName,\n\t\t\t\t\tnode: decl,\n\t\t\t\t\tisAsync: isAsyncFunctionLike(decl.initializer),\n\t\t\t\t\tline: getLine(sourceFile, decl)\n\t\t\t\t});\n\t\t\t\tif (graph.useClientFiles.has(sourceFile.fileName)) graph.clientRoots.add(key);\n\t\t\t\tconst funcNode = decl.initializer;\n\t\t\t\ttsLib.forEachChild(funcNode.body, (child) => visitNode(child, sourceFile, key));\n\t\t\t} else if (decl.initializer) visitNode(decl.initializer, sourceFile, currentComponent);\n\t\t\treturn;\n\t\t}\n\t\tif (tsLib.isCallExpression(node)) {\n\t\t\tconst serverRootKind = getServerRootKind(node, checker);\n\t\t\tif (serverRootKind === \"createCompositeComponent\") {\n\t\t\t\tconst callback = node.arguments[0];\n\t\t\t\tif (callback && isFunctionLike(callback)) collectJsxComponentRefs(callback, sourceFile, currentComponent, true);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (serverRootKind === \"renderServerComponent\") {\n\t\t\t\tconst element = node.arguments[0];\n\t\t\t\tif (element) collectJsxComponentRefs(element, sourceFile, currentComponent, true);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif (tsLib.isCallExpression(node)) {\n\t\t\tconst routeOptions = getRouteOptionsObject(node);\n\t\t\tif (routeOptions) {\n\t\t\t\tfor (const prop of routeOptions.properties) if (tsLib.isPropertyAssignment(prop) && tsLib.isIdentifier(prop.name) && ROUTE_COMPONENT_OPTION_NAMES.includes(prop.name.text)) markAsClientRoot(prop.initializer, sourceFile, currentComponent, prop);\n\t\t\t}\n\t\t}\n\t\tif (tsLib.isJsxOpeningElement(node) || tsLib.isJsxSelfClosingElement(node)) {\n\t\t\tconst tagName = node.tagName;\n\t\t\tif (tsLib.isIdentifier(tagName) && isPascalCase(tagName.text)) {\n\t\t\t\tconst symbol = checker.getSymbolAtLocation(tagName);\n\t\t\t\tif (symbol) {\n\t\t\t\t\tconst resolved = resolveSymbol(symbol);\n\t\t\t\t\tif (resolved) {\n\t\t\t\t\t\tconst decls = resolved.getDeclarations();\n\t\t\t\t\t\tif (decls && decls.length > 0) {\n\t\t\t\t\t\t\tconst declFile = decls[0].getSourceFile().fileName;\n\t\t\t\t\t\t\tconst toKey = makeKey(declFile, tagName.text);\n\t\t\t\t\t\t\tif (currentComponent) graph.edges.push({\n\t\t\t\t\t\t\t\tfromFile: sourceFile.fileName,\n\t\t\t\t\t\t\t\tfromComponent: currentComponent.split(\":\")[1],\n\t\t\t\t\t\t\t\ttoFile: declFile,\n\t\t\t\t\t\t\t\ttoComponent: tagName.text,\n\t\t\t\t\t\t\t\ttoComponentKey: toKey,\n\t\t\t\t\t\t\t\tjsxNode: node,\n\t\t\t\t\t\t\t\tjsxLine: getLine(sourceFile, node)\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ttsLib.forEachChild(node, (child) => visitNode(child, sourceFile, currentComponent));\n\t}\n\tfunction getServerRootKind(node, _checker) {\n\t\tif (tsLib.isIdentifier(node.expression)) {\n\t\t\tconst name = node.expression.text;\n\t\t\treturn SERVER_COMPONENT_ROOTS.includes(name) ? name : null;\n\t\t}\n\t\tif (tsLib.isPropertyAccessExpression(node.expression) && tsLib.isIdentifier(node.expression.name)) {\n\t\t\tconst name = node.expression.name.text;\n\t\t\treturn SERVER_COMPONENT_ROOTS.includes(name) ? name : null;\n\t\t}\n\t\treturn null;\n\t}\n\tfunction getRouteOptionsObject(node) {\n\t\tconst optionsArg = node.arguments[0];\n\t\tif (!optionsArg || !tsLib.isObjectLiteralExpression(optionsArg)) return;\n\t\tconst routeCreator = findRouteCreatorFromCallee(node.expression);\n\t\tif (!routeCreator) return;\n\t\tconst routeCreatorName = tsLib.isIdentifier(routeCreator) ? routeCreator.text : routeCreator.name.text;\n\t\tif (ROUTE_CREATOR_NAMES.includes(routeCreatorName)) return optionsArg;\n\t}\n\tfunction findRouteCreatorFromCallee(expr) {\n\t\tif (tsLib.isParenthesizedExpression(expr)) return findRouteCreatorFromCallee(expr.expression);\n\t\tif (tsLib.isCallExpression(expr)) return findRouteCreatorFromCallee(expr.expression);\n\t\tif (tsLib.isPropertyAccessExpression(expr)) {\n\t\t\tif (tsLib.isIdentifier(expr.name)) {\n\t\t\t\tif (ROUTE_CREATOR_NAMES.includes(expr.name.text)) return expr;\n\t\t\t}\n\t\t\treturn findRouteCreatorFromCallee(expr.expression);\n\t\t}\n\t\tif (tsLib.isIdentifier(expr)) return expr;\n\t}\n\tfunction markAsClientRoot(node, sourceFile, _currentComponent, usageNode) {\n\t\tif (tsLib.isIdentifier(node)) {\n\t\t\tconst componentName = node.text;\n\t\t\tconst symbol = checker.getSymbolAtLocation(node);\n\t\t\tif (symbol) {\n\t\t\t\tconst resolved = resolveSymbol(symbol);\n\t\t\t\tif (resolved) {\n\t\t\t\t\tconst decls = resolved.getDeclarations();\n\t\t\t\t\tif (decls && decls.length > 0) {\n\t\t\t\t\t\tconst declFile = decls[0].getSourceFile().fileName;\n\t\t\t\t\t\tconst key = makeKey(declFile, componentName);\n\t\t\t\t\t\tgraph.clientRoots.add(key);\n\t\t\t\t\t\tif (usageNode) {\n\t\t\t\t\t\t\tgraph.routeOptionUsages.set(key, {\n\t\t\t\t\t\t\t\tcomponentKey: key,\n\t\t\t\t\t\t\t\tusageNode,\n\t\t\t\t\t\t\t\tusageLine: getLine(sourceFile, usageNode),\n\t\t\t\t\t\t\t\tfileName: sourceFile.fileName\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\taddToRouteOptionRootsByFile(sourceFile.fileName, key);\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tconst fallbackKey = makeKey(sourceFile.fileName, componentName);\n\t\t\tgraph.clientRoots.add(fallbackKey);\n\t\t\tif (usageNode) {\n\t\t\t\tgraph.routeOptionUsages.set(fallbackKey, {\n\t\t\t\t\tcomponentKey: fallbackKey,\n\t\t\t\t\tusageNode,\n\t\t\t\t\tusageLine: getLine(sourceFile, usageNode),\n\t\t\t\t\tfileName: sourceFile.fileName\n\t\t\t\t});\n\t\t\t\taddToRouteOptionRootsByFile(sourceFile.fileName, fallbackKey);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif (isFunctionLike(node)) collectJsxComponentRefs(node, sourceFile, null, false, usageNode);\n\t}\n\tfunction collectJsxComponentRefs(node, sourceFile, _currentComponent, isServerContext, usageNode) {\n\t\tfunction walk(n) {\n\t\t\tif (tsLib.isJsxOpeningElement(n) || tsLib.isJsxSelfClosingElement(n)) {\n\t\t\t\tconst tagName = n.tagName;\n\t\t\t\tif (tsLib.isIdentifier(tagName) && isPascalCase(tagName.text)) {\n\t\t\t\t\tconst symbol = checker.getSymbolAtLocation(tagName);\n\t\t\t\t\tif (symbol) {\n\t\t\t\t\t\tconst resolved = resolveSymbol(symbol);\n\t\t\t\t\t\tif (resolved) {\n\t\t\t\t\t\t\tconst decls = resolved.getDeclarations();\n\t\t\t\t\t\t\tif (decls && decls.length > 0) {\n\t\t\t\t\t\t\t\tconst declFile = decls[0].getSourceFile().fileName;\n\t\t\t\t\t\t\t\tconst key = makeKey(declFile, tagName.text);\n\t\t\t\t\t\t\t\tif (isServerContext) graph.serverRoots.add(key);\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tgraph.clientRoots.add(key);\n\t\t\t\t\t\t\t\t\tconst effectiveUsageNode = usageNode ?? n;\n\t\t\t\t\t\t\t\t\tgraph.routeOptionUsages.set(key, {\n\t\t\t\t\t\t\t\t\t\tcomponentKey: key,\n\t\t\t\t\t\t\t\t\t\tusageNode: effectiveUsageNode,\n\t\t\t\t\t\t\t\t\t\tusageLine: getLine(sourceFile, effectiveUsageNode),\n\t\t\t\t\t\t\t\t\t\tfileName: sourceFile.fileName\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\taddToRouteOptionRootsByFile(sourceFile.fileName, key);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ttsLib.forEachChild(n, walk);\n\t\t}\n\t\twalk(node);\n\t}\n\tfunction resolveSymbol(symbol) {\n\t\tif (symbol.flags & tsLib.SymbolFlags.Alias) return checker.getAliasedSymbol(symbol);\n\t\treturn symbol;\n\t}\n\tfunction isPascalCase(name) {\n\t\treturn /^[A-Z]/.test(name);\n\t}\n\tfunction hasAsyncModifier(node) {\n\t\treturn node.modifiers?.some((mod) => mod.kind === tsLib.SyntaxKind.AsyncKeyword) ?? false;\n\t}\n\tfunction isFunctionLike(node) {\n\t\treturn tsLib.isArrowFunction(node) || tsLib.isFunctionExpression(node) || tsLib.isFunctionDeclaration(node);\n\t}\n\tfunction isAsyncFunctionLike(node) {\n\t\tif (tsLib.isArrowFunction(node) || tsLib.isFunctionExpression(node)) return hasAsyncModifier(node);\n\t\treturn false;\n\t}\n\tfunction makeKey(fileName, componentName) {\n\t\treturn `${fileName}:${componentName}`;\n\t}\n\tfunction getLine(sourceFile, node) {\n\t\treturn sourceFile.getLineAndCharacterOfPosition(node.getStart()).line + 1;\n\t}\n\tfunction addToRouteOptionRootsByFile(fileName, key) {\n\t\tlet set = graph.routeOptionRootsByFile.get(fileName);\n\t\tif (!set) {\n\t\t\tset = /* @__PURE__ */ new Set();\n\t\t\tgraph.routeOptionRootsByFile.set(fileName, set);\n\t\t}\n\t\tset.add(key);\n\t}\n}\n//#endregion\nexport { createRenderGraphBuilder };\n\n//# sourceMappingURL=render-graph-builder.js.map","//#region src/rules/no-async-client-component/context-analyzer.ts\n/**\n* Analyzes the render graph to propagate server/client context.\n*\n* Algorithm:\n* 1. Mark server roots as server context, propagate to descendants\n* 2. Stop propagation at 'use client' boundaries\n* 3. Mark client roots as client context, propagate to descendants\n* 4. Components reachable from both => client wins (tainted)\n\n*/\nfunction analyzeContext(graph) {\n\tconst contexts = /* @__PURE__ */ new Map();\n\tfor (const [key, component] of graph.components) contexts.set(key, {\n\t\tkey,\n\t\tcomponent,\n\t\tisServerContext: false,\n\t\tisClientContext: false\n\t});\n\tconst adjacency = buildAdjacencyList(graph.edges);\n\tconst serverVisited = /* @__PURE__ */ new Set();\n\tfor (const serverRoot of graph.serverRoots) propagateServerContext(serverRoot, serverVisited, graph, contexts, adjacency);\n\tconst clientVisited = /* @__PURE__ */ new Set();\n\tfor (const clientRoot of graph.clientRoots) {\n\t\tconst ctx = contexts.get(clientRoot);\n\t\tif (!ctx) continue;\n\t\tlet reason;\n\t\tif (graph.useClientFiles.has(ctx.component.fileName)) reason = {\n\t\t\ttype: \"use-client\",\n\t\t\tfileName: ctx.component.fileName\n\t\t};\n\t\telse {\n\t\t\tconst routeUsage = graph.routeOptionUsages.get(clientRoot);\n\t\t\treason = {\n\t\t\t\ttype: \"route-option\",\n\t\t\t\tfileName: ctx.component.fileName,\n\t\t\t\tusageFile: routeUsage?.fileName,\n\t\t\t\tusageNode: routeUsage?.usageNode,\n\t\t\t\tusageLine: routeUsage?.usageLine\n\t\t\t};\n\t\t}\n\t\tpropagateClientContext(clientRoot, clientVisited, contexts, adjacency, reason);\n\t}\n\tfor (const [_key, ctx] of contexts) if (graph.useClientFiles.has(ctx.component.fileName) && !ctx.isClientContext) {\n\t\tctx.isClientContext = true;\n\t\tctx.clientReason = {\n\t\t\ttype: \"use-client\",\n\t\t\tfileName: ctx.component.fileName\n\t\t};\n\t}\n\tconst clientEdges = [];\n\tfor (const edge of graph.edges) {\n\t\tconst fromKey = `${edge.fromFile}:${edge.fromComponent}`;\n\t\tif (contexts.get(fromKey)?.isClientContext) clientEdges.push(edge);\n\t}\n\treturn {\n\t\tcontexts,\n\t\tclientEdges\n\t};\n}\nfunction buildAdjacencyList(edges) {\n\tconst adj = /* @__PURE__ */ new Map();\n\tfor (const edge of edges) {\n\t\tconst fromKey = `${edge.fromFile}:${edge.fromComponent}`;\n\t\tif (!adj.has(fromKey)) adj.set(fromKey, []);\n\t\tadj.get(fromKey).push(edge);\n\t}\n\treturn adj;\n}\nfunction propagateServerContext(key, visited, graph, contexts, adjacency) {\n\tif (visited.has(key)) return;\n\tvisited.add(key);\n\tconst ctx = contexts.get(key);\n\tif (!ctx) return;\n\tif (graph.useClientFiles.has(ctx.component.fileName)) {\n\t\tctx.isClientContext = true;\n\t\tctx.clientReason = {\n\t\t\ttype: \"use-client\",\n\t\t\tfileName: ctx.component.fileName\n\t\t};\n\t\treturn;\n\t}\n\tctx.isServerContext = true;\n\tconst edges = adjacency.get(key) ?? [];\n\tfor (const edge of edges) propagateServerContext(edge.toComponentKey, visited, graph, contexts, adjacency);\n}\nfunction propagateClientContext(key, visited, contexts, adjacency, reason) {\n\tif (visited.has(key)) return;\n\tvisited.add(key);\n\tconst ctx = contexts.get(key);\n\tif (!ctx) return;\n\tctx.isClientContext = true;\n\tif (!ctx.clientReason) ctx.clientReason = reason;\n\tconst edges = adjacency.get(key) ?? [];\n\tfor (const edge of edges) propagateClientContext(edge.toComponentKey, visited, contexts, adjacency, {\n\t\ttype: \"rendered-by-client\",\n\t\tparentComponent: ctx.component.name,\n\t\tparentFile: ctx.component.fileName\n\t});\n}\n//#endregion\nexport { analyzeContext };\n\n//# sourceMappingURL=context-analyzer.js.map","import { getDocsUrl } from \"../../utils/get-docs-url.js\";\nimport { createRenderGraphBuilder } from \"./render-graph-builder.js\";\nimport { analyzeContext } from \"./context-analyzer.js\";\nimport path from \"node:path\";\nimport { ESLintUtils } from \"@typescript-eslint/utils\";\nimport * as ts from \"typescript\";\n//#region src/rules/no-async-client-component/no-async-client-component.rule.ts\nvar name = \"no-async-client-component\";\nvar perProgramCache = /* @__PURE__ */ new WeakMap();\nvar onDemandCache = /* @__PURE__ */ new WeakMap();\nvar adjacencyCache = /* @__PURE__ */ new WeakMap();\nvar rule = ESLintUtils.RuleCreator(getDocsUrl)({\n\tname,\n\tmeta: {\n\t\ttype: \"problem\",\n\t\tdocs: {\n\t\t\tdescription: \"Disallow async components in client context. Async components are only valid inside server components.\",\n\t\t\trecommended: \"error\"\n\t\t},\n\t\tschema: [{\n\t\t\ttype: \"object\",\n\t\t\tproperties: { ignorePatterns: {\n\t\t\t\ttype: \"array\",\n\t\t\t\titems: { type: \"string\" },\n\t\t\t\tdescription: \"File patterns to ignore\"\n\t\t\t} },\n\t\t\tadditionalProperties: false\n\t\t}],\n\t\tmessages: {\n\t\t\tasyncClientComponentDefinition: \"Async component \\\"{{name}}\\\" cannot be used in client context. Async components are only valid inside server components. Either remove \\\"async\\\" or ensure this component is only rendered within server components. {{reason}}\",\n\t\t\tasyncClientComponentUsage: \"Async component \\\"{{name}}\\\" is rendered in client context here. Async components are only valid inside server components. Move this to a server component or use a non-async version.\"\n\t\t}\n\t},\n\tdefaultOptions: [{ ignorePatterns: [] }],\n\tcreate(context, [options]) {\n\t\tconst services = ESLintUtils.getParserServices(context);\n\t\tconst program = services.program;\n\t\tconst checker = program.getTypeChecker();\n\t\tconst currentFile = path.isAbsolute(context.filename) ? context.filename : path.resolve(context.cwd, context.filename);\n\t\tif (shouldIgnore(currentFile, [...options.ignorePatterns])) return {};\n\t\tlet cached = perProgramCache.get(program);\n\t\tif (!cached) {\n\t\t\tcached = {\n\t\t\t\tbuilder: createRenderGraphBuilder(ts, program, checker),\n\t\t\t\tgraphBuilt: false\n\t\t\t};\n\t\t\tperProgramCache.set(program, cached);\n\t\t}\n\t\tconst reported = /* @__PURE__ */ new Set();\n\t\treturn { Program() {\n\t\t\tconst sourceFile = program.getSourceFile(currentFile);\n\t\t\tif (!sourceFile) return;\n\t\t\tif (fileContainsRouteOptions(sourceFile)) {}\n\t\t\tconst analysis = getOnDemandAnalysis(currentFile);\n\t\t\tfor (const [key, ctx] of analysis.contexts) {\n\t\t\t\tif (!ctx.component.isAsync || !ctx.isClientContext) continue;\n\t\t\t\tconst reportKey = `def:${key}`;\n\t\t\t\tif (reported.has(reportKey)) continue;\n\t\t\t\tif (ctx.clientReason?.type === \"route-option\") {\n\t\t\t\t\tconst usageFile = ctx.clientReason.usageFile;\n\t\t\t\t\tif (usageFile && usageFile === currentFile) {\n\t\t\t\t\t\tconst usageTsNode = ctx.clientReason.usageNode;\n\t\t\t\t\t\tconst usageEslintNode = services.tsNodeToESTreeNodeMap.get(usageTsNode);\n\t\t\t\t\t\tif (usageEslintNode) {\n\t\t\t\t\t\t\treported.add(reportKey);\n\t\t\t\t\t\t\tcontext.report({\n\t\t\t\t\t\t\t\tnode: usageEslintNode,\n\t\t\t\t\t\t\t\tmessageId: \"asyncClientComponentDefinition\",\n\t\t\t\t\t\t\t\tdata: {\n\t\t\t\t\t\t\t\t\tname: ctx.component.name,\n\t\t\t\t\t\t\t\t\treason: formatReason(ctx.clientReason, context.cwd)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\treported.add(reportKey);\n\t\t\t\tconst tsNode = ctx.component.node;\n\t\t\t\tconst eslintNode = services.tsNodeToESTreeNodeMap.get(tsNode);\n\t\t\t\tif (eslintNode) context.report({\n\t\t\t\t\tnode: eslintNode,\n\t\t\t\t\tmessageId: \"asyncClientComponentDefinition\",\n\t\t\t\t\tdata: {\n\t\t\t\t\t\tname: ctx.component.name,\n\t\t\t\t\t\treason: ctx.clientReason ? formatReason(ctx.clientReason, context.cwd) : \"\"\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\tfor (const edge of analysis.clientEdges) {\n\t\t\t\tif (!analysis.contexts.get(edge.toComponentKey)?.component.isAsync) continue;\n\t\t\t\tif (edge.fromFile !== currentFile) continue;\n\t\t\t\tconst reportKey = `usage:${edge.fromFile}:${edge.jsxLine}:${edge.toComponent}`;\n\t\t\t\tif (reported.has(reportKey)) continue;\n\t\t\t\treported.add(reportKey);\n\t\t\t\tconst eslintNode = services.tsNodeToESTreeNodeMap.get(edge.jsxNode);\n\t\t\t\tif (eslintNode) context.report({\n\t\t\t\t\tnode: eslintNode,\n\t\t\t\t\tmessageId: \"asyncClientComponentUsage\",\n\t\t\t\t\tdata: { name: edge.toComponent }\n\t\t\t\t});\n\t\t\t}\n\t\t} };\n\t\tfunction shouldIgnore(filePath, patterns) {\n\t\t\tfor (const pattern of patterns) if (filePath.includes(pattern)) return true;\n\t\t\treturn false;\n\t\t}\n\t\tfunction formatReason(reason, cwd) {\n\t\t\tswitch (reason.type) {\n\t\t\t\tcase \"use-client\": return `File has \"use client\" directive.`;\n\t\t\t\tcase \"route-option\": return `Component is referenced by a route option (createFileRoute/createRootRoute).`;\n\t\t\t\tcase \"rendered-by-client\": return `Rendered by client component \"${reason.parentComponent}\" in ${path.relative(cwd, reason.parentFile)}.`;\n\t\t\t}\n\t\t}\n\t\tfunction getOnDemandAnalysis(entryFile) {\n\t\t\tlet programCache = onDemandCache.get(program);\n\t\t\tif (!programCache) {\n\t\t\t\tprogramCache = /* @__PURE__ */ new Map();\n\t\t\t\tonDemandCache.set(program, programCache);\n\t\t\t}\n\t\t\tconst cachedResult = programCache.get(entryFile);\n\t\t\tif (cachedResult) return cachedResult.analysis;\n\t\t\tif (!cached.graphBuilt) {\n\t\t\t\tcached.builder.build();\n\t\t\t\tcached.graphBuilt = true;\n\t\t\t}\n\t\t\tconst full = cached.builder.getGraph();\n\t\t\tconst subgraph = sliceGraphForEntryFile(full, entryFile);\n\t\t\tconst entrySourceFile = program.getSourceFile(entryFile);\n\t\t\tconst analysis = !!entrySourceFile && subgraph.clientRoots.size === 0 && subgraph.serverRoots.size === 0 ? analyzeContext(full) : analyzeContext(subgraph);\n\t\t\tprogramCache.set(entryFile, {\n\t\t\t\tgraph: subgraph,\n\t\t\t\tanalysis\n\t\t\t});\n\t\t\treturn analysis;\n\t\t}\n\t\tfunction sliceGraphForEntryFile(full, entryFile) {\n\t\t\tconst components = full.components;\n\t\t\tconst edges = full.edges;\n\t\t\tconst serverRoots = full.serverRoots;\n\t\t\tconst clientRoots = full.clientRoots;\n\t\t\tconst useClientFiles = full.useClientFiles;\n\t\t\tconst routeOptionUsages = full.routeOptionUsages;\n\t\t\tconst entryClientRoots = /* @__PURE__ */ new Set();\n\t\t\tconst entryServerRoots = /* @__PURE__ */ new Set();\n\t\t\tconst routeRootsInFile = routeOptionUsages.size > 0 ? full.routeOptionRootsByFile.get(entryFile) : void 0;\n\t\t\tif (routeRootsInFile) {\n\t\t\t\tfor (const key of routeRootsInFile) if (clientRoots.has(key)) entryClientRoots.add(key);\n\t\t\t}\n\t\t\tfor (const key of serverRoots) if (components.get(key)?.fileName === entryFile) entryServerRoots.add(key);\n\t\t\tif (useClientFiles.has(entryFile)) {\n\t\t\t\tfor (const [key, component] of components) if (component.fileName === entryFile) entryClientRoots.add(key);\n\t\t\t}\n\t\t\tconst reachable = /* @__PURE__ */ new Set();\n\t\t\tconst queue = [];\n\t\t\tfor (const r of entryClientRoots) queue.push(r);\n\t\t\tfor (const r of entryServerRoots) queue.push(r);\n\t\t\tconst adjacency = getAdjacency(full);\n\t\t\twhile (queue.length) {\n\t\t\t\tconst key = queue.pop();\n\t\t\t\tif (reachable.has(key)) continue;\n\t\t\t\treachable.add(key);\n\t\t\t\tconst children = adjacency.get(key);\n\t\t\t\tif (!children) continue;\n\t\t\t\tfor (const toKey of children) if (!reachable.has(toKey)) queue.push(toKey);\n\t\t\t}\n\t\t\tconst subComponents = /* @__PURE__ */ new Map();\n\t\t\tfor (const key of reachable) {\n\t\t\t\tconst comp = components.get(key);\n\t\t\t\tif (comp) subComponents.set(key, comp);\n\t\t\t}\n\t\t\tconst subEdges = edges.filter((edge) => {\n\t\t\t\tconst fromKey = `${edge.fromFile}:${edge.fromComponent}`;\n\t\t\t\treturn reachable.has(fromKey) && reachable.has(edge.toComponentKey);\n\t\t\t});\n\t\t\tconst subServerRoots = new Set([...entryServerRoots].filter((k) => reachable.has(k)));\n\t\t\tconst subClientRoots = new Set([...entryClientRoots].filter((k) => reachable.has(k)));\n\t\t\tconst subRouteOptionUsages = /* @__PURE__ */ new Map();\n\t\t\tconst subRouteOptionRootsByFile = /* @__PURE__ */ new Map();\n\t\t\tfor (const key of subClientRoots) {\n\t\t\t\tconst usage = routeOptionUsages.get(key);\n\t\t\t\tif (usage) {\n\t\t\t\t\tsubRouteOptionUsages.set(key, usage);\n\t\t\t\t\tlet set = subRouteOptionRootsByFile.get(usage.fileName);\n\t\t\t\t\tif (!set) {\n\t\t\t\t\t\tset = /* @__PURE__ */ new Set();\n\t\t\t\t\t\tsubRouteOptionRootsByFile.set(usage.fileName, set);\n\t\t\t\t\t}\n\t\t\t\t\tset.add(key);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn {\n\t\t\t\tcomponents: subComponents,\n\t\t\t\tedges: subEdges,\n\t\t\t\tserverRoots: subServerRoots,\n\t\t\t\tclientRoots: subClientRoots,\n\t\t\t\tuseClientFiles,\n\t\t\t\trouteOptionUsages: subRouteOptionUsages,\n\t\t\t\trouteOptionRootsByFile: subRouteOptionRootsByFile\n\t\t\t};\n\t\t}\n\t\tfunction getAdjacency(full) {\n\t\t\tlet cachedAdjacency = adjacencyCache.get(program);\n\t\t\tif (cachedAdjacency) return cachedAdjacency;\n\t\t\tcachedAdjacency = /* @__PURE__ */ new Map();\n\t\t\tfor (const edge of full.edges) {\n\t\t\t\tconst fromKey = `${edge.fromFile}:${edge.fromComponent}`;\n\t\t\t\tlet set = cachedAdjacency.get(fromKey);\n\t\t\t\tif (!set) {\n\t\t\t\t\tset = /* @__PURE__ */ new Set();\n\t\t\t\t\tcachedAdjacency.set(fromKey, set);\n\t\t\t\t}\n\t\t\t\tset.add(edge.toComponentKey);\n\t\t\t}\n\t\t\tadjacencyCache.set(program, cachedAdjacency);\n\t\t\treturn cachedAdjacency;\n\t\t}\n\t\tfunction fileHasUseClientDirective(sourceFile) {\n\t\t\tconst firstStmt = sourceFile.statements[0];\n\t\t\tif (!firstStmt) return false;\n\t\t\treturn ts.isExpressionStatement(firstStmt) && ts.isStringLiteral(firstStmt.expression) && firstStmt.expression.text === \"use client\";\n\t\t}\n\t\tfunction fileContainsServerComponentRoots(sourceFile) {\n\t\t\tconst text = sourceFile.text;\n\t\t\treturn text.includes(\"renderServerComponent\") || text.includes(\"createCompositeComponent\");\n\t\t}\n\t\tfunction fileContainsRouteOptions(sourceFile) {\n\t\t\tconst text = sourceFile.text;\n\t\t\tif (!text.includes(\"createFileRoute\") && !text.includes(\"createRootRoute\") && !text.includes(\"createRootRouteWithContext\")) return false;\n\t\t\treturn text.includes(\"component\") || text.includes(\"pendingComponent\") || text.includes(\"errorComponent\") || text.includes(\"notFoundComponent\");\n\t\t}\n\t}\n});\n//#endregion\nexport { name, rule };\n\n//# sourceMappingURL=no-async-client-component.rule.js.map","import { name, rule } from \"./rules/no-client-code-in-server-component/no-client-code-in-server-component.rule.js\";\nimport { name as name$1, rule as rule$1 } from \"./rules/no-async-client-component/no-async-client-component.rule.js\";\n//#region src/rules.ts\nvar rules = {\n\t[name]: rule,\n\t[name$1]: rule$1\n};\n//#endregion\nexport { rules };\n\n//# sourceMappingURL=rules.js.map","import { rules } from \"./rules.js\";\n//#region src/index.ts\nvar plugin = {\n\tmeta: { name: \"@tanstack/eslint-plugin-start\" },\n\tconfigs: {},\n\trules\n};\nObject.assign(plugin.configs, {\n\trecommended: {\n\t\tplugins: [\"@tanstack/eslint-plugin-start\"],\n\t\trules: {\n\t\t\t\"@tanstack/start/no-client-code-in-server-component\": \"error\",\n\t\t\t\"@tanstack/start/no-async-client-component\": \"error\"\n\t\t}\n\t},\n\t\"flat/recommended\": [{\n\t\tplugins: { \"@tanstack/start\": plugin },\n\t\trules: {\n\t\t\t\"@tanstack/start/no-client-code-in-server-component\": \"error\",\n\t\t\t\"@tanstack/start/no-async-client-component\": \"error\"\n\t\t}\n\t}]\n});\n//#endregion\nexport { plugin as default };\n\n//# sourceMappingURL=index.js.map","import tanstackStart from \"@tanstack/eslint-plugin-start\";\nimport type { Plugin } from \"vite-plus/lint/plugins\";\n\nimport { typedRules } from \"#/entities/typed-rule/index.ts\";\n\nconst plugin: Plugin & { readonly meta: { readonly name: string } } = {\n meta: { name: \"tanstack-start\" },\n rules: typedRules(tanstackStart.rules),\n};\n\nexport default plugin;\n"],"ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13],"mappings":";;;;;;AACA,IAAI,cAAc,aAAa,iDAAiD;;;;;ACIhF,SAAS,wBAAwB,SAAS;CACzC,SAAS,sBAAsB,UAAU;EACxC,MAAM,aAAa,QAAQ,cAAc,QAAQ;EACjD,IAAI,CAAC,YAAY,OAAO;EACxB,MAAM,YAAY,WAAW,WAAW;EACxC,IAAI,CAAC,WAAW,OAAO;EACvB,IAAIA,sBAAyB,SAAS,KAAKC,gBAAmB,UAAU,UAAU,GAAG,OAAO,UAAU,WAAW,SAAS;EAC1H,OAAO;CACR;CACA,OAAO,EAAE,sBAAsB;AAChC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;ACIP,IAAI,wCAAwB,IAAI,IAAI,CAAC,OAAO,CAAC;;;;;AAK7C,IAAI,8BAA8B;CACjC,MAAM,iBAAiB,OAAO,KAAKC,eAAAA,QAAQ,OAAO;CAClD,MAAM,cAAc,IAAI,IAAI,OAAO,KAAKA,eAAAA,QAAQ,IAAI,CAAC;CACrD,MAAM,8BAA8B,IAAI,IAAI;CAC5C,KAAK,MAAM,QAAQ,gBAAgB,IAAI,CAAC,YAAY,IAAI,IAAI,GAAG,YAAY,IAAI,IAAI;CACnF,OAAO;AACR,EAAA,CAAG;;;;AAIH,IAAI,uCAAuB,IAAI,IAAI;CAClC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,CAAC;;;;AAID,SAAS,oBAAoB,MAAM;CAClC,OAAO,qBAAq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