@r_masseater/oxlint-typed-rules 0.1.0 → 0.1.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,4 +1,8 @@
1
1
  import { Plugin } from "vite-plus/lint/plugins";
2
- declare const plugin: Plugin;
2
+ declare const plugin: Plugin & {
3
+ readonly meta: {
4
+ readonly name: string;
5
+ };
6
+ };
3
7
  export { plugin as default };
4
8
  //# sourceMappingURL=tanstack-start.d.mts.map
@@ -1,100 +1,9 @@
1
- import { t as typedRules } from "./typed-rule-BPSyA0px.mjs";
2
- import { Array as Array$1, Function, Option, Predicate } from "effect";
3
- import { SyntaxKind, SyntaxKind as SyntaxKind$1 } from "typescript-7/ast";
4
- import { SymbolFlags as SymbolFlags$1 } from "typescript-7/sync";
5
- import { isArrayBindingPattern, isArrowFunction, isBindingElement, isCallExpression, isClassDeclaration, isClassExpression, isExpressionStatement, isFunctionDeclaration, isFunctionExpression, isIdentifier, isImportClause, isImportSpecifier, isInterfaceDeclaration, isJsxAttribute, isJsxExpression, isJsxOpeningElement, isJsxSelfClosingElement, isMethodDeclaration, isObjectBindingPattern, isObjectLiteralExpression, isParameterDeclaration as isParameter, isParenthesizedExpression, isPropertyAccessExpression, isPropertyAssignment, isPropertyDeclaration, isStringLiteral, isTypeAliasDeclaration, isTypeParameterDeclaration, isTypeQueryNode, isTypeReferenceNode, isVariableDeclaration, isVariableStatement } from "typescript-7/ast/is";
1
+ import { _ as __commonJSMin, a as isBindingElement, c as isFunctionLike, d as isJsxSelfClosingElement, f as isObjectBindingPattern, g as ts_compat_exports, i as isArrayBindingPattern, l as isIdentifier, m as isStringLiteral, n as SymbolFlags, o as isCallExpression, p as isParameter, r as forEachChild, s as isExpressionStatement, t as require_eslint_utils, u as isJsxOpeningElement, v as __toESM } from "./eslint-utils-CTNWAzIf.mjs";
2
+ import { n as typedRules } from "./typed-rule-D8jasU_z.mjs";
6
3
  import path from "node:path";
7
- // \0rolldown/runtime.js
8
- var __create = Object.create;
9
- var __defProp = Object.defineProperty;
10
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
11
- var __getOwnPropNames = Object.getOwnPropertyNames;
12
- var __getProtoOf = Object.getPrototypeOf;
13
- var __hasOwnProp = Object.prototype.hasOwnProperty;
14
- var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod, mod.exports), cb = null), mod.exports);
15
- var __exportAll = (all, no_symbols) => {
16
- let target = {};
17
- for (var name in all) __defProp(target, name, {
18
- get: all[name],
19
- enumerable: true
20
- });
21
- if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
22
- return target;
23
- };
24
- var __copyProps = (to, from, except, desc) => {
25
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
26
- key = keys[i];
27
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
28
- get: ((k) => from[k]).bind(null, key),
29
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
30
- });
31
- }
32
- return to;
33
- };
34
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
35
- value: mod,
36
- enumerable: true
37
- }) : target, mod));
38
- // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_6fe772255ffd0fd176acbd64769f9ccb/node_modules/@tanstack/eslint-plugin-start/dist/esm/utils/get-docs-url.js
4
+ // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_65c61ffd83a43697dd08a8f8d953a9f0/node_modules/@tanstack/eslint-plugin-start/dist/esm/utils/get-docs-url.js
39
5
  var getDocsUrl = (ruleName) => `https://tanstack.com/start/latest/docs/eslint/${ruleName}`;
40
- // src/ts-compat.ts
41
- var ts_compat_exports = /* @__PURE__ */ __exportAll({
42
- SymbolFlags: () => SymbolFlags$1,
43
- SyntaxKind: () => SyntaxKind$1,
44
- forEachChild: () => forEachChild,
45
- isArrayBindingPattern: () => isArrayBindingPattern,
46
- isArrowFunction: () => isArrowFunction,
47
- isBindingElement: () => isBindingElement,
48
- isCallExpression: () => isCallExpression,
49
- isClassDeclaration: () => isClassDeclaration,
50
- isClassExpression: () => isClassExpression,
51
- isExpressionStatement: () => isExpressionStatement,
52
- isFunctionDeclaration: () => isFunctionDeclaration,
53
- isFunctionExpression: () => isFunctionExpression,
54
- isFunctionLike: () => isFunctionLike,
55
- isIdentifier: () => isIdentifier,
56
- isImportClause: () => isImportClause,
57
- isImportSpecifier: () => isImportSpecifier,
58
- isInterfaceDeclaration: () => isInterfaceDeclaration,
59
- isJsxAttribute: () => isJsxAttribute,
60
- isJsxExpression: () => isJsxExpression,
61
- isJsxOpeningElement: () => isJsxOpeningElement,
62
- isJsxSelfClosingElement: () => isJsxSelfClosingElement,
63
- isMethodDeclaration: () => isMethodDeclaration,
64
- isObjectBindingPattern: () => isObjectBindingPattern,
65
- isObjectLiteralExpression: () => isObjectLiteralExpression,
66
- isParameter: () => isParameter,
67
- isParenthesizedExpression: () => isParenthesizedExpression,
68
- isPropertyAccessExpression: () => isPropertyAccessExpression,
69
- isPropertyAssignment: () => isPropertyAssignment,
70
- isPropertyDeclaration: () => isPropertyDeclaration,
71
- isStringLiteral: () => isStringLiteral,
72
- isTypeAliasDeclaration: () => isTypeAliasDeclaration,
73
- isTypeParameterDeclaration: () => isTypeParameterDeclaration,
74
- isTypeQueryNode: () => isTypeQueryNode,
75
- isTypeReferenceNode: () => isTypeReferenceNode,
76
- isVariableDeclaration: () => isVariableDeclaration,
77
- isVariableStatement: () => isVariableStatement
78
- });
79
- const FUNCTION_LIKE_KINDS = /* @__PURE__ */ new Set([
80
- SyntaxKind.FunctionDeclaration,
81
- SyntaxKind.MethodDeclaration,
82
- SyntaxKind.Constructor,
83
- SyntaxKind.GetAccessor,
84
- SyntaxKind.SetAccessor,
85
- SyntaxKind.FunctionExpression,
86
- SyntaxKind.ArrowFunction,
87
- SyntaxKind.MethodSignature,
88
- SyntaxKind.CallSignature,
89
- SyntaxKind.JSDocSignature,
90
- SyntaxKind.ConstructSignature,
91
- SyntaxKind.IndexSignature,
92
- SyntaxKind.FunctionType,
93
- SyntaxKind.ConstructorType
94
- ]);
95
- const isFunctionLike = (node) => Option.fromNullishOr(node).pipe(Option.exists(({ kind }) => FUNCTION_LIKE_KINDS.has(kind)));
96
- const forEachChild = Function.dual((args) => Array$1.head(Array$1.fromIterable(args)).pipe(Option.exists(Predicate.not(Predicate.isFunction))), (node, visit) => node.forEachChild(visit));
97
- // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_6fe772255ffd0fd176acbd64769f9ccb/node_modules/@tanstack/eslint-plugin-start/dist/esm/shared/use-client-resolver.js
6
+ // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_65c61ffd83a43697dd08a8f8d953a9f0/node_modules/@tanstack/eslint-plugin-start/dist/esm/shared/use-client-resolver.js
98
7
  /**
99
8
  * Creates a resolver that checks for 'use client' directive in source files
100
9
  */
@@ -3414,7 +3323,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3414
3323
  }
3415
3324
  };
3416
3325
  }));
3417
- // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_6fe772255ffd0fd176acbd64769f9ccb/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-client-code-in-server-component/constants.js
3326
+ // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_65c61ffd83a43697dd08a8f8d953a9f0/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-client-code-in-server-component/constants.js
3418
3327
  var import_globals = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
3419
3328
  module.exports = require_globals$1();
3420
3329
  })))(), 1);
@@ -3614,7 +3523,7 @@ function isClientOnlyHook(name, allowedHooks = DEFAULT_ALLOWED_HOOKS) {
3614
3523
  if (allowedHooks.has(name)) return false;
3615
3524
  return true;
3616
3525
  }
3617
- // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_6fe772255ffd0fd176acbd64769f9ccb/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-client-code-in-server-component/violation-detector.js
3526
+ // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_65c61ffd83a43697dd08a8f8d953a9f0/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-client-code-in-server-component/violation-detector.js
3618
3527
  /**
3619
3528
  * Get line and column position for a node
3620
3529
  */
@@ -3765,7 +3674,7 @@ function createViolationDetector(tsLib, options = {}) {
3765
3674
  detectViolationsInNode
3766
3675
  };
3767
3676
  }
3768
- // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_6fe772255ffd0fd176acbd64769f9ccb/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-client-code-in-server-component/transitive-analyzer.js
3677
+ // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_65c61ffd83a43697dd08a8f8d953a9f0/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-client-code-in-server-component/transitive-analyzer.js
3769
3678
  /**
3770
3679
  * Creates an analyzer that follows reachable symbol references
3771
3680
  * to find transitive violations, stopping at 'use client' boundaries.
@@ -3876,197 +3785,9 @@ function createTransitiveAnalyzer(tsLib, program, checker, useClientResolver, vi
3876
3785
  }
3877
3786
  return { analyzeEntrySymbol };
3878
3787
  }
3879
- // ../../node_modules/.pnpm/@typescript-eslint+utils@8.72.1_eslint@9.39.5_jiti@2.6.1_supports-color@7.2.0__supports-color@7.2.0_typescript@6.0.3/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js
3880
- var require_deepMerge = /* @__PURE__ */ __commonJSMin(((exports) => {
3881
- Object.defineProperty(exports, "__esModule", { value: true });
3882
- exports.isObjectNotArray = isObjectNotArray;
3883
- exports.deepMerge = deepMerge;
3884
- /**
3885
- * Check if the variable contains an object strictly rejecting arrays
3886
- * @returns `true` if obj is an object
3887
- */
3888
- function isObjectNotArray(obj) {
3889
- return typeof obj === "object" && obj != null && !Array.isArray(obj);
3890
- }
3891
- /**
3892
- * Pure function - doesn't mutate either parameter!
3893
- * Merges two objects together deeply, overwriting the properties in first with the properties in second
3894
- * @param first The first object
3895
- * @param second The second object
3896
- * @returns a new object
3897
- */
3898
- function deepMerge(first = {}, second = {}) {
3899
- const keys = /* @__PURE__ */ new Set([...Object.keys(first), ...Object.keys(second)]);
3900
- return Object.fromEntries([...keys].map((key) => {
3901
- const firstHasKey = key in first;
3902
- const secondHasKey = key in second;
3903
- const firstValue = first[key];
3904
- const secondValue = second[key];
3905
- let value;
3906
- if (firstHasKey && secondHasKey) {
3907
- if (isObjectNotArray(firstValue) && isObjectNotArray(secondValue)) value = deepMerge(firstValue, secondValue);
3908
- else value = secondValue;
3909
- } else if (firstHasKey) value = firstValue;
3910
- else value = secondValue;
3911
- return [key, value];
3912
- }));
3913
- }
3914
- }));
3915
- // ../../node_modules/.pnpm/@typescript-eslint+utils@8.72.1_eslint@9.39.5_jiti@2.6.1_supports-color@7.2.0__supports-color@7.2.0_typescript@6.0.3/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js
3916
- var require_applyDefault = /* @__PURE__ */ __commonJSMin(((exports) => {
3917
- Object.defineProperty(exports, "__esModule", { value: true });
3918
- exports.applyDefault = applyDefault;
3919
- const deepMerge_1 = require_deepMerge();
3920
- /**
3921
- * Pure function - doesn't mutate either parameter!
3922
- * Uses the default options and overrides with the options provided by the user
3923
- * @param defaultOptions the defaults
3924
- * @param userOptions the user opts
3925
- * @returns the options with defaults
3926
- */
3927
- function applyDefault(defaultOptions, userOptions) {
3928
- const options = structuredClone(defaultOptions);
3929
- if (userOptions == null) return options;
3930
- options.forEach((opt, i) => {
3931
- if (userOptions[i] !== void 0) {
3932
- const userOpt = userOptions[i];
3933
- if ((0, deepMerge_1.isObjectNotArray)(userOpt) && (0, deepMerge_1.isObjectNotArray)(opt)) options[i] = (0, deepMerge_1.deepMerge)(opt, userOpt);
3934
- else options[i] = userOpt;
3935
- }
3936
- });
3937
- return options;
3938
- }
3939
- }));
3940
- // ../../node_modules/.pnpm/@typescript-eslint+utils@8.72.1_eslint@9.39.5_jiti@2.6.1_supports-color@7.2.0__supports-color@7.2.0_typescript@6.0.3/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.js
3941
- var require_parserSeemsToBeTSESLint = /* @__PURE__ */ __commonJSMin(((exports) => {
3942
- Object.defineProperty(exports, "__esModule", { value: true });
3943
- exports.parserSeemsToBeTSESLint = parserSeemsToBeTSESLint;
3944
- function parserSeemsToBeTSESLint(parser) {
3945
- return !!parser && /(?:typescript-eslint|\.\.)[\w/\\]*parser/.test(parser);
3946
- }
3947
- }));
3948
- // ../../node_modules/.pnpm/@typescript-eslint+utils@8.72.1_eslint@9.39.5_jiti@2.6.1_supports-color@7.2.0__supports-color@7.2.0_typescript@6.0.3/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js
3949
- var require_getParserServices = /* @__PURE__ */ __commonJSMin(((exports) => {
3950
- Object.defineProperty(exports, "__esModule", { value: true });
3951
- exports.getParserServices = getParserServices;
3952
- const parserSeemsToBeTSESLint_1 = require_parserSeemsToBeTSESLint();
3953
- const ERROR_MESSAGE_REQUIRES_PARSER_SERVICES = "You have used a rule which requires type information, but don't have parserOptions set to generate type information for this file. See https://tseslint.com/typed-linting for enabling linting with type information.";
3954
- const ERROR_MESSAGE_UNKNOWN_PARSER = "Note: detected a parser other than @typescript-eslint/parser. Make sure the parser is configured to forward \"parserOptions.project\" to @typescript-eslint/parser.";
3955
- function getParserServices(context, allowWithoutFullTypeInformation = false) {
3956
- const parser = context.parserPath || context.languageOptions.parser?.meta?.name;
3957
- if (context.sourceCode.parserServices?.esTreeNodeToTSNodeMap == null || context.sourceCode.parserServices.tsNodeToESTreeNodeMap == null) throwError(parser);
3958
- if (context.sourceCode.parserServices.program == null && !allowWithoutFullTypeInformation) throwError(parser);
3959
- return context.sourceCode.parserServices;
3960
- }
3961
- function throwError(parser) {
3962
- const messages = [
3963
- ERROR_MESSAGE_REQUIRES_PARSER_SERVICES,
3964
- `Parser: ${parser || "(unknown)"}`,
3965
- !(0, parserSeemsToBeTSESLint_1.parserSeemsToBeTSESLint)(parser) && ERROR_MESSAGE_UNKNOWN_PARSER
3966
- ].filter(Boolean);
3967
- throw new Error(messages.join("\n"));
3968
- }
3969
- }));
3970
- // ../../node_modules/.pnpm/@typescript-eslint+utils@8.72.1_eslint@9.39.5_jiti@2.6.1_supports-color@7.2.0__supports-color@7.2.0_typescript@6.0.3/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js
3971
- var require_InferTypesFromRule = /* @__PURE__ */ __commonJSMin(((exports) => {
3972
- Object.defineProperty(exports, "__esModule", { value: true });
3973
- }));
3974
- // ../../node_modules/.pnpm/@typescript-eslint+utils@8.72.1_eslint@9.39.5_jiti@2.6.1_supports-color@7.2.0__supports-color@7.2.0_typescript@6.0.3/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js
3975
- var require_nullThrows = /* @__PURE__ */ __commonJSMin(((exports) => {
3976
- Object.defineProperty(exports, "__esModule", { value: true });
3977
- exports.NullThrowsReasons = void 0;
3978
- exports.nullThrows = nullThrows;
3979
- /**
3980
- * A set of common reasons for calling nullThrows
3981
- */
3982
- exports.NullThrowsReasons = {
3983
- MissingParent: "Expected node to have a parent.",
3984
- MissingToken: (token, thing) => `Expected to find a ${token} for the ${thing}.`
3985
- };
3986
- /**
3987
- * Assert that a value must not be null or undefined.
3988
- * This is a nice explicit alternative to the non-null assertion operator.
3989
- */
3990
- function nullThrows(value, message) {
3991
- if (value == null) throw new Error(`Non-null Assertion Failed: ${message}`);
3992
- return value;
3993
- }
3994
- }));
3995
- // ../../node_modules/.pnpm/@typescript-eslint+utils@8.72.1_eslint@9.39.5_jiti@2.6.1_supports-color@7.2.0__supports-color@7.2.0_typescript@6.0.3/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js
3996
- var require_RuleCreator = /* @__PURE__ */ __commonJSMin(((exports) => {
3997
- Object.defineProperty(exports, "__esModule", { value: true });
3998
- exports.RuleCreator = RuleCreator;
3999
- const applyDefault_1 = require_applyDefault();
4000
- /**
4001
- * Creates reusable function to create rules with default options and docs URLs.
4002
- *
4003
- * @param urlCreator Creates a documentation URL for a given rule name.
4004
- * @returns Function to create a rule with the docs URL format.
4005
- */
4006
- function RuleCreator(urlCreator) {
4007
- return function createNamedRule({ meta, name, ...rule }) {
4008
- return createRule({
4009
- meta: {
4010
- ...meta,
4011
- docs: {
4012
- ...meta.docs,
4013
- url: urlCreator(name)
4014
- }
4015
- },
4016
- name,
4017
- ...rule
4018
- });
4019
- };
4020
- }
4021
- function createRule({ create, defaultOptions, meta, name }) {
4022
- const resolvedDefaultOptions = meta.defaultOptions ?? defaultOptions ?? [];
4023
- return {
4024
- create(context) {
4025
- return create(context, (0, applyDefault_1.applyDefault)(resolvedDefaultOptions, context.options));
4026
- },
4027
- defaultOptions,
4028
- meta,
4029
- name
4030
- };
4031
- }
4032
- /**
4033
- * Creates a well-typed TSESLint custom ESLint rule without a docs URL.
4034
- *
4035
- * @returns Well-typed TSESLint custom ESLint rule.
4036
- * @remarks It is generally better to provide a docs URL function to RuleCreator.
4037
- */
4038
- RuleCreator.withoutDocs = function withoutDocs(args) {
4039
- return createRule(args);
4040
- };
4041
- }));
4042
3788
  // src/typescript-eslint-utils.ts
4043
- var import_eslint_utils = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module, this$1) => {
4044
- var __createBinding = this$1 && this$1.__createBinding || (Object.create ? (function(o, m, k, k2) {
4045
- if (k2 === void 0) k2 = k;
4046
- var desc = Object.getOwnPropertyDescriptor(m, k);
4047
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
4048
- enumerable: true,
4049
- get: function() {
4050
- return m[k];
4051
- }
4052
- };
4053
- Object.defineProperty(o, k2, desc);
4054
- }) : (function(o, m, k, k2) {
4055
- if (k2 === void 0) k2 = k;
4056
- o[k2] = m[k];
4057
- }));
4058
- var __exportStar = this$1 && this$1.__exportStar || function(m, exports) {
4059
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
4060
- };
4061
- Object.defineProperty(exports, "__esModule", { value: true });
4062
- __exportStar(require_applyDefault(), exports);
4063
- __exportStar(require_deepMerge(), exports);
4064
- __exportStar(require_getParserServices(), exports);
4065
- __exportStar(require_InferTypesFromRule(), exports);
4066
- __exportStar(require_nullThrows(), exports);
4067
- __exportStar(require_RuleCreator(), exports);
4068
- })))(), 1);
4069
- // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_6fe772255ffd0fd176acbd64769f9ccb/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-client-code-in-server-component/no-client-code-in-server-component.rule.js
3789
+ var import_eslint_utils = /* @__PURE__ */ __toESM(require_eslint_utils(), 1);
3790
+ // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_65c61ffd83a43697dd08a8f8d953a9f0/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-client-code-in-server-component/no-client-code-in-server-component.rule.js
4070
3791
  var name$1 = "no-client-code-in-server-component";
4071
3792
  var TRIGGER_HINT = "Triggered by rendering \"{{entry}}\".";
4072
3793
  var rule$1 = import_eslint_utils.RuleCreator(getDocsUrl)({
@@ -4154,7 +3875,7 @@ var rule$1 = import_eslint_utils.RuleCreator(getDocsUrl)({
4154
3875
  for (const ref of componentRefs) {
4155
3876
  const symbol = checker.getSymbolAtLocation(ref);
4156
3877
  if (!symbol) continue;
4157
- const resolvedSymbol = SymbolFlags$1.Alias & symbol.flags ? checker.getAliasedSymbol(symbol) : symbol;
3878
+ const resolvedSymbol = SymbolFlags.Alias & symbol.flags ? checker.getAliasedSymbol(symbol) : symbol;
4158
3879
  const result = transitiveAnalyzer.analyzeEntrySymbol(resolvedSymbol);
4159
3880
  if (result.isClientBoundary) continue;
4160
3881
  for (const violation of result.violations) {
@@ -4193,7 +3914,7 @@ var rule$1 = import_eslint_utils.RuleCreator(getDocsUrl)({
4193
3914
  const symbol = checker.getSymbolAtLocation(ref);
4194
3915
  if (!symbol) continue;
4195
3916
  if (symbol.getDeclarations()?.some((d) => isWithinParameters(d, callback))) continue;
4196
- const resolvedSymbol = SymbolFlags$1.Alias & symbol.flags ? checker.getAliasedSymbol(symbol) : symbol;
3917
+ const resolvedSymbol = SymbolFlags.Alias & symbol.flags ? checker.getAliasedSymbol(symbol) : symbol;
4197
3918
  const result = transitiveAnalyzer.analyzeEntrySymbol(resolvedSymbol);
4198
3919
  if (result.isClientBoundary) continue;
4199
3920
  for (const violation of result.violations) {
@@ -4211,7 +3932,7 @@ var rule$1 = import_eslint_utils.RuleCreator(getDocsUrl)({
4211
3932
  function analyzeDirectComponentReference(ref, eslintNode, rootKind = "createCompositeComponent") {
4212
3933
  const symbol = checker.getSymbolAtLocation(ref);
4213
3934
  if (!symbol) return;
4214
- const resolvedSymbol = SymbolFlags$1.Alias & symbol.flags ? checker.getAliasedSymbol(symbol) : symbol;
3935
+ const resolvedSymbol = SymbolFlags.Alias & symbol.flags ? checker.getAliasedSymbol(symbol) : symbol;
4215
3936
  const result = transitiveAnalyzer.analyzeEntrySymbol(resolvedSymbol);
4216
3937
  if (result.isClientBoundary) return;
4217
3938
  const reportedViolations = /* @__PURE__ */ new Set();
@@ -4299,7 +4020,7 @@ var rule$1 = import_eslint_utils.RuleCreator(getDocsUrl)({
4299
4020
  }
4300
4021
  }
4301
4022
  });
4302
- // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_6fe772255ffd0fd176acbd64769f9ccb/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-async-client-component/constants.js
4023
+ // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_65c61ffd83a43697dd08a8f8d953a9f0/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-async-client-component/constants.js
4303
4024
  /**
4304
4025
  * Route option names that accept component references.
4305
4026
  * These make the referenced component a "client root".
@@ -4322,7 +4043,7 @@ var ROUTE_CREATOR_NAMES = [
4322
4043
  * Function names that create server-component roots.
4323
4044
  */
4324
4045
  var SERVER_COMPONENT_ROOTS = ["renderServerComponent", "createCompositeComponent"];
4325
- // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_6fe772255ffd0fd176acbd64769f9ccb/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-async-client-component/render-graph-builder.js
4046
+ // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_65c61ffd83a43697dd08a8f8d953a9f0/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-async-client-component/render-graph-builder.js
4326
4047
  /**
4327
4048
  * Builds a render graph from the TypeScript program.
4328
4049
  * Indexes components, JSX edges, server roots, and client roots.
@@ -4592,7 +4313,7 @@ function createRenderGraphBuilder(tsLib, program, checker) {
4592
4313
  set.add(key);
4593
4314
  }
4594
4315
  }
4595
- // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_6fe772255ffd0fd176acbd64769f9ccb/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-async-client-component/context-analyzer.js
4316
+ // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_65c61ffd83a43697dd08a8f8d953a9f0/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-async-client-component/context-analyzer.js
4596
4317
  /**
4597
4318
  * Analyzes the render graph to propagate server/client context.
4598
4319
  *
@@ -4692,7 +4413,7 @@ function propagateClientContext(key, visited, contexts, adjacency, reason) {
4692
4413
  parentFile: ctx.component.fileName
4693
4414
  });
4694
4415
  }
4695
- // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_6fe772255ffd0fd176acbd64769f9ccb/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-async-client-component/no-async-client-component.rule.js
4416
+ // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_65c61ffd83a43697dd08a8f8d953a9f0/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-async-client-component/no-async-client-component.rule.js
4696
4417
  var name = "no-async-client-component";
4697
4418
  var perProgramCache = /* @__PURE__ */ new WeakMap();
4698
4419
  var onDemandCache = /* @__PURE__ */ new WeakMap();
@@ -4909,7 +4630,7 @@ var rule = import_eslint_utils.RuleCreator(getDocsUrl)({
4909
4630
  }
4910
4631
  }
4911
4632
  });
4912
- // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_6fe772255ffd0fd176acbd64769f9ccb/node_modules/@tanstack/eslint-plugin-start/dist/esm/index.js
4633
+ // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_65c61ffd83a43697dd08a8f8d953a9f0/node_modules/@tanstack/eslint-plugin-start/dist/esm/index.js
4913
4634
  var plugin$1 = {
4914
4635
  meta: { name: "@tanstack/eslint-plugin-start" },
4915
4636
  configs: {},