@r_masseater/oxlint-typed-rules 0.6.0 → 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.
- package/dist/_typescript-default-CzTenk4q.mjs +141 -0
- package/dist/_typescript-default-CzTenk4q.mjs.map +1 -0
- package/dist/drizzle.mjs +1 -1
- package/dist/{eslint-utils-BF_HFO08.mjs → eslint-utils-0ZLZ6vu2.mjs} +9 -9
- package/dist/{eslint-utils-BF_HFO08.mjs.map → eslint-utils-0ZLZ6vu2.mjs.map} +1 -1
- package/dist/react.mjs +64 -65
- package/dist/react.mjs.map +1 -1
- package/dist/remotion.mjs +1 -1
- package/dist/tanstack-query.mjs +3 -3
- package/dist/tanstack-query.mjs.map +1 -1
- package/dist/tanstack-router.mjs +10 -10
- package/dist/tanstack-router.mjs.map +1 -1
- package/dist/tanstack-start.mjs +33 -34
- package/dist/tanstack-start.mjs.map +1 -1
- package/dist/{typescript-eslint-utils-C7ew0-XM.mjs → typescript-eslint-utils-BjYjauy-.mjs} +2 -2
- package/dist/{typescript-eslint-utils-C7ew0-XM.mjs.map → typescript-eslint-utils-BjYjauy-.mjs.map} +1 -1
- package/package.json +6 -5
- package/dist/version-BMMFrB-m.mjs +0 -83
- package/dist/version-BMMFrB-m.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tanstack-router.mjs","names":["TSESTree","createRule","ESLintUtils","name","rule","AST_NODE_TYPES","ESLintUtils","AST_NODE_TYPES","name","rule","name$1","rule$1","plugin","tanstackRouter"],"sources":["../../../node_modules/.pnpm/@tanstack+eslint-plugin-router@1.162.0_eslint@10.15.0_jiti@2.7.0_supports-color@10.2.2__441cdb8a58f7bb057347bf65d1e8ca5a/node_modules/@tanstack/eslint-plugin-router/dist/esm/utils/get-docs-url.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-router@1.162.0_eslint@10.15.0_jiti@2.7.0_supports-color@10.2.2__441cdb8a58f7bb057347bf65d1e8ca5a/node_modules/@tanstack/eslint-plugin-router/dist/esm/utils/detect-router-imports.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-router@1.162.0_eslint@10.15.0_jiti@2.7.0_supports-color@10.2.2__441cdb8a58f7bb057347bf65d1e8ca5a/node_modules/@tanstack/eslint-plugin-router/dist/esm/rules/create-route-property-order/create-route-property-order.utils.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-router@1.162.0_eslint@10.15.0_jiti@2.7.0_supports-color@10.2.2__441cdb8a58f7bb057347bf65d1e8ca5a/node_modules/@tanstack/eslint-plugin-router/dist/esm/rules/create-route-property-order/constants.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-router@1.162.0_eslint@10.15.0_jiti@2.7.0_supports-color@10.2.2__441cdb8a58f7bb057347bf65d1e8ca5a/node_modules/@tanstack/eslint-plugin-router/dist/esm/rules/create-route-property-order/create-route-property-order.rule.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-router@1.162.0_eslint@10.15.0_jiti@2.7.0_supports-color@10.2.2__441cdb8a58f7bb057347bf65d1e8ca5a/node_modules/@tanstack/eslint-plugin-router/dist/esm/rules/route-param-names/constants.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-router@1.162.0_eslint@10.15.0_jiti@2.7.0_supports-color@10.2.2__441cdb8a58f7bb057347bf65d1e8ca5a/node_modules/@tanstack/eslint-plugin-router/dist/esm/rules/route-param-names/route-param-names.utils.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-router@1.162.0_eslint@10.15.0_jiti@2.7.0_supports-color@10.2.2__441cdb8a58f7bb057347bf65d1e8ca5a/node_modules/@tanstack/eslint-plugin-router/dist/esm/rules/route-param-names/route-param-names.rule.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-router@1.162.0_eslint@10.15.0_jiti@2.7.0_supports-color@10.2.2__441cdb8a58f7bb057347bf65d1e8ca5a/node_modules/@tanstack/eslint-plugin-router/dist/esm/rules.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-router@1.162.0_eslint@10.15.0_jiti@2.7.0_supports-color@10.2.2__441cdb8a58f7bb057347bf65d1e8ca5a/node_modules/@tanstack/eslint-plugin-router/dist/esm/index.js","../src/app/tanstack-router.ts"],"sourcesContent":["//#region src/utils/get-docs-url.ts\nvar getDocsUrl = (ruleName) => `https://tanstack.com/router/latest/docs/eslint/${ruleName}`;\n//#endregion\nexport { getDocsUrl };\n\n//# sourceMappingURL=get-docs-url.js.map","import { TSESTree } from \"@typescript-eslint/utils\";\n//#region src/utils/detect-router-imports.ts\nfunction detectTanstackRouterImports(create) {\n\treturn (context, optionsWithDefault) => {\n\t\tconst tanstackRouterImportSpecifiers = [];\n\t\tconst helpers = {\n\t\t\tisSpecificTanstackRouterImport(node, source) {\n\t\t\t\treturn !!tanstackRouterImportSpecifiers.find((specifier) => {\n\t\t\t\t\tif (specifier.type === TSESTree.AST_NODE_TYPES.ImportSpecifier && specifier.parent.type === TSESTree.AST_NODE_TYPES.ImportDeclaration && specifier.parent.source.value === source) return node.name === specifier.local.name;\n\t\t\t\t\treturn false;\n\t\t\t\t});\n\t\t\t},\n\t\t\tisTanstackRouterImport(node) {\n\t\t\t\treturn !!tanstackRouterImportSpecifiers.find((specifier) => {\n\t\t\t\t\tif (specifier.type === TSESTree.AST_NODE_TYPES.ImportSpecifier) return node.name === specifier.local.name;\n\t\t\t\t\treturn false;\n\t\t\t\t});\n\t\t\t}\n\t\t};\n\t\tconst detectionInstructions = { ImportDeclaration(node) {\n\t\t\tif (node.specifiers.length > 0 && node.importKind !== \"type\" && node.source.value.startsWith(\"@tanstack/\") && node.source.value.endsWith(\"-router\")) tanstackRouterImportSpecifiers.push(...node.specifiers);\n\t\t} };\n\t\tconst ruleInstructions = create(context, optionsWithDefault, helpers);\n\t\tconst enhancedRuleInstructions = {};\n\t\tnew Set(Object.keys(detectionInstructions).concat(Object.keys(ruleInstructions))).forEach((instruction) => {\n\t\t\tenhancedRuleInstructions[instruction] = (node) => {\n\t\t\t\tif (instruction in detectionInstructions) detectionInstructions[instruction]?.(node);\n\t\t\t\tconst ruleFunction = ruleInstructions[instruction];\n\t\t\t\tif (ruleFunction !== void 0) return ruleFunction(node);\n\t\t\t};\n\t\t});\n\t\treturn enhancedRuleInstructions;\n\t};\n}\n//#endregion\nexport { detectTanstackRouterImports };\n\n//# sourceMappingURL=detect-router-imports.js.map","//#region src/rules/create-route-property-order/create-route-property-order.utils.ts\nfunction sortDataByOrder(data, orderRules, key) {\n\tconst getSubsetIndex = (item, subsets) => {\n\t\tfor (let i = 0; i < subsets.length; i++) if (subsets[i]?.includes(item)) return i;\n\t\treturn null;\n\t};\n\tconst orderSets = orderRules.reduce((sets, [A, B]) => [\n\t\t...sets,\n\t\tA,\n\t\tB\n\t], []);\n\tconst inOrderArray = data.filter((item) => getSubsetIndex(item[key], orderSets) !== null);\n\tlet wasResorted = false;\n\tconst inOrderIterator = inOrderArray.sort((a, b) => {\n\t\tconst aKey = a[key], bKey = b[key];\n\t\tconst aSubsetIndex = getSubsetIndex(aKey, orderSets);\n\t\tconst bSubsetIndex = getSubsetIndex(bKey, orderSets);\n\t\tif (aSubsetIndex !== null && bSubsetIndex !== null && aSubsetIndex !== bSubsetIndex) return aSubsetIndex - bSubsetIndex;\n\t\treturn 0;\n\t}).values();\n\tconst result = data.map((item) => {\n\t\tif (getSubsetIndex(item[key], orderSets) !== null) {\n\t\t\tconst sortedItem = inOrderIterator.next().value;\n\t\t\tif (sortedItem[key] !== item[key]) wasResorted = true;\n\t\t\treturn sortedItem;\n\t\t}\n\t\treturn item;\n\t});\n\tif (!wasResorted) return null;\n\treturn result;\n}\nfunction getCheckedProperties(orderRules) {\n\treturn [...new Set(orderRules.flat(2))];\n}\n//#endregion\nexport { getCheckedProperties, sortDataByOrder };\n\n//# sourceMappingURL=create-route-property-order.utils.js.map","import { getCheckedProperties } from \"./create-route-property-order.utils.js\";\n//#region src/rules/create-route-property-order/constants.ts\nvar createRouteFunctionsIndirect = [\"createFileRoute\", \"createRootRouteWithContext\"];\nvar createRouteFunctions = [...[\"createRootRoute\", \"createRoute\"], ...createRouteFunctionsIndirect];\nvar sortRules = [\n\t[[\"params\", \"validateSearch\"], [\"search\"]],\n\t[[\"search\"], [\"loaderDeps\", \"ssr\"]],\n\t[[\"loaderDeps\"], [\"context\"]],\n\t[[\"context\"], [\"beforeLoad\"]],\n\t[[\"beforeLoad\"], [\"loader\"]],\n\t[[\"loader\"], [\n\t\t\"onEnter\",\n\t\t\"onStay\",\n\t\t\"onLeave\",\n\t\t\"head\",\n\t\t\"scripts\",\n\t\t\"headers\",\n\t\t\"remountDeps\"\n\t]]\n];\ngetCheckedProperties(sortRules);\n//#endregion\nexport { createRouteFunctions, createRouteFunctionsIndirect, sortRules };\n\n//# sourceMappingURL=constants.js.map","import { getDocsUrl } from \"../../utils/get-docs-url.js\";\nimport { detectTanstackRouterImports } from \"../../utils/detect-router-imports.js\";\nimport { sortDataByOrder } from \"./create-route-property-order.utils.js\";\nimport { createRouteFunctions, createRouteFunctionsIndirect, sortRules } from \"./constants.js\";\nimport { AST_NODE_TYPES, ESLintUtils } from \"@typescript-eslint/utils\";\n//#region src/rules/create-route-property-order/create-route-property-order.rule.ts\nvar createRule = ESLintUtils.RuleCreator(getDocsUrl);\nvar createRouteFunctionSet = new Set(createRouteFunctions);\nfunction isCreateRouteFunction(node) {\n\treturn createRouteFunctionSet.has(node);\n}\nvar name = \"create-route-property-order\";\nvar rule = createRule({\n\tname,\n\tmeta: {\n\t\ttype: \"problem\",\n\t\tdocs: {\n\t\t\tdescription: \"Ensure correct order of inference sensitive properties for createRoute functions\",\n\t\t\trecommended: \"error\"\n\t\t},\n\t\tmessages: { invalidOrder: \"Invalid order of properties for `{{function}}`.\" },\n\t\tschema: [],\n\t\thasSuggestions: true,\n\t\tfixable: \"code\"\n\t},\n\tdefaultOptions: [],\n\tcreate: detectTanstackRouterImports((context) => {\n\t\treturn { CallExpression(node) {\n\t\t\tif (node.callee.type !== AST_NODE_TYPES.Identifier) return;\n\t\t\tconst createRouteFunction = node.callee.name;\n\t\t\tif (!isCreateRouteFunction(createRouteFunction)) return;\n\t\t\tlet args = node.arguments;\n\t\t\tif (createRouteFunctionsIndirect.includes(createRouteFunction)) if (node.parent.type === AST_NODE_TYPES.CallExpression) args = node.parent.arguments;\n\t\t\telse return;\n\t\t\tconst argument = args[0];\n\t\t\tif (argument === void 0 || argument.type !== \"ObjectExpression\") return;\n\t\t\tconst allProperties = argument.properties;\n\t\t\tif (allProperties.length < 2) return;\n\t\t\tconst sortedProperties = sortDataByOrder(allProperties.flatMap((p) => {\n\t\t\t\tif (p.type === AST_NODE_TYPES.Property && p.key.type === AST_NODE_TYPES.Identifier) return {\n\t\t\t\t\tname: p.key.name,\n\t\t\t\t\tproperty: p\n\t\t\t\t};\n\t\t\t\telse if (p.type === AST_NODE_TYPES.SpreadElement) if (p.argument.type === AST_NODE_TYPES.Identifier) return {\n\t\t\t\t\tname: p.argument.name,\n\t\t\t\t\tproperty: p\n\t\t\t\t};\n\t\t\t\telse throw new Error(\"Unsupported spread element\");\n\t\t\t\treturn [];\n\t\t\t}), sortRules, \"name\");\n\t\t\tif (sortedProperties === null) return;\n\t\t\tcontext.report({\n\t\t\t\tnode: argument,\n\t\t\t\tdata: { function: node.callee.name },\n\t\t\t\tmessageId: \"invalidOrder\",\n\t\t\t\tfix(fixer) {\n\t\t\t\t\tconst sourceCode = context.sourceCode;\n\t\t\t\t\tconst text = sortedProperties.reduce((sourceText, specifier, index) => {\n\t\t\t\t\t\tlet text = \"\";\n\t\t\t\t\t\tif (index < allProperties.length - 1) text = sourceCode.getText().slice(allProperties[index].range[1], allProperties[index + 1].range[0]);\n\t\t\t\t\t\treturn sourceText + sourceCode.getText(specifier.property) + text;\n\t\t\t\t\t}, \"\");\n\t\t\t\t\treturn fixer.replaceTextRange([allProperties[0].range[0], allProperties.at(-1).range[1]], text);\n\t\t\t\t}\n\t\t\t});\n\t\t} };\n\t})\n});\n//#endregion\nexport { name, rule };\n\n//# sourceMappingURL=create-route-property-order.rule.js.map","//#region src/rules/route-param-names/constants.ts\n/**\n* Functions where the path is passed as the first argument (string literal)\n* e.g., createFileRoute('/path/$param')(...)\n*/\nvar pathAsFirstArgFunctions = [\n\t\"createFileRoute\",\n\t\"createLazyFileRoute\",\n\t\"createLazyRoute\"\n];\n/**\n* Functions where the path is a property in the options object\n* e.g., createRoute({ path: '/path/$param' })\n*/\nvar pathAsPropertyFunctions = [\"createRoute\"];\n[...pathAsFirstArgFunctions, ...pathAsPropertyFunctions];\n/**\n* Regex for valid JavaScript identifier (param name)\n* Must start with letter, underscore, or dollar sign\n* Can contain letters, numbers, underscores, or dollar signs\n*/\nvar VALID_PARAM_NAME_REGEX = /^[a-zA-Z_$][a-zA-Z0-9_$]*$/;\n//#endregion\nexport { VALID_PARAM_NAME_REGEX, pathAsFirstArgFunctions, pathAsPropertyFunctions };\n\n//# sourceMappingURL=constants.js.map","import { VALID_PARAM_NAME_REGEX } from \"./constants.js\";\n//#region src/rules/route-param-names/route-param-names.utils.ts\n/**\n* Extracts param names from a route path segment.\n*\n* Handles these patterns:\n* - $paramName -> extract \"paramName\"\n* - {$paramName} -> extract \"paramName\"\n* - prefix{$paramName}suffix -> extract \"paramName\"\n* - {-$paramName} -> extract \"paramName\" (optional)\n* - prefix{-$paramName}suffix -> extract \"paramName\" (optional)\n* - $ or {$} -> wildcard, skip validation\n*/\nfunction extractParamsFromSegment(segment) {\n\tconst params = [];\n\tif (!segment || !segment.includes(\"$\")) return params;\n\tif (segment === \"$\" || segment === \"{$}\") return params;\n\tif (segment.startsWith(\"$\") && !segment.includes(\"{\")) {\n\t\tconst paramName = segment.slice(1);\n\t\tif (paramName) params.push({\n\t\t\tfullParam: segment,\n\t\t\tparamName,\n\t\t\tisOptional: false,\n\t\t\tisValid: VALID_PARAM_NAME_REGEX.test(paramName)\n\t\t});\n\t\treturn params;\n\t}\n\tconst bracePattern = /\\{(-?\\$)([^}]*)\\}/g;\n\tlet match;\n\twhile ((match = bracePattern.exec(segment)) !== null) {\n\t\tconst prefix = match[1];\n\t\tconst paramName = match[2];\n\t\tif (!paramName) continue;\n\t\tconst isOptional = prefix === \"-$\";\n\t\tparams.push({\n\t\t\tfullParam: `${prefix}${paramName}`,\n\t\t\tparamName,\n\t\t\tisOptional,\n\t\t\tisValid: VALID_PARAM_NAME_REGEX.test(paramName)\n\t\t});\n\t}\n\treturn params;\n}\n/**\n* Extracts all params from a route path.\n*\n* @param path - The route path (e.g., \"/users/$userId/posts/$postId\")\n* @returns Array of extracted params with validation info\n*/\nfunction extractParamsFromPath(path) {\n\tif (!path || !path.includes(\"$\")) return [];\n\tconst segments = path.split(\"/\");\n\tconst allParams = [];\n\tfor (const segment of segments) {\n\t\tconst params = extractParamsFromSegment(segment);\n\t\tallParams.push(...params);\n\t}\n\treturn allParams;\n}\n/**\n* Gets all invalid params from a route path.\n*\n* @param path - The route path\n* @returns Array of invalid param info\n*/\nfunction getInvalidParams(path) {\n\treturn extractParamsFromPath(path).filter((p) => !p.isValid);\n}\n//#endregion\nexport { getInvalidParams };\n\n//# sourceMappingURL=route-param-names.utils.js.map","import { getDocsUrl } from \"../../utils/get-docs-url.js\";\nimport { detectTanstackRouterImports } from \"../../utils/detect-router-imports.js\";\nimport { pathAsFirstArgFunctions, pathAsPropertyFunctions } from \"./constants.js\";\nimport { getInvalidParams } from \"./route-param-names.utils.js\";\nimport { AST_NODE_TYPES, ESLintUtils } from \"@typescript-eslint/utils\";\n//#region src/rules/route-param-names/route-param-names.rule.ts\nvar createRule = ESLintUtils.RuleCreator(getDocsUrl);\nvar pathAsFirstArgSet = new Set(pathAsFirstArgFunctions);\nvar pathAsPropertySet = new Set(pathAsPropertyFunctions);\nvar name = \"route-param-names\";\nvar rule = createRule({\n\tname,\n\tmeta: {\n\t\ttype: \"problem\",\n\t\tdocs: {\n\t\t\tdescription: \"Ensure route param names are valid JavaScript identifiers\",\n\t\t\trecommended: \"error\"\n\t\t},\n\t\tmessages: { invalidParamName: \"Invalid param name \\\"{{paramName}}\\\" in route path. Param names must be valid JavaScript identifiers (match /[a-zA-Z_$][a-zA-Z0-9_$]*/).\" },\n\t\tschema: []\n\t},\n\tdefaultOptions: [],\n\tcreate: detectTanstackRouterImports((context, _, helpers) => {\n\t\tfunction reportInvalidParams(node, path) {\n\t\t\tconst invalidParams = getInvalidParams(path);\n\t\t\tfor (const param of invalidParams) context.report({\n\t\t\t\tnode,\n\t\t\t\tmessageId: \"invalidParamName\",\n\t\t\t\tdata: { paramName: param.paramName }\n\t\t\t});\n\t\t}\n\t\tfunction getStringLiteralValue(node) {\n\t\t\tif (node.type === AST_NODE_TYPES.Literal && typeof node.value === \"string\") return node.value;\n\t\t\tif (node.type === AST_NODE_TYPES.TemplateLiteral && node.quasis.length === 1) {\n\t\t\t\tconst cooked = node.quasis[0]?.value.cooked;\n\t\t\t\tif (cooked != null) return cooked;\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t\treturn { CallExpression(node) {\n\t\t\tif (node.callee.type === AST_NODE_TYPES.Identifier) {\n\t\t\t\tconst funcName = node.callee.name;\n\t\t\t\tif (!helpers.isTanstackRouterImport(node.callee)) return;\n\t\t\t\tif (pathAsPropertySet.has(funcName)) {\n\t\t\t\t\tconst arg = node.arguments[0];\n\t\t\t\t\tif (arg?.type === AST_NODE_TYPES.ObjectExpression) {\n\t\t\t\t\t\tfor (const prop of arg.properties) if (prop.type === AST_NODE_TYPES.Property) {\n\t\t\t\t\t\t\tif (prop.key.type === AST_NODE_TYPES.Identifier && prop.key.name === \"path\" || prop.key.type === AST_NODE_TYPES.Literal && prop.key.value === \"path\") {\n\t\t\t\t\t\t\t\tconst pathValue = getStringLiteralValue(prop.value);\n\t\t\t\t\t\t\t\tif (pathValue) reportInvalidParams(prop.value, pathValue);\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\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (node.callee.type === AST_NODE_TYPES.CallExpression) {\n\t\t\t\tconst innerCall = node.callee;\n\t\t\t\tif (innerCall.callee.type === AST_NODE_TYPES.Identifier) {\n\t\t\t\t\tconst funcName = innerCall.callee.name;\n\t\t\t\t\tif (!helpers.isTanstackRouterImport(innerCall.callee)) return;\n\t\t\t\t\tif (pathAsFirstArgSet.has(funcName)) {\n\t\t\t\t\t\tconst pathArg = innerCall.arguments[0];\n\t\t\t\t\t\tif (pathArg) {\n\t\t\t\t\t\t\tconst pathValue = getStringLiteralValue(pathArg);\n\t\t\t\t\t\t\tif (pathValue) reportInvalidParams(pathArg, pathValue);\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})\n});\n//#endregion\nexport { name, rule };\n\n//# sourceMappingURL=route-param-names.rule.js.map","import { name, rule } from \"./rules/create-route-property-order/create-route-property-order.rule.js\";\nimport { name as name$1, rule as rule$1 } from \"./rules/route-param-names/route-param-names.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-router\" },\n\tconfigs: {},\n\trules\n};\nObject.assign(plugin.configs, {\n\trecommended: {\n\t\tplugins: [\"@tanstack/eslint-plugin-router\"],\n\t\trules: {\n\t\t\t\"@tanstack/router/create-route-property-order\": \"warn\",\n\t\t\t\"@tanstack/router/route-param-names\": \"error\"\n\t\t}\n\t},\n\t\"flat/recommended\": [{\n\t\tplugins: { \"@tanstack/router\": plugin },\n\t\trules: {\n\t\t\t\"@tanstack/router/create-route-property-order\": \"warn\",\n\t\t\t\"@tanstack/router/route-param-names\": \"error\"\n\t\t}\n\t}]\n});\n//#endregion\nexport { plugin as default };\n\n//# sourceMappingURL=index.js.map","import tanstackRouter from \"@tanstack/eslint-plugin-router\";\n\nimport { plainRules, upstreamPlugin } from \"#/entities/upstream-plugin/index.ts\";\nimport type { UpstreamPlugin } from \"#/entities/upstream-plugin/index.ts\";\n\nexport type ConfigName = \"recommended\" | \"flat/recommended\";\n\nconst plugin: UpstreamPlugin<ConfigName> = upstreamPlugin(\n \"tanstack-router\",\n tanstackRouter,\n plainRules,\n);\n\nexport default plugin;\n"],"ignoreList":[0,1,2,3,4,5,6,7,8,9],"mappings":";;;AACA,IAAI,cAAc,aAAa,kDAAkD;;ACD9B,6BAAA;AAEnD,SAAS,4BAA4B,QAAQ;CAC5C,QAAQ,SAAS,uBAAuB;EACvC,MAAM,iCAAiC,CAAC;EACxC,MAAM,UAAU;GACf,+BAA+B,MAAM,QAAQ;IAC5C,OAAO,CAAC,CAAC,+BAA+B,MAAM,cAAc;KAC3D,IAAI,UAAU,SAASA,YAAAA,SAAS,eAAe,mBAAmB,UAAU,OAAO,SAASA,YAAAA,SAAS,eAAe,qBAAqB,UAAU,OAAO,OAAO,UAAU,QAAQ,OAAO,KAAK,SAAS,UAAU,MAAM;KACxN,OAAO;IACR,CAAC;GACF;GACA,uBAAuB,MAAM;IAC5B,OAAO,CAAC,CAAC,+BAA+B,MAAM,cAAc;KAC3D,IAAI,UAAU,SAASA,YAAAA,SAAS,eAAe,iBAAiB,OAAO,KAAK,SAAS,UAAU,MAAM;KACrG,OAAO;IACR,CAAC;GACF;EACD;EACA,MAAM,wBAAwB,EAAE,kBAAkB,MAAM;GACvD,IAAI,KAAK,WAAW,SAAS,KAAK,KAAK,eAAe,UAAU,KAAK,OAAO,MAAM,WAAW,YAAY,KAAK,KAAK,OAAO,MAAM,SAAS,SAAS,GAAG,+BAA+B,KAAK,GAAG,KAAK,UAAU;EAC5M,EAAE;EACF,MAAM,mBAAmB,OAAO,SAAS,oBAAoB,OAAO;EACpE,MAAM,2BAA2B,CAAC;EAClC,IAAI,IAAI,OAAO,KAAK,qBAAqB,CAAC,CAAC,OAAO,OAAO,KAAK,gBAAgB,CAAC,CAAC,CAAC,C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;OACzD;;;KAGF;IACD;GACD;GACA,IAAI,KAAK,OAAO,SAASA,YAAAA,eAAe,gBAAgB;IACvD,MAAM,YAAY,KAAK;IACvB,IAAI,UAAU,OAAO,SAASA,YAAAA,eAAe,YAAY;KACxD,MAAM,WAAW,UAAU,OAAO;KAClC,IAAI,CAAC,QAAQ,uBAAuB,UAAU,MAAM,GAAG;KACvD,IAAI,kBAAkB,IAAI,QAAQ,GAAG;MACpC,MAAM,UAAU,UAAU,UAAU;MACpC,IAAI,SAAS;OACZ,MAAM,YAAY,sBAAsB,OAAO;OAC/C,IAAI,WAAW,oBAAoB,SAAS,SAAS;MACtD;KACD;IACD;GACD;EACD,EAAE;CACH,CAAC;AACF,CAAC;;AEtED,IAAIK,WAAS;CACZ,MAAM,EAAE,MAAM,iCAAiC;CAC/C,SAAS,CAAC;CACV;GDDCJ,SAAOC;GACPC,OAASC;CCAV;AACD;AACA,OAAO,OAAOC,SAAO,SAAS;CAC7B,aAAa;EACZ,SAAS,CAAC,gCAAgC;EAC1C,OAAO;GACN,gDAAgD;GAChD,sCAAsC;EACvC;CACD;CACA,oBAAoB,CAAC;EACpB,SAAS,EAAE,oBAAoBA,SAAO;EACtC,OAAO;GACN,gDAAgD;GAChD,sCAAsC;EACvC;CACD,CAAC;AACF,CAAC;;ACfD,MAAM,SAAqC,eACzC,mBACAC,UACA,UACF"}
|
|
1
|
+
{"version":3,"file":"tanstack-router.mjs","names":["TSESTree","createRule","ESLintUtils","name","rule","AST_NODE_TYPES","ESLintUtils","AST_NODE_TYPES","name","rule","name$1","rule$1","plugin","tanstackRouter"],"sources":["../../../node_modules/.pnpm/@tanstack+eslint-plugin-router@1.162.0_eslint@10.15.0_jiti@2.7.0_supports-color@10.2.2__8fb567d3bcebbe20dd0c072b67d138f7/node_modules/@tanstack/eslint-plugin-router/dist/esm/utils/get-docs-url.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-router@1.162.0_eslint@10.15.0_jiti@2.7.0_supports-color@10.2.2__8fb567d3bcebbe20dd0c072b67d138f7/node_modules/@tanstack/eslint-plugin-router/dist/esm/utils/detect-router-imports.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-router@1.162.0_eslint@10.15.0_jiti@2.7.0_supports-color@10.2.2__8fb567d3bcebbe20dd0c072b67d138f7/node_modules/@tanstack/eslint-plugin-router/dist/esm/rules/create-route-property-order/create-route-property-order.utils.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-router@1.162.0_eslint@10.15.0_jiti@2.7.0_supports-color@10.2.2__8fb567d3bcebbe20dd0c072b67d138f7/node_modules/@tanstack/eslint-plugin-router/dist/esm/rules/create-route-property-order/constants.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-router@1.162.0_eslint@10.15.0_jiti@2.7.0_supports-color@10.2.2__8fb567d3bcebbe20dd0c072b67d138f7/node_modules/@tanstack/eslint-plugin-router/dist/esm/rules/create-route-property-order/create-route-property-order.rule.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-router@1.162.0_eslint@10.15.0_jiti@2.7.0_supports-color@10.2.2__8fb567d3bcebbe20dd0c072b67d138f7/node_modules/@tanstack/eslint-plugin-router/dist/esm/rules/route-param-names/constants.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-router@1.162.0_eslint@10.15.0_jiti@2.7.0_supports-color@10.2.2__8fb567d3bcebbe20dd0c072b67d138f7/node_modules/@tanstack/eslint-plugin-router/dist/esm/rules/route-param-names/route-param-names.utils.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-router@1.162.0_eslint@10.15.0_jiti@2.7.0_supports-color@10.2.2__8fb567d3bcebbe20dd0c072b67d138f7/node_modules/@tanstack/eslint-plugin-router/dist/esm/rules/route-param-names/route-param-names.rule.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-router@1.162.0_eslint@10.15.0_jiti@2.7.0_supports-color@10.2.2__8fb567d3bcebbe20dd0c072b67d138f7/node_modules/@tanstack/eslint-plugin-router/dist/esm/rules.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-router@1.162.0_eslint@10.15.0_jiti@2.7.0_supports-color@10.2.2__8fb567d3bcebbe20dd0c072b67d138f7/node_modules/@tanstack/eslint-plugin-router/dist/esm/index.js","../src/app/tanstack-router.ts"],"sourcesContent":["//#region src/utils/get-docs-url.ts\nvar getDocsUrl = (ruleName) => `https://tanstack.com/router/latest/docs/eslint/${ruleName}`;\n//#endregion\nexport { getDocsUrl };\n\n//# sourceMappingURL=get-docs-url.js.map","import { TSESTree } from \"@typescript-eslint/utils\";\n//#region src/utils/detect-router-imports.ts\nfunction detectTanstackRouterImports(create) {\n\treturn (context, optionsWithDefault) => {\n\t\tconst tanstackRouterImportSpecifiers = [];\n\t\tconst helpers = {\n\t\t\tisSpecificTanstackRouterImport(node, source) {\n\t\t\t\treturn !!tanstackRouterImportSpecifiers.find((specifier) => {\n\t\t\t\t\tif (specifier.type === TSESTree.AST_NODE_TYPES.ImportSpecifier && specifier.parent.type === TSESTree.AST_NODE_TYPES.ImportDeclaration && specifier.parent.source.value === source) return node.name === specifier.local.name;\n\t\t\t\t\treturn false;\n\t\t\t\t});\n\t\t\t},\n\t\t\tisTanstackRouterImport(node) {\n\t\t\t\treturn !!tanstackRouterImportSpecifiers.find((specifier) => {\n\t\t\t\t\tif (specifier.type === TSESTree.AST_NODE_TYPES.ImportSpecifier) return node.name === specifier.local.name;\n\t\t\t\t\treturn false;\n\t\t\t\t});\n\t\t\t}\n\t\t};\n\t\tconst detectionInstructions = { ImportDeclaration(node) {\n\t\t\tif (node.specifiers.length > 0 && node.importKind !== \"type\" && node.source.value.startsWith(\"@tanstack/\") && node.source.value.endsWith(\"-router\")) tanstackRouterImportSpecifiers.push(...node.specifiers);\n\t\t} };\n\t\tconst ruleInstructions = create(context, optionsWithDefault, helpers);\n\t\tconst enhancedRuleInstructions = {};\n\t\tnew Set(Object.keys(detectionInstructions).concat(Object.keys(ruleInstructions))).forEach((instruction) => {\n\t\t\tenhancedRuleInstructions[instruction] = (node) => {\n\t\t\t\tif (instruction in detectionInstructions) detectionInstructions[instruction]?.(node);\n\t\t\t\tconst ruleFunction = ruleInstructions[instruction];\n\t\t\t\tif (ruleFunction !== void 0) return ruleFunction(node);\n\t\t\t};\n\t\t});\n\t\treturn enhancedRuleInstructions;\n\t};\n}\n//#endregion\nexport { detectTanstackRouterImports };\n\n//# sourceMappingURL=detect-router-imports.js.map","//#region src/rules/create-route-property-order/create-route-property-order.utils.ts\nfunction sortDataByOrder(data, orderRules, key) {\n\tconst getSubsetIndex = (item, subsets) => {\n\t\tfor (let i = 0; i < subsets.length; i++) if (subsets[i]?.includes(item)) return i;\n\t\treturn null;\n\t};\n\tconst orderSets = orderRules.reduce((sets, [A, B]) => [\n\t\t...sets,\n\t\tA,\n\t\tB\n\t], []);\n\tconst inOrderArray = data.filter((item) => getSubsetIndex(item[key], orderSets) !== null);\n\tlet wasResorted = false;\n\tconst inOrderIterator = inOrderArray.sort((a, b) => {\n\t\tconst aKey = a[key], bKey = b[key];\n\t\tconst aSubsetIndex = getSubsetIndex(aKey, orderSets);\n\t\tconst bSubsetIndex = getSubsetIndex(bKey, orderSets);\n\t\tif (aSubsetIndex !== null && bSubsetIndex !== null && aSubsetIndex !== bSubsetIndex) return aSubsetIndex - bSubsetIndex;\n\t\treturn 0;\n\t}).values();\n\tconst result = data.map((item) => {\n\t\tif (getSubsetIndex(item[key], orderSets) !== null) {\n\t\t\tconst sortedItem = inOrderIterator.next().value;\n\t\t\tif (sortedItem[key] !== item[key]) wasResorted = true;\n\t\t\treturn sortedItem;\n\t\t}\n\t\treturn item;\n\t});\n\tif (!wasResorted) return null;\n\treturn result;\n}\nfunction getCheckedProperties(orderRules) {\n\treturn [...new Set(orderRules.flat(2))];\n}\n//#endregion\nexport { getCheckedProperties, sortDataByOrder };\n\n//# sourceMappingURL=create-route-property-order.utils.js.map","import { getCheckedProperties } from \"./create-route-property-order.utils.js\";\n//#region src/rules/create-route-property-order/constants.ts\nvar createRouteFunctionsIndirect = [\"createFileRoute\", \"createRootRouteWithContext\"];\nvar createRouteFunctions = [...[\"createRootRoute\", \"createRoute\"], ...createRouteFunctionsIndirect];\nvar sortRules = [\n\t[[\"params\", \"validateSearch\"], [\"search\"]],\n\t[[\"search\"], [\"loaderDeps\", \"ssr\"]],\n\t[[\"loaderDeps\"], [\"context\"]],\n\t[[\"context\"], [\"beforeLoad\"]],\n\t[[\"beforeLoad\"], [\"loader\"]],\n\t[[\"loader\"], [\n\t\t\"onEnter\",\n\t\t\"onStay\",\n\t\t\"onLeave\",\n\t\t\"head\",\n\t\t\"scripts\",\n\t\t\"headers\",\n\t\t\"remountDeps\"\n\t]]\n];\ngetCheckedProperties(sortRules);\n//#endregion\nexport { createRouteFunctions, createRouteFunctionsIndirect, sortRules };\n\n//# sourceMappingURL=constants.js.map","import { getDocsUrl } from \"../../utils/get-docs-url.js\";\nimport { detectTanstackRouterImports } from \"../../utils/detect-router-imports.js\";\nimport { sortDataByOrder } from \"./create-route-property-order.utils.js\";\nimport { createRouteFunctions, createRouteFunctionsIndirect, sortRules } from \"./constants.js\";\nimport { AST_NODE_TYPES, ESLintUtils } from \"@typescript-eslint/utils\";\n//#region src/rules/create-route-property-order/create-route-property-order.rule.ts\nvar createRule = ESLintUtils.RuleCreator(getDocsUrl);\nvar createRouteFunctionSet = new Set(createRouteFunctions);\nfunction isCreateRouteFunction(node) {\n\treturn createRouteFunctionSet.has(node);\n}\nvar name = \"create-route-property-order\";\nvar rule = createRule({\n\tname,\n\tmeta: {\n\t\ttype: \"problem\",\n\t\tdocs: {\n\t\t\tdescription: \"Ensure correct order of inference sensitive properties for createRoute functions\",\n\t\t\trecommended: \"error\"\n\t\t},\n\t\tmessages: { invalidOrder: \"Invalid order of properties for `{{function}}`.\" },\n\t\tschema: [],\n\t\thasSuggestions: true,\n\t\tfixable: \"code\"\n\t},\n\tdefaultOptions: [],\n\tcreate: detectTanstackRouterImports((context) => {\n\t\treturn { CallExpression(node) {\n\t\t\tif (node.callee.type !== AST_NODE_TYPES.Identifier) return;\n\t\t\tconst createRouteFunction = node.callee.name;\n\t\t\tif (!isCreateRouteFunction(createRouteFunction)) return;\n\t\t\tlet args = node.arguments;\n\t\t\tif (createRouteFunctionsIndirect.includes(createRouteFunction)) if (node.parent.type === AST_NODE_TYPES.CallExpression) args = node.parent.arguments;\n\t\t\telse return;\n\t\t\tconst argument = args[0];\n\t\t\tif (argument === void 0 || argument.type !== \"ObjectExpression\") return;\n\t\t\tconst allProperties = argument.properties;\n\t\t\tif (allProperties.length < 2) return;\n\t\t\tconst sortedProperties = sortDataByOrder(allProperties.flatMap((p) => {\n\t\t\t\tif (p.type === AST_NODE_TYPES.Property && p.key.type === AST_NODE_TYPES.Identifier) return {\n\t\t\t\t\tname: p.key.name,\n\t\t\t\t\tproperty: p\n\t\t\t\t};\n\t\t\t\telse if (p.type === AST_NODE_TYPES.SpreadElement) if (p.argument.type === AST_NODE_TYPES.Identifier) return {\n\t\t\t\t\tname: p.argument.name,\n\t\t\t\t\tproperty: p\n\t\t\t\t};\n\t\t\t\telse throw new Error(\"Unsupported spread element\");\n\t\t\t\treturn [];\n\t\t\t}), sortRules, \"name\");\n\t\t\tif (sortedProperties === null) return;\n\t\t\tcontext.report({\n\t\t\t\tnode: argument,\n\t\t\t\tdata: { function: node.callee.name },\n\t\t\t\tmessageId: \"invalidOrder\",\n\t\t\t\tfix(fixer) {\n\t\t\t\t\tconst sourceCode = context.sourceCode;\n\t\t\t\t\tconst text = sortedProperties.reduce((sourceText, specifier, index) => {\n\t\t\t\t\t\tlet text = \"\";\n\t\t\t\t\t\tif (index < allProperties.length - 1) text = sourceCode.getText().slice(allProperties[index].range[1], allProperties[index + 1].range[0]);\n\t\t\t\t\t\treturn sourceText + sourceCode.getText(specifier.property) + text;\n\t\t\t\t\t}, \"\");\n\t\t\t\t\treturn fixer.replaceTextRange([allProperties[0].range[0], allProperties.at(-1).range[1]], text);\n\t\t\t\t}\n\t\t\t});\n\t\t} };\n\t})\n});\n//#endregion\nexport { name, rule };\n\n//# sourceMappingURL=create-route-property-order.rule.js.map","//#region src/rules/route-param-names/constants.ts\n/**\n* Functions where the path is passed as the first argument (string literal)\n* e.g., createFileRoute('/path/$param')(...)\n*/\nvar pathAsFirstArgFunctions = [\n\t\"createFileRoute\",\n\t\"createLazyFileRoute\",\n\t\"createLazyRoute\"\n];\n/**\n* Functions where the path is a property in the options object\n* e.g., createRoute({ path: '/path/$param' })\n*/\nvar pathAsPropertyFunctions = [\"createRoute\"];\n[...pathAsFirstArgFunctions, ...pathAsPropertyFunctions];\n/**\n* Regex for valid JavaScript identifier (param name)\n* Must start with letter, underscore, or dollar sign\n* Can contain letters, numbers, underscores, or dollar signs\n*/\nvar VALID_PARAM_NAME_REGEX = /^[a-zA-Z_$][a-zA-Z0-9_$]*$/;\n//#endregion\nexport { VALID_PARAM_NAME_REGEX, pathAsFirstArgFunctions, pathAsPropertyFunctions };\n\n//# sourceMappingURL=constants.js.map","import { VALID_PARAM_NAME_REGEX } from \"./constants.js\";\n//#region src/rules/route-param-names/route-param-names.utils.ts\n/**\n* Extracts param names from a route path segment.\n*\n* Handles these patterns:\n* - $paramName -> extract \"paramName\"\n* - {$paramName} -> extract \"paramName\"\n* - prefix{$paramName}suffix -> extract \"paramName\"\n* - {-$paramName} -> extract \"paramName\" (optional)\n* - prefix{-$paramName}suffix -> extract \"paramName\" (optional)\n* - $ or {$} -> wildcard, skip validation\n*/\nfunction extractParamsFromSegment(segment) {\n\tconst params = [];\n\tif (!segment || !segment.includes(\"$\")) return params;\n\tif (segment === \"$\" || segment === \"{$}\") return params;\n\tif (segment.startsWith(\"$\") && !segment.includes(\"{\")) {\n\t\tconst paramName = segment.slice(1);\n\t\tif (paramName) params.push({\n\t\t\tfullParam: segment,\n\t\t\tparamName,\n\t\t\tisOptional: false,\n\t\t\tisValid: VALID_PARAM_NAME_REGEX.test(paramName)\n\t\t});\n\t\treturn params;\n\t}\n\tconst bracePattern = /\\{(-?\\$)([^}]*)\\}/g;\n\tlet match;\n\twhile ((match = bracePattern.exec(segment)) !== null) {\n\t\tconst prefix = match[1];\n\t\tconst paramName = match[2];\n\t\tif (!paramName) continue;\n\t\tconst isOptional = prefix === \"-$\";\n\t\tparams.push({\n\t\t\tfullParam: `${prefix}${paramName}`,\n\t\t\tparamName,\n\t\t\tisOptional,\n\t\t\tisValid: VALID_PARAM_NAME_REGEX.test(paramName)\n\t\t});\n\t}\n\treturn params;\n}\n/**\n* Extracts all params from a route path.\n*\n* @param path - The route path (e.g., \"/users/$userId/posts/$postId\")\n* @returns Array of extracted params with validation info\n*/\nfunction extractParamsFromPath(path) {\n\tif (!path || !path.includes(\"$\")) return [];\n\tconst segments = path.split(\"/\");\n\tconst allParams = [];\n\tfor (const segment of segments) {\n\t\tconst params = extractParamsFromSegment(segment);\n\t\tallParams.push(...params);\n\t}\n\treturn allParams;\n}\n/**\n* Gets all invalid params from a route path.\n*\n* @param path - The route path\n* @returns Array of invalid param info\n*/\nfunction getInvalidParams(path) {\n\treturn extractParamsFromPath(path).filter((p) => !p.isValid);\n}\n//#endregion\nexport { getInvalidParams };\n\n//# sourceMappingURL=route-param-names.utils.js.map","import { getDocsUrl } from \"../../utils/get-docs-url.js\";\nimport { detectTanstackRouterImports } from \"../../utils/detect-router-imports.js\";\nimport { pathAsFirstArgFunctions, pathAsPropertyFunctions } from \"./constants.js\";\nimport { getInvalidParams } from \"./route-param-names.utils.js\";\nimport { AST_NODE_TYPES, ESLintUtils } from \"@typescript-eslint/utils\";\n//#region src/rules/route-param-names/route-param-names.rule.ts\nvar createRule = ESLintUtils.RuleCreator(getDocsUrl);\nvar pathAsFirstArgSet = new Set(pathAsFirstArgFunctions);\nvar pathAsPropertySet = new Set(pathAsPropertyFunctions);\nvar name = \"route-param-names\";\nvar rule = createRule({\n\tname,\n\tmeta: {\n\t\ttype: \"problem\",\n\t\tdocs: {\n\t\t\tdescription: \"Ensure route param names are valid JavaScript identifiers\",\n\t\t\trecommended: \"error\"\n\t\t},\n\t\tmessages: { invalidParamName: \"Invalid param name \\\"{{paramName}}\\\" in route path. Param names must be valid JavaScript identifiers (match /[a-zA-Z_$][a-zA-Z0-9_$]*/).\" },\n\t\tschema: []\n\t},\n\tdefaultOptions: [],\n\tcreate: detectTanstackRouterImports((context, _, helpers) => {\n\t\tfunction reportInvalidParams(node, path) {\n\t\t\tconst invalidParams = getInvalidParams(path);\n\t\t\tfor (const param of invalidParams) context.report({\n\t\t\t\tnode,\n\t\t\t\tmessageId: \"invalidParamName\",\n\t\t\t\tdata: { paramName: param.paramName }\n\t\t\t});\n\t\t}\n\t\tfunction getStringLiteralValue(node) {\n\t\t\tif (node.type === AST_NODE_TYPES.Literal && typeof node.value === \"string\") return node.value;\n\t\t\tif (node.type === AST_NODE_TYPES.TemplateLiteral && node.quasis.length === 1) {\n\t\t\t\tconst cooked = node.quasis[0]?.value.cooked;\n\t\t\t\tif (cooked != null) return cooked;\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t\treturn { CallExpression(node) {\n\t\t\tif (node.callee.type === AST_NODE_TYPES.Identifier) {\n\t\t\t\tconst funcName = node.callee.name;\n\t\t\t\tif (!helpers.isTanstackRouterImport(node.callee)) return;\n\t\t\t\tif (pathAsPropertySet.has(funcName)) {\n\t\t\t\t\tconst arg = node.arguments[0];\n\t\t\t\t\tif (arg?.type === AST_NODE_TYPES.ObjectExpression) {\n\t\t\t\t\t\tfor (const prop of arg.properties) if (prop.type === AST_NODE_TYPES.Property) {\n\t\t\t\t\t\t\tif (prop.key.type === AST_NODE_TYPES.Identifier && prop.key.name === \"path\" || prop.key.type === AST_NODE_TYPES.Literal && prop.key.value === \"path\") {\n\t\t\t\t\t\t\t\tconst pathValue = getStringLiteralValue(prop.value);\n\t\t\t\t\t\t\t\tif (pathValue) reportInvalidParams(prop.value, pathValue);\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\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (node.callee.type === AST_NODE_TYPES.CallExpression) {\n\t\t\t\tconst innerCall = node.callee;\n\t\t\t\tif (innerCall.callee.type === AST_NODE_TYPES.Identifier) {\n\t\t\t\t\tconst funcName = innerCall.callee.name;\n\t\t\t\t\tif (!helpers.isTanstackRouterImport(innerCall.callee)) return;\n\t\t\t\t\tif (pathAsFirstArgSet.has(funcName)) {\n\t\t\t\t\t\tconst pathArg = innerCall.arguments[0];\n\t\t\t\t\t\tif (pathArg) {\n\t\t\t\t\t\t\tconst pathValue = getStringLiteralValue(pathArg);\n\t\t\t\t\t\t\tif (pathValue) reportInvalidParams(pathArg, pathValue);\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})\n});\n//#endregion\nexport { name, rule };\n\n//# sourceMappingURL=route-param-names.rule.js.map","import { name, rule } from \"./rules/create-route-property-order/create-route-property-order.rule.js\";\nimport { name as name$1, rule as rule$1 } from \"./rules/route-param-names/route-param-names.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-router\" },\n\tconfigs: {},\n\trules\n};\nObject.assign(plugin.configs, {\n\trecommended: {\n\t\tplugins: [\"@tanstack/eslint-plugin-router\"],\n\t\trules: {\n\t\t\t\"@tanstack/router/create-route-property-order\": \"warn\",\n\t\t\t\"@tanstack/router/route-param-names\": \"error\"\n\t\t}\n\t},\n\t\"flat/recommended\": [{\n\t\tplugins: { \"@tanstack/router\": plugin },\n\t\trules: {\n\t\t\t\"@tanstack/router/create-route-property-order\": \"warn\",\n\t\t\t\"@tanstack/router/route-param-names\": \"error\"\n\t\t}\n\t}]\n});\n//#endregion\nexport { plugin as default };\n\n//# sourceMappingURL=index.js.map","import tanstackRouter from \"@tanstack/eslint-plugin-router\";\n\nimport { plainRules, upstreamPlugin } from \"#/entities/upstream-plugin/index.ts\";\nimport type { UpstreamPlugin } from \"#/entities/upstream-plugin/index.ts\";\n\nexport type ConfigName = \"recommended\" | \"flat/recommended\";\n\nconst plugin: UpstreamPlugin<ConfigName> = upstreamPlugin(\n \"tanstack-router\",\n tanstackRouter,\n plainRules,\n);\n\nexport default plugin;\n"],"ignoreList":[0,1,2,3,4,5,6,7,8,9],"mappings":";;;AACA,IAAI,cAAc,aAAa,kDAAkD;;ACD9B,6BAAA;AAEnD,SAAS,4BAA4B,QAAQ;CAC5C,QAAQ,SAAS,uBAAuB;EACvC,MAAM,iCAAiC,CAAC;EACxC,MAAM,UAAU;GACf,+BAA+B,MAAM,QAAQ;IAC5C,OAAO,CAAC,CAAC,+BAA+B,MAAM,cAAc;KAC3D,IAAI,UAAU,SAASA,YAAAA,SAAS,eAAe,mBAAmB,UAAU,OAAO,SAASA,YAAAA,SAAS,eAAe,qBAAqB,UAAU,OAAO,OAAO,UAAU,QAAQ,OAAO,KAAK,SAAS,UAAU,MAAM;KACxN,OAAO;IACR,CAAC;GACF;GACA,uBAAuB,MAAM;IAC5B,OAAO,CAAC,CAAC,+BAA+B,MAAM,cAAc;KAC3D,IAAI,UAAU,SAASA,YAAAA,SAAS,eAAe,iBAAiB,OAAO,KAAK,SAAS,UAAU,MAAM;KACrG,OAAO;IACR,CAAC;GACF;EACD;EACA,MAAM,wBAAwB,EAAE,kBAAkB,MAAM;GACvD,IAAI,KAAK,WAAW,SAAS,KAAK,KAAK,eAAe,UAAU,KAAK,OAAO,MAAM,WAAW,YAAY,KAAK,KAAK,OAAO,MAAM,SAAS,SAAS,GAAG,+BAA+B,KAAK,GAAG,KAAK,UAAU;EAC5M,EAAE;EACF,MAAM,mBAAmB,OAAO,SAAS,oBAAoB,OAAO;EACpE,MAAM,2BAA2B,CAAC;EAClC,IAAI,IAAI,OAAO,KAAK,qBAAqB,CAAC,CAAC,OAAO,OAAO,KAAK,gBAAgB,CAAC,CAAC,CAAC,C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;OACzD;;;KAGF;IACD;GACD;GACA,IAAI,KAAK,OAAO,SAASA,YAAAA,eAAe,gBAAgB;IACvD,MAAM,YAAY,KAAK;IACvB,IAAI,UAAU,OAAO,SAASA,YAAAA,eAAe,YAAY;KACxD,MAAM,WAAW,UAAU,OAAO;KAClC,IAAI,CAAC,QAAQ,uBAAuB,UAAU,MAAM,GAAG;KACvD,IAAI,kBAAkB,IAAI,QAAQ,GAAG;MACpC,MAAM,UAAU,UAAU,UAAU;MACpC,IAAI,SAAS;OACZ,MAAM,YAAY,sBAAsB,OAAO;OAC/C,IAAI,WAAW,oBAAoB,SAAS,SAAS;MACtD;KACD;IACD;GACD;EACD,EAAE;CACH,CAAC;AACF,CAAC;;AEtED,IAAIK,WAAS;CACZ,MAAM,EAAE,MAAM,iCAAiC;CAC/C,SAAS,CAAC;CACV;GDDCJ,SAAOC;GACPC,OAASC;CCAV;AACD;AACA,OAAO,OAAOC,SAAO,SAAS;CAC7B,aAAa;EACZ,SAAS,CAAC,gCAAgC;EAC1C,OAAO;GACN,gDAAgD;GAChD,sCAAsC;EACvC;CACD;CACA,oBAAoB,CAAC;EACpB,SAAS,EAAE,oBAAoBA,SAAO;EACtC,OAAO;GACN,gDAAgD;GAChD,sCAAsC;EACvC;CACD,CAAC;AACF,CAAC;;ACfD,MAAM,SAAqC,eACzC,mBACAC,UACA,UACF"}
|
package/dist/tanstack-start.mjs
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { a as __toESM, t as __commonJSMin } from "./rolldown-runtime-DQp2zzRu.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { n as
|
|
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
|
-
// ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=
|
|
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
|
-
// ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=
|
|
9
|
-
var import_version = /* @__PURE__ */ __toESM(require_version(), 1);
|
|
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
|
|
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 (
|
|
18
|
+
if (isExpressionStatement(firstStmt) && isStringLiteral(firstStmt.expression)) return firstStmt.expression.text === "use client";
|
|
20
19
|
return false;
|
|
21
20
|
}
|
|
22
21
|
return { hasUseClientDirective };
|
|
@@ -3326,7 +3325,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3326
3325
|
}
|
|
3327
3326
|
};
|
|
3328
3327
|
}));
|
|
3329
|
-
// ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=
|
|
3328
|
+
// ../../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
|
|
3330
3329
|
var import_globals = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3331
3330
|
module.exports = require_globals$1();
|
|
3332
3331
|
})))(), 1);
|
|
@@ -3526,7 +3525,7 @@ function isClientOnlyHook(name, allowedHooks = DEFAULT_ALLOWED_HOOKS) {
|
|
|
3526
3525
|
if (allowedHooks.has(name)) return false;
|
|
3527
3526
|
return true;
|
|
3528
3527
|
}
|
|
3529
|
-
// ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=
|
|
3528
|
+
// ../../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
|
|
3530
3529
|
/**
|
|
3531
3530
|
* Get line and column position for a node
|
|
3532
3531
|
*/
|
|
@@ -3677,7 +3676,7 @@ function createViolationDetector(tsLib, options = {}) {
|
|
|
3677
3676
|
detectViolationsInNode
|
|
3678
3677
|
};
|
|
3679
3678
|
}
|
|
3680
|
-
// ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=
|
|
3679
|
+
// ../../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
|
|
3681
3680
|
/**
|
|
3682
3681
|
* Creates an analyzer that follows reachable symbol references
|
|
3683
3682
|
* to find transitive violations, stopping at 'use client' boundaries.
|
|
@@ -3788,7 +3787,7 @@ function createTransitiveAnalyzer(tsLib, program, checker, useClientResolver, vi
|
|
|
3788
3787
|
}
|
|
3789
3788
|
return { analyzeEntrySymbol };
|
|
3790
3789
|
}
|
|
3791
|
-
// ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=
|
|
3790
|
+
// ../../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
|
|
3792
3791
|
init_typescript_eslint_utils();
|
|
3793
3792
|
var name$1 = "no-client-code-in-server-component";
|
|
3794
3793
|
var TRIGGER_HINT = "Triggered by rendering \"{{entry}}\".";
|
|
@@ -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(
|
|
3826
|
+
const violationDetector = createViolationDetector(_typescript_default_exports, {
|
|
3828
3827
|
allowedHooks,
|
|
3829
3828
|
checker
|
|
3830
3829
|
});
|
|
3831
|
-
const transitiveAnalyzer = createTransitiveAnalyzer(
|
|
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 (
|
|
3842
|
-
else if (
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 (
|
|
3955
|
-
else if (
|
|
3956
|
-
else if (
|
|
3957
|
-
for (const element of node.elements) if (
|
|
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 (
|
|
3967
|
+
if (isParameter(current)) {
|
|
3969
3968
|
const paramParent = current.parent;
|
|
3970
|
-
if (
|
|
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 (
|
|
3978
|
+
if (isJsxOpeningElement(n) || isJsxSelfClosingElement(n)) {
|
|
3980
3979
|
const tagName = n.tagName;
|
|
3981
|
-
if (
|
|
3980
|
+
if (isIdentifier(tagName) && /^[A-Z]/.test(tagName.text)) refs.push(tagName);
|
|
3982
3981
|
}
|
|
3983
|
-
if (
|
|
3982
|
+
if (isCallExpression(n)) {
|
|
3984
3983
|
const callee = n.expression;
|
|
3985
|
-
if (
|
|
3984
|
+
if (isIdentifier(callee) && /^[A-Z]/.test(callee.text)) refs.push(callee);
|
|
3986
3985
|
}
|
|
3987
|
-
|
|
3986
|
+
forEachChild(n, visit);
|
|
3988
3987
|
}
|
|
3989
3988
|
visit(node);
|
|
3990
3989
|
return refs;
|
|
@@ -4022,7 +4021,7 @@ var rule$1 = import_eslint_utils.RuleCreator(getDocsUrl)({
|
|
|
4022
4021
|
}
|
|
4023
4022
|
}
|
|
4024
4023
|
});
|
|
4025
|
-
// ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=
|
|
4024
|
+
// ../../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
|
|
4026
4025
|
/**
|
|
4027
4026
|
* Route option names that accept component references.
|
|
4028
4027
|
* These make the referenced component a "client root".
|
|
@@ -4045,7 +4044,7 @@ var ROUTE_CREATOR_NAMES = [
|
|
|
4045
4044
|
* Function names that create server-component roots.
|
|
4046
4045
|
*/
|
|
4047
4046
|
var SERVER_COMPONENT_ROOTS = ["renderServerComponent", "createCompositeComponent"];
|
|
4048
|
-
// ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=
|
|
4047
|
+
// ../../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
|
|
4049
4048
|
/**
|
|
4050
4049
|
* Builds a render graph from the TypeScript program.
|
|
4051
4050
|
* Indexes components, JSX edges, server roots, and client roots.
|
|
@@ -4315,7 +4314,7 @@ function createRenderGraphBuilder(tsLib, program, checker) {
|
|
|
4315
4314
|
set.add(key);
|
|
4316
4315
|
}
|
|
4317
4316
|
}
|
|
4318
|
-
// ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=
|
|
4317
|
+
// ../../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
|
|
4319
4318
|
/**
|
|
4320
4319
|
* Analyzes the render graph to propagate server/client context.
|
|
4321
4320
|
*
|
|
@@ -4415,7 +4414,7 @@ function propagateClientContext(key, visited, contexts, adjacency, reason) {
|
|
|
4415
4414
|
parentFile: ctx.component.fileName
|
|
4416
4415
|
});
|
|
4417
4416
|
}
|
|
4418
|
-
// ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=
|
|
4417
|
+
// ../../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
|
|
4419
4418
|
init_typescript_eslint_utils();
|
|
4420
4419
|
var name = "no-async-client-component";
|
|
4421
4420
|
var perProgramCache = /* @__PURE__ */ new WeakMap();
|
|
@@ -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(
|
|
4455
|
+
builder: createRenderGraphBuilder(_typescript_default_exports, program, checker),
|
|
4457
4456
|
graphBuilt: false
|
|
4458
4457
|
};
|
|
4459
4458
|
perProgramCache.set(program, cached);
|
|
@@ -4633,7 +4632,7 @@ var rule = import_eslint_utils.RuleCreator(getDocsUrl)({
|
|
|
4633
4632
|
}
|
|
4634
4633
|
}
|
|
4635
4634
|
});
|
|
4636
|
-
// ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=
|
|
4635
|
+
// ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_ae9aaf3310b3955a25fa9b24bb5cb06b/node_modules/@tanstack/eslint-plugin-start/dist/esm/index.js
|
|
4637
4636
|
var plugin$1 = {
|
|
4638
4637
|
meta: { name: "@tanstack/eslint-plugin-start" },
|
|
4639
4638
|
configs: {},
|