@r_masseater/oxlint-typed-rules 0.4.1 → 0.4.3

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.
Files changed (39) hide show
  1. package/README.md +77 -83
  2. package/dist/drizzle.d.mts +3 -3
  3. package/dist/drizzle.mjs +10 -10
  4. package/dist/drizzle.mjs.map +1 -1
  5. package/dist/{eslint-utils-BmbvsYwn.mjs → eslint-utils-ujGlgEMD.mjs} +9 -9
  6. package/dist/{eslint-utils-BmbvsYwn.mjs.map → eslint-utils-ujGlgEMD.mjs.map} +1 -1
  7. package/dist/{upstream-plugin-xn91RvOJ.d.mts → index-D1qDt581.d.mts} +4 -4
  8. package/dist/index.d.mts +4 -4
  9. package/dist/index.mjs +1 -1
  10. package/dist/react.d.mts +5 -5
  11. package/dist/react.mjs +171 -117
  12. package/dist/react.mjs.map +1 -1
  13. package/dist/remotion.d.mts +3 -3
  14. package/dist/remotion.mjs +4 -4
  15. package/dist/remotion.mjs.map +1 -1
  16. package/dist/tanstack-query.d.mts +3 -3
  17. package/dist/tanstack-query.mjs +6 -6
  18. package/dist/tanstack-query.mjs.map +1 -1
  19. package/dist/tanstack-router.d.mts +3 -3
  20. package/dist/tanstack-router.mjs +12 -12
  21. package/dist/tanstack-router.mjs.map +1 -1
  22. package/dist/tanstack-start.mjs +15 -15
  23. package/dist/tanstack-start.mjs.map +1 -1
  24. package/dist/{ts-compat-kqrVqnFj.mjs → ts-compat-CFDky9Ie.mjs} +3 -3
  25. package/dist/ts-compat-CFDky9Ie.mjs.map +1 -0
  26. package/dist/{typed-rule-DljA66d1.mjs → typed-rule-DFpV2XgE.mjs} +63 -63
  27. package/dist/typed-rule-DFpV2XgE.mjs.map +1 -0
  28. package/dist/{typescript-eslint-utils-DRyGbBR9.mjs → typescript-eslint-utils-C6OO2FjX.mjs} +3 -3
  29. package/dist/typescript-eslint-utils-C6OO2FjX.mjs.map +1 -0
  30. package/dist/{upstream-plugin-B_PNfSLV.mjs → upstream-plugin-D4Lz9A1H.mjs} +5 -4
  31. package/dist/upstream-plugin-D4Lz9A1H.mjs.map +1 -0
  32. package/package.json +19 -17
  33. package/skills/run-typed-eslint-rules/SKILL.md +85 -0
  34. package/dist/config-rules-CIyMUUvG.mjs +0 -6
  35. package/dist/config-rules-CIyMUUvG.mjs.map +0 -1
  36. package/dist/ts-compat-kqrVqnFj.mjs.map +0 -1
  37. package/dist/typed-rule-DljA66d1.mjs.map +0 -1
  38. package/dist/typescript-eslint-utils-DRyGbBR9.mjs.map +0 -1
  39. package/dist/upstream-plugin-B_PNfSLV.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.14.0_jiti@2.7.0_supports-color@10.2.2__07425b21dc34e775cfea98b617bb0fdb/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.14.0_jiti@2.7.0_supports-color@10.2.2__07425b21dc34e775cfea98b617bb0fdb/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.14.0_jiti@2.7.0_supports-color@10.2.2__07425b21dc34e775cfea98b617bb0fdb/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.14.0_jiti@2.7.0_supports-color@10.2.2__07425b21dc34e775cfea98b617bb0fdb/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.14.0_jiti@2.7.0_supports-color@10.2.2__07425b21dc34e775cfea98b617bb0fdb/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.14.0_jiti@2.7.0_supports-color@10.2.2__07425b21dc34e775cfea98b617bb0fdb/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.14.0_jiti@2.7.0_supports-color@10.2.2__07425b21dc34e775cfea98b617bb0fdb/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.14.0_jiti@2.7.0_supports-color@10.2.2__07425b21dc34e775cfea98b617bb0fdb/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.14.0_jiti@2.7.0_supports-color@10.2.2__07425b21dc34e775cfea98b617bb0fdb/node_modules/@tanstack/eslint-plugin-router/dist/esm/rules.js","../../../node_modules/.pnpm/@tanstack+eslint-plugin-router@1.162.0_eslint@10.14.0_jiti@2.7.0_supports-color@10.2.2__07425b21dc34e775cfea98b617bb0fdb/node_modules/@tanstack/eslint-plugin-router/dist/esm/index.js","../src/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 \"./upstream-plugin.ts\";\nimport type { UpstreamPlugin } from \"./upstream-plugin.ts\";\n\ntype ConfigName = \"recommended\" | \"flat/recommended\";\n\nconst plugin: UpstreamPlugin<ConfigName> = upstreamPlugin(\n \"tanstack-router\",\n tanstackRouter,\n plainRules,\n);\n\nexport type { ConfigName };\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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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__c29f867d9f210c07ad16dc3fe380ec7c/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__c29f867d9f210c07ad16dc3fe380ec7c/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__c29f867d9f210c07ad16dc3fe380ec7c/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__c29f867d9f210c07ad16dc3fe380ec7c/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__c29f867d9f210c07ad16dc3fe380ec7c/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__c29f867d9f210c07ad16dc3fe380ec7c/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__c29f867d9f210c07ad16dc3fe380ec7c/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__c29f867d9f210c07ad16dc3fe380ec7c/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__c29f867d9f210c07ad16dc3fe380ec7c/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__c29f867d9f210c07ad16dc3fe380ec7c/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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CAAiC;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,11 +1,11 @@
1
1
  import { a as __toESM, t as __commonJSMin } from "./rolldown-runtime-DQp2zzRu.mjs";
2
- import { a as isCallExpression, c as isIdentifier, d as isObjectBindingPattern, f as isParameter, h as ts_compat_exports, i as isBindingElement, l as isJsxOpeningElement, n as forEachChild, o as isExpressionStatement, p as isStringLiteral, r as isArrayBindingPattern, s as isFunctionLike, t as SymbolFlags, u as isJsxSelfClosingElement } from "./ts-compat-kqrVqnFj.mjs";
3
- import { n as import_eslint_utils, r as init_typescript_eslint_utils } from "./typescript-eslint-utils-DRyGbBR9.mjs";
4
- import { r as typedRules } from "./typed-rule-DljA66d1.mjs";
2
+ import { a as isCallExpression, c as isIdentifier, d as isObjectBindingPattern, f as isParameter, h as ts_compat_exports, i as isBindingElement, l as isJsxOpeningElement, n as forEachChild, o as isExpressionStatement, p as isStringLiteral, r as isArrayBindingPattern, s as isFunctionLike, t as SymbolFlags, u as isJsxSelfClosingElement } from "./ts-compat-CFDky9Ie.mjs";
3
+ import { n as import_eslint_utils, r as init_typescript_eslint_utils } from "./typescript-eslint-utils-C6OO2FjX.mjs";
4
+ import { r as typedRules } from "./typed-rule-DFpV2XgE.mjs";
5
5
  import path from "node:path";
6
- // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_4c3f6d6bd3580b3556c5bb9ce1d8a35a/node_modules/@tanstack/eslint-plugin-start/dist/esm/utils/get-docs-url.js
6
+ // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_773ab23c8a086f3e39c66ba271caca00/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=364cc40b73326fe59c5d685ac247690de2302e3e_4c3f6d6bd3580b3556c5bb9ce1d8a35a/node_modules/@tanstack/eslint-plugin-start/dist/esm/shared/use-client-resolver.js
8
+ // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_773ab23c8a086f3e39c66ba271caca00/node_modules/@tanstack/eslint-plugin-start/dist/esm/shared/use-client-resolver.js
9
9
  /**
10
10
  * Creates a resolver that checks for 'use client' directive in source files
11
11
  */
@@ -3325,7 +3325,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3325
3325
  }
3326
3326
  };
3327
3327
  }));
3328
- // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_4c3f6d6bd3580b3556c5bb9ce1d8a35a/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-client-code-in-server-component/constants.js
3328
+ // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_773ab23c8a086f3e39c66ba271caca00/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-client-code-in-server-component/constants.js
3329
3329
  var import_globals = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
3330
3330
  module.exports = require_globals$1();
3331
3331
  })))(), 1);
@@ -3525,7 +3525,7 @@ function isClientOnlyHook(name, allowedHooks = DEFAULT_ALLOWED_HOOKS) {
3525
3525
  if (allowedHooks.has(name)) return false;
3526
3526
  return true;
3527
3527
  }
3528
- // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_4c3f6d6bd3580b3556c5bb9ce1d8a35a/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-client-code-in-server-component/violation-detector.js
3528
+ // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_773ab23c8a086f3e39c66ba271caca00/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-client-code-in-server-component/violation-detector.js
3529
3529
  /**
3530
3530
  * Get line and column position for a node
3531
3531
  */
@@ -3676,7 +3676,7 @@ function createViolationDetector(tsLib, options = {}) {
3676
3676
  detectViolationsInNode
3677
3677
  };
3678
3678
  }
3679
- // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_4c3f6d6bd3580b3556c5bb9ce1d8a35a/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-client-code-in-server-component/transitive-analyzer.js
3679
+ // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_773ab23c8a086f3e39c66ba271caca00/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-client-code-in-server-component/transitive-analyzer.js
3680
3680
  /**
3681
3681
  * Creates an analyzer that follows reachable symbol references
3682
3682
  * to find transitive violations, stopping at 'use client' boundaries.
@@ -3787,7 +3787,7 @@ function createTransitiveAnalyzer(tsLib, program, checker, useClientResolver, vi
3787
3787
  }
3788
3788
  return { analyzeEntrySymbol };
3789
3789
  }
3790
- // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_4c3f6d6bd3580b3556c5bb9ce1d8a35a/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-client-code-in-server-component/no-client-code-in-server-component.rule.js
3790
+ // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_773ab23c8a086f3e39c66ba271caca00/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-client-code-in-server-component/no-client-code-in-server-component.rule.js
3791
3791
  init_typescript_eslint_utils();
3792
3792
  var name$1 = "no-client-code-in-server-component";
3793
3793
  var TRIGGER_HINT = "Triggered by rendering \"{{entry}}\".";
@@ -4021,7 +4021,7 @@ var rule$1 = import_eslint_utils.RuleCreator(getDocsUrl)({
4021
4021
  }
4022
4022
  }
4023
4023
  });
4024
- // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_4c3f6d6bd3580b3556c5bb9ce1d8a35a/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-async-client-component/constants.js
4024
+ // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_773ab23c8a086f3e39c66ba271caca00/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-async-client-component/constants.js
4025
4025
  /**
4026
4026
  * Route option names that accept component references.
4027
4027
  * These make the referenced component a "client root".
@@ -4044,7 +4044,7 @@ var ROUTE_CREATOR_NAMES = [
4044
4044
  * Function names that create server-component roots.
4045
4045
  */
4046
4046
  var SERVER_COMPONENT_ROOTS = ["renderServerComponent", "createCompositeComponent"];
4047
- // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_4c3f6d6bd3580b3556c5bb9ce1d8a35a/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-async-client-component/render-graph-builder.js
4047
+ // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_773ab23c8a086f3e39c66ba271caca00/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-async-client-component/render-graph-builder.js
4048
4048
  /**
4049
4049
  * Builds a render graph from the TypeScript program.
4050
4050
  * Indexes components, JSX edges, server roots, and client roots.
@@ -4314,7 +4314,7 @@ function createRenderGraphBuilder(tsLib, program, checker) {
4314
4314
  set.add(key);
4315
4315
  }
4316
4316
  }
4317
- // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_4c3f6d6bd3580b3556c5bb9ce1d8a35a/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-async-client-component/context-analyzer.js
4317
+ // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_773ab23c8a086f3e39c66ba271caca00/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-async-client-component/context-analyzer.js
4318
4318
  /**
4319
4319
  * Analyzes the render graph to propagate server/client context.
4320
4320
  *
@@ -4414,7 +4414,7 @@ function propagateClientContext(key, visited, contexts, adjacency, reason) {
4414
4414
  parentFile: ctx.component.fileName
4415
4415
  });
4416
4416
  }
4417
- // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_4c3f6d6bd3580b3556c5bb9ce1d8a35a/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-async-client-component/no-async-client-component.rule.js
4417
+ // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_773ab23c8a086f3e39c66ba271caca00/node_modules/@tanstack/eslint-plugin-start/dist/esm/rules/no-async-client-component/no-async-client-component.rule.js
4418
4418
  init_typescript_eslint_utils();
4419
4419
  var name = "no-async-client-component";
4420
4420
  var perProgramCache = /* @__PURE__ */ new WeakMap();
@@ -4632,7 +4632,7 @@ var rule = import_eslint_utils.RuleCreator(getDocsUrl)({
4632
4632
  }
4633
4633
  }
4634
4634
  });
4635
- // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_4c3f6d6bd3580b3556c5bb9ce1d8a35a/node_modules/@tanstack/eslint-plugin-start/dist/esm/index.js
4635
+ // ../../node_modules/.pnpm/@tanstack+eslint-plugin-start@0.1.0_patch_hash=364cc40b73326fe59c5d685ac247690de2302e3e_773ab23c8a086f3e39c66ba271caca00/node_modules/@tanstack/eslint-plugin-start/dist/esm/index.js
4636
4636
  var plugin$1 = {
4637
4637
  meta: { name: "@tanstack/eslint-plugin-start" },
4638
4638
  configs: {},
@@ -4657,7 +4657,7 @@ Object.assign(plugin$1.configs, {
4657
4657
  }
4658
4658
  }]
4659
4659
  });
4660
- // src/tanstack-start.ts
4660
+ // src/app/tanstack-start.ts
4661
4661
  const plugin = {
4662
4662
  meta: { name: "tanstack-start" },
4663
4663
  rules: typedRules(plugin$1.rules)