Unified · Split
| @@ -30,10 +30,12 @@ function PluginRouteComponent() { · 29 unmodified lines | ||
| 30 | 30 | const { pluginId, _splat: rest } = Route.useParams(); |
| 31 | 31 | const plugins = useClientPlugins(); |
| 32 | 32 | const plugin = plugins.find((p) => p.id === pluginId); |
| 33 | + // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: TanStack Router represents not-found from components by throwing notFound() | |
| 33 | 34 | if (!plugin) throw notFound(); |
| 34 | 35 | |
| 35 | 36 | const target = normalizePath(rest ?? "/"); |
| 36 | 37 | const page = plugin.pages?.find((p) => normalizePath(p.path) === target); |
| 38 | + // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: TanStack Router represents not-found from components by throwing notFound() | |
| 37 | 39 | if (!page) throw notFound(); |
| 38 | 40 | |
| 39 | 41 | const Component = page.component; |
| @@ -37,6 +37,7 @@ const hasFileExtension = (pathname: string): boolean => { · 36 unmodified lines | ||
| 37 | 37 | |
| 38 | 38 | function collectStaticRoutes(dir: string, prefix = ""): Record<string, StaticHandler> { |
| 39 | 39 | const routes: Record<string, StaticHandler> = {}; |
| 40 | + // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: filesystem route discovery is best-effort for optional built assets | |
| 40 | 41 | try { |
| 41 | 42 | for (const entry of readdirSync(dir, { withFileTypes: true })) { |
| 42 | 43 | const fullPath = join(dir, entry.name); |
| @@ -23,6 +23,7 @@ export const ErrorCaptureLive: Layer.Layer<ErrorCapture> = Layer.succeed( · 22 unmodified lines | ||
| 23 | 23 | const squashed = Cause.squash(cause); |
| 24 | 24 | console.error( |
| 25 | 25 | `[executor ${traceId}]`, |
| 26 | + // oxlint-disable-next-line executor/no-instanceof-error -- boundary: console logger preserves native Error stack output | |
| 26 | 27 | squashed instanceof Error ? squashed.stack ?? squashed : squashed, |
| 27 | 28 | ); |
| 28 | 29 | console.error(`[executor ${traceId}] cause:`, Cause.pretty(cause)); |