Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
✏️ Lint (#9)
Thibault Le Ouay563d40653864
diff --git a/.eslintrc.cjs b/.eslintrc.cjsnew file mode 100644index 000000000..f17447442--- /dev/null+++ b/.eslintrc.cjs@@ -0,0 +1,21 @@+/** @type {import("eslint").Linter.Config} */+const config = {+ root: true,+ extends: ["@openstatus"], // uses the config in `packages/config/eslint`+ parser: "@typescript-eslint/parser",+ parserOptions: {+ ecmaVersion: "latest",+ tsconfigRootDir: __dirname,+ project: [+ "./apps/*/tsconfig.json",+ "./packages/*/tsconfig.json",+ ],+ },+ settings: {+ next: {+ rootDir: ["apps/*/"],+ },+ },+};++module.exports = config;\ No newline at end of filediff --git a/.eslintrc.js b/.eslintrc.jsdeleted file mode 100644index 5b999efa4..000000000--- a/.eslintrc.js+++ /dev/null@@ -1,10 +0,0 @@-module.exports = {- root: true,- // This tells ESLint to load the config from the package `eslint-config-custom`- extends: ["custom"],- settings: {- next: {- rootDir: ["apps/*/"],- },- },-};diff --git a/apps/docs/.eslintrc.js b/apps/docs/.eslintrc.jsdeleted file mode 100644index c8df60750..000000000--- a/apps/docs/.eslintrc.js+++ /dev/null@@ -1,4 +0,0 @@-module.exports = {- root: true,- extends: ["custom"],-};diff --git a/apps/docs/.gitignore b/apps/docs/.gitignoredeleted file mode 100644index 1437c53f7..000000000--- a/apps/docs/.gitignore+++ /dev/null@@ -1,34 +0,0 @@-# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.--# dependencies-/node_modules-/.pnp-.pnp.js--# testing-/coverage--# next.js-/.next/-/out/--# production-/build--# misc-.DS_Store-*.pem--# debug-npm-debug.log*-yarn-debug.log*-yarn-error.log*--# local env files-.env.local-.env.development.local-.env.test.local-.env.production.local--# vercel-.verceldiff --git a/apps/docs/README.md b/apps/docs/README.mddeleted file mode 100644index 4fae62aff..000000000--- a/apps/docs/README.md+++ /dev/null@@ -1,30 +0,0 @@-## Getting Started--First, run the development server:--```bash-yarn dev-```--Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.--You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.--[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.js`.--The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.--## Learn More--To learn more about Next.js, take a look at the following resources:--- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.-- [Learn Next.js](https://nextjs.org/learn/foundations/about-nextjs) - an interactive Next.js tutorial.--You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!--## Deploy on Vercel--The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_source=github.com&utm_medium=referral&utm_campaign=turborepo-readme) from the creators of Next.js.--Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.diff --git a/apps/docs/app/layout.tsx b/apps/docs/app/layout.tsxdeleted file mode 100644index 225b6038d..000000000--- a/apps/docs/app/layout.tsx+++ /dev/null@@ -1,11 +0,0 @@-export default function RootLayout({- children,-}: {- children: React.ReactNode;-}) {- return (- <html lang="en">- <body>{children}</body>- </html>- );-}diff --git a/apps/docs/app/page.tsx b/apps/docs/app/page.tsxdeleted file mode 100644index 771984846..000000000--- a/apps/docs/app/page.tsx+++ /dev/null@@ -1,10 +0,0 @@-import { Button, Header } from "ui";--export default function Page() {- return (- <>- <Header text="Docs" />- <Button />- </>- );-}diff --git a/apps/docs/next-env.d.ts b/apps/docs/next-env.d.tsdeleted file mode 100644index 4f11a03dc..000000000--- a/apps/docs/next-env.d.ts+++ /dev/null@@ -1,5 +0,0 @@-/// <reference types="next" />-/// <reference types="next/image-types/global" />--// NOTE: This file should not be edited-// see https://nextjs.org/docs/basic-features/typescript for more information.diff --git a/apps/docs/next.config.js b/apps/docs/next.config.jsdeleted file mode 100644index fdda6aa12..000000000--- a/apps/docs/next.config.js+++ /dev/null@@ -1,4 +0,0 @@-module.exports = {- reactStrictMode: true,- transpilePackages: ["ui"],-};diff --git a/apps/docs/package.json b/apps/docs/package.jsondeleted file mode 100644index 9d78f9928..000000000--- a/apps/docs/package.json+++ /dev/null@@ -1,25 +0,0 @@-{- "name": "docs",- "version": "1.0.0",- "private": true,- "scripts": {- "dev": "next dev --port 3001",- "build": "next build",- "start": "next start",- "lint": "next lint"- },- "dependencies": {- "next": "13.4.6",- "react": "18.2.0",- "react-dom": "18.2.0",- "ui": "workspace:*"- },- "devDependencies": {- "@types/node": "20.3.1",- "@types/react": "18.2.12",- "@types/react-dom": "18.2.5",- "eslint-config-custom": "workspace:*",- "tsconfig": "workspace:*",- "typescript": "5.1.3"- }-}diff --git a/apps/docs/tsconfig.json b/apps/docs/tsconfig.jsondeleted file mode 100644index 644ee04f6..000000000--- a/apps/docs/tsconfig.json+++ /dev/null@@ -1,8 +0,0 @@-{- "extends": "tsconfig/nextjs.json",- "compilerOptions": {- "plugins": [{ "name": "next" }]- },- "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],- "exclude": ["node_modules"]-}diff --git a/apps/web/.eslintrc.js b/apps/web/.eslintrc.jsdeleted file mode 100644index c8df60750..000000000--- a/apps/web/.eslintrc.js+++ /dev/null@@ -1,4 +0,0 @@-module.exports = {- root: true,- extends: ["custom"],-};diff --git a/apps/web/package.json b/apps/web/package.jsonindex 8950a2ba7..f8a609e3f 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -46,7 +46,7 @@"@types/react": "18.2.12","@types/react-dom": "18.2.5","autoprefixer": "10.4.14",- "eslint-config-custom": "workspace:*",+ "@openstatus/eslint-config": "workspace:*","postcss": "8.4.24","tailwindcss": "3.3.2","tsconfig": "workspace:*",diff --git a/apps/web/src/app/_components/background.tsx b/apps/web/src/app/_components/background.tsxindex fbd9d7117..201882cb3 100644--- a/apps/web/src/app/_components/background.tsx+++ b/apps/web/src/app/_components/background.tsx@@ -1,6 +1,7 @@"use client";-import useMouseMove from "@/hooks/use-mouse-move";+import React from "react";+import useMouseMove from "@/hooks/use-mouse-move";export default function Background({children,@@ -11,9 +12,9 @@ export default function Background({useMouseMove();return (<>- <div className="fixed w-full h-full">- <div className="absolute inset-0 z-[-1] bg-muted-foreground/20" />- <div className="absolute left-[--x] top-[--y] z-[-1] h-56 w-56 rounded-full -translate-y-1/2 -translate-x-1/2 bg-gradient-radial from-muted-foreground/80 from-0% to-transparent to-90% blur-md" />+ <div className="fixed h-full w-full">+ <div className="bg-muted-foreground/20 absolute inset-0 z-[-1]" />+ <div className="bg-gradient-radial from-muted-foreground/80 absolute left-[--x] top-[--y] z-[-1] h-56 w-56 -translate-x-1/2 -translate-y-1/2 rounded-full from-0% to-transparent to-90% blur-md" /><svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><defs><patterndiff --git a/apps/web/src/app/_components/hero-form.tsx b/apps/web/src/app/_components/hero-form.tsxindex 58acdcd0b..1218ffe7a 100644--- a/apps/web/src/app/_components/hero-form.tsx+++ b/apps/web/src/app/_components/hero-form.tsx@@ -1,7 +1,9 @@"use client";++import { Input } from "@/components/ui/input";import { toast } from "@/components/ui/use-toast";+import { addToWaitlist } from "../action";-import { Input } from "@/components/ui/input";import { SubmitButton } from "./submit-button";export const HeroForm = () => {diff --git a/apps/web/src/app/_components/submit-button.tsx b/apps/web/src/app/_components/submit-button.tsxindex c06ec3006..e77ac5966 100644--- a/apps/web/src/app/_components/submit-button.tsx+++ b/apps/web/src/app/_components/submit-button.tsx@@ -14,9 +14,9 @@ export function SubmitButton() {{pending ? (// TODO: move into separate file `LoadingAnimation`<div className="flex items-center justify-center gap-1">- <div className="h-1 w-1 animate-pulse direction-alternate duration-700 rounded-full bg-primary-foreground" />- <div className="h-1 w-1 animate-pulse direction-alternate duration-700 delay-150 rounded-full bg-primary-foreground" />- <div className="h-1 w-1 animate-pulse direction-alternate duration-700 delay-300 rounded-full bg-primary-foreground" />+ <div className="direction-alternate bg-primary-foreground h-1 w-1 animate-pulse rounded-full duration-700" />+ <div className="direction-alternate bg-primary-foreground h-1 w-1 animate-pulse rounded-full delay-150 duration-700" />+ <div className="direction-alternate bg-primary-foreground h-1 w-1 animate-pulse rounded-full delay-300 duration-700" /></div>) : ("Join"diff --git a/apps/web/src/app/action.ts b/apps/web/src/app/action.tsindex de6a2a7a8..06e248ef1 100644--- a/apps/web/src/app/action.ts+++ b/apps/web/src/app/action.ts@@ -1,9 +1,9 @@"use server";-import { Resend } from "resend";-import { Redis } from "@upstash/redis";import { EmailTemplate } from "@/components/templates/email-template";import { env } from "@/env.mjs";+import { Redis } from "@upstash/redis";+import { Resend } from "resend";const redis = Redis.fromEnv();@@ -47,11 +47,11 @@ const wait = (ms: number): Promise<void> => {};// Resend-const send = async (email) => {- return await resend.emails.send({- from: "[email protected]",- to: "[email protected]",- subject: "Hello world",- react: EmailTemplate({ firstName: "John" }),- });-};+// const send = async (email) => {+// return await resend.emails.send({+// from: "[email protected]",+// to: "[email protected]",+// subject: "Hello world",+// react: EmailTemplate({ firstName: "John" }),+// });+// };diff --git a/apps/web/src/app/api/og/route.tsx b/apps/web/src/app/api/og/route.tsxindex fae313d41..5afc025e4 100644--- a/apps/web/src/app/api/og/route.tsx+++ b/apps/web/src/app/api/og/route.tsx@@ -11,11 +11,11 @@ const TITLE = "Open Status";const DESCRIPTION = "An Open Source Alternative for your next Status Page";const interRegular = fetch(- new URL("../../../public/fonts/Inter-Regular.ttf", import.meta.url)+ new URL("../../../public/fonts/Inter-Regular.ttf", import.meta.url),).then((res) => res.arrayBuffer());const calSemiBold = fetch(- new URL("../../../public/fonts/CalSans-SemiBold.ttf", import.meta.url)+ new URL("../../../public/fonts/CalSans-SemiBold.ttf", import.meta.url),).then((res) => res.arrayBuffer());export async function GET(req: Request) {@@ -64,6 +64,6 @@ export async function GET(req: Request) {weight: 600,},],- }+ },);}diff --git a/apps/web/src/app/api/send/route.ts b/apps/web/src/app/api/send/route.tsindex 1761d6d7d..54df6d9fe 100644--- a/apps/web/src/app/api/send/route.ts+++ b/apps/web/src/app/api/send/route.ts@@ -1,5 +1,5 @@-import { EmailTemplate } from "@/components/templates/email-template";import { NextResponse } from "next/server";+import { EmailTemplate } from "@/components/templates/email-template";import { Resend } from "resend";const resend = new Resend(process.env.RESEND_API_KEY);diff --git a/apps/web/src/app/api/webhook/clerk/route.ts b/apps/web/src/app/api/webhook/clerk/route.tsindex 90ea99b6a..915bceaa0 100644--- a/apps/web/src/app/api/webhook/clerk/route.ts+++ b/apps/web/src/app/api/webhook/clerk/route.ts@@ -1,9 +1,13 @@-import { env } from "@/env.mjs";-import { NextRequest, NextResponse } from "next/server";+import type { NextRequest } from "next/server";+import { NextResponse } from "next/server";import { Webhook } from "svix";+import { createTRPCContext } from "@openstatus/api";import { lambdaRouter } from "@openstatus/api/src/lambda";import { clerkEvent } from "@openstatus/api/src/router/clerk/type";++import { env } from "@/env.mjs";+// import { clerkEvent } from "@openstatus/api/src/router/clerk";// export const config = {@@ -21,7 +25,7 @@ export async function POST(req: NextRequest) {if (!r.success) {return NextResponse.json({ error: "Internal Server Error" },- { status: 500 }+ { status: 500 },);}diff --git a/apps/web/src/app/layout.tsx b/apps/web/src/app/layout.tsxindex 0571c7431..79994a344 100644--- a/apps/web/src/app/layout.tsx+++ b/apps/web/src/app/layout.tsx@@ -1,11 +1,13 @@import "@/styles/globals.css";-import { ClerkProvider } from "@clerk/nextjs";++import type { Metadata } from "next";import { Inter } from "next/font/google";import LocalFont from "next/font/local";+import { Toaster } from "@/components/ui/toaster";+import { ClerkProvider } from "@clerk/nextjs";import PlausibleProvider from "next-plausible";+import Background from "./_components/background";-import { Toaster } from "@/components/ui/toaster";-import { Metadata } from "next";const inter = Inter({ subsets: ["latin"] });diff --git a/apps/web/src/app/page.tsx b/apps/web/src/app/page.tsxindex 97c5d2053..a2754e606 100644--- a/apps/web/src/app/page.tsx+++ b/apps/web/src/app/page.tsx@@ -1,8 +1,9 @@+import { getResponseList, Tinybird } from "@openstatus/tinybird";++import MOCK from "@/app/_mocks/response-list.json";import { Badge } from "@/components/ui/badge";-import { HeroForm } from "./_components/hero-form";-import { Tinybird, getResponseList } from "@openstatus/tinybird";import { env } from "@/env.mjs";-import MOCK from "@/app/_mocks/response-list.json";+import { HeroForm } from "./_components/hero-form";import { TableInputContainer } from "./_components/table-input-container";const tb = new Tinybird({ token: env.TINY_BIRD_API_KEY });@@ -14,13 +15,14 @@ export default async function Page() {const res = await getResponseList(tb)({});data = res.data;}+return (- <main className="min-h-screen w-full flex flex-col p-4 md:p-8 space-y-6">- <div className="flex-1 flex flex-col justify-center items-center gap-8">+ <main className="flex min-h-screen w-full flex-col space-y-6 p-4 md:p-8">+ <div className="flex flex-1 flex-col items-center justify-center gap-8"><div className="mx-auto max-w-xl text-center">- <div className="rounded-lg border border-border backdrop-blur-[2px] p-8">+ <div className="border-border rounded-lg border p-8 backdrop-blur-[2px]"><Badge>Coming Soon</Badge>- <h1 className="text-3xl text-foreground font-cal mb-6 mt-2">+ <h1 className="text-foreground font-cal mb-6 mt-2 text-3xl">Open-source monitoring service</h1><p className="text-muted-foreground mb-4">@@ -30,20 +32,20 @@ export default async function Page() {<HeroForm /></div></div>- <div className="mx-auto max-w-xl w-full z-10 backdrop-blur-[2px]">- <div className="p-8 border border-border rounded-lg">+ <div className="z-10 mx-auto w-full max-w-xl backdrop-blur-[2px]">+ <div className="border-border rounded-lg border p-8"><TableInputContainer events={data} /></div></div></div>- <footer className="mx-auto text-sm text-muted-foreground grid gap-4">- <p className="text-center rounded-full px-4 py-2 border border-border backdrop-blur-[2px]">+ <footer className="text-muted-foreground mx-auto grid gap-4 text-sm">+ <p className="border-border rounded-full border px-4 py-2 text-center backdrop-blur-[2px]">A collaboration between{" "}<ahref="https://twitter.com/mxkaske"target="_blank"rel="noreferrer"- className="underline underline-offset-4 hover:no-underline text-foreground"+ className="text-foreground underline underline-offset-4 hover:no-underline">@mxkaske</a>{" "}@@ -52,17 +54,17 @@ export default async function Page() {href="https://twitter.com/thibaultleouay"target="_blank"rel="noreferrer"- className="underline underline-offset-4 hover:no-underline text-foreground"+ className="text-foreground underline underline-offset-4 hover:no-underline">@thibaultleouay</a>- <span className="mx-1 text-muted-foreground/70">•</span>+ <span className="text-muted-foreground/70 mx-1">•</span>See on{" "}<ahref="https://github.com/mxkaske/openstatus"target="_blank"rel="noreferrer"- className="underline underline-offset-4 hover:no-underline text-foreground"+ className="text-foreground underline underline-offset-4 hover:no-underline">GitHub</a>diff --git a/apps/web/src/components/ui/badge.tsx b/apps/web/src/components/ui/badge.tsxindex a0847a16a..c96fe9333 100644--- a/apps/web/src/components/ui/badge.tsx+++ b/apps/web/src/components/ui/badge.tsx@@ -1,7 +1,8 @@-import * as React from "react"-import { cva, type VariantProps } from "class-variance-authority"+import * as React from "react";+import { cva } from "class-variance-authority";+import type { VariantProps } from "class-variance-authority";-import { cn } from "@/lib/utils"+import { cn } from "@/lib/utils";const badgeVariants = cva("inline-flex items-center border rounded-full px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",@@ -20,8 +21,8 @@ const badgeVariants = cva(defaultVariants: {variant: "default",},- }-)+ },+);export interface BadgePropsextends React.HTMLAttributes<HTMLDivElement>,@@ -30,7 +31,7 @@ export interface BadgePropsfunction Badge({ className, variant, ...props }: BadgeProps) {return (<div className={cn(badgeVariants({ variant }), className)} {...props} />- )+ );}-export { Badge, badgeVariants }+export { Badge, badgeVariants };diff --git a/apps/web/src/components/ui/button.tsx b/apps/web/src/components/ui/button.tsxindex 2ada8514c..6e4304739 100644--- a/apps/web/src/components/ui/button.tsx+++ b/apps/web/src/components/ui/button.tsx@@ -1,8 +1,9 @@-import * as React from "react"-import { Slot } from "@radix-ui/react-slot"-import { cva, type VariantProps } from "class-variance-authority"+import * as React from "react";+import { Slot } from "@radix-ui/react-slot";+import { cva } from "class-variance-authority";+import type { VariantProps } from "class-variance-authority";-import { cn } from "@/lib/utils"+import { cn } from "@/lib/utils";const buttonVariants = cva("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none ring-offset-background",@@ -29,27 +30,27 @@ const buttonVariants = cva(variant: "default",size: "default",},- }-)+ },+);export interface ButtonPropsextends React.ButtonHTMLAttributes<HTMLButtonElement>,VariantProps<typeof buttonVariants> {- asChild?: boolean+ asChild?: boolean;}const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(({ className, variant, size, asChild = false, ...props }, ref) => {- const Comp = asChild ? Slot : "button"+ const Comp = asChild ? Slot : "button";return (<CompclassName={cn(buttonVariants({ variant, size, className }))}ref={ref}{...props}/>- )- }-)-Button.displayName = "Button"+ );+ },+);+Button.displayName = "Button";-export { Button, buttonVariants }+export { Button, buttonVariants };diff --git a/apps/web/src/components/ui/command.tsx b/apps/web/src/components/ui/command.tsxindex 2fdc30e08..c96dba404 100644--- a/apps/web/src/components/ui/command.tsx+++ b/apps/web/src/components/ui/command.tsx@@ -1,12 +1,12 @@-"use client"+"use client";-import * as React from "react"-import { DialogProps } from "@radix-ui/react-dialog"-import { Command as CommandPrimitive } from "cmdk"-import { Search } from "lucide-react"+import * as React from "react";+import type { DialogProps } from "@radix-ui/react-dialog";+import { Command as CommandPrimitive } from "cmdk";+import { Search } from "lucide-react";-import { cn } from "@/lib/utils"-import { Dialog, DialogContent } from "@/components/ui/dialog"+import { Dialog, DialogContent } from "@/components/ui/dialog";+import { cn } from "@/lib/utils";const Command = React.forwardRef<React.ElementRef<typeof CommandPrimitive>,@@ -15,27 +15,27 @@ const Command = React.forwardRef<<CommandPrimitiveref={ref}className={cn(- "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",- className+ "bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",+ className,)}{...props}/>-))-Command.displayName = CommandPrimitive.displayName+));+Command.displayName = CommandPrimitive.displayName;-interface CommandDialogProps extends DialogProps {}+type CommandDialogProps = DialogProps;const CommandDialog = ({ children, ...props }: CommandDialogProps) => {return (<Dialog {...props}><DialogContent className="overflow-hidden p-0 shadow-2xl">- <Command className="[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5">+ <Command className="[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5">{children}</Command></DialogContent></Dialog>- )-}+ );+};const CommandInput = React.forwardRef<React.ElementRef<typeof CommandPrimitive.Input>,@@ -47,14 +47,14 @@ const CommandInput = React.forwardRef<ref={ref}className={cn("placeholder:text-foreground-muted flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50",- className+ className,)}{...props}/></div>-))+));-CommandInput.displayName = CommandPrimitive.Input.displayName+CommandInput.displayName = CommandPrimitive.Input.displayName;const CommandList = React.forwardRef<React.ElementRef<typeof CommandPrimitive.List>,@@ -65,9 +65,9 @@ const CommandList = React.forwardRef<className={cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className)}{...props}/>-))+));-CommandList.displayName = CommandPrimitive.List.displayName+CommandList.displayName = CommandPrimitive.List.displayName;const CommandEmpty = React.forwardRef<React.ElementRef<typeof CommandPrimitive.Empty>,@@ -78,9 +78,9 @@ const CommandEmpty = React.forwardRef<className="py-6 text-center text-sm"{...props}/>-))+));-CommandEmpty.displayName = CommandPrimitive.Empty.displayName+CommandEmpty.displayName = CommandPrimitive.Empty.displayName;const CommandGroup = React.forwardRef<React.ElementRef<typeof CommandPrimitive.Group>,@@ -89,14 +89,14 @@ const CommandGroup = React.forwardRef<<CommandPrimitive.Groupref={ref}className={cn(- "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",- className+ "text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",+ className,)}{...props}/>-))+));-CommandGroup.displayName = CommandPrimitive.Group.displayName+CommandGroup.displayName = CommandPrimitive.Group.displayName;const CommandSeparator = React.forwardRef<React.ElementRef<typeof CommandPrimitive.Separator>,@@ -104,11 +104,11 @@ const CommandSeparator = React.forwardRef<>(({ className, ...props }, ref) => (<CommandPrimitive.Separatorref={ref}- className={cn("-mx-1 h-px bg-border", className)}+ className={cn("bg-border -mx-1 h-px", className)}{...props}/>-))-CommandSeparator.displayName = CommandPrimitive.Separator.displayName+));+CommandSeparator.displayName = CommandPrimitive.Separator.displayName;const CommandItem = React.forwardRef<React.ElementRef<typeof CommandPrimitive.Item>,@@ -117,14 +117,14 @@ const CommandItem = React.forwardRef<<CommandPrimitive.Itemref={ref}className={cn(- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",- className+ "aria-selected:bg-accent aria-selected:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",+ className,)}{...props}/>-))+));-CommandItem.displayName = CommandPrimitive.Item.displayName+CommandItem.displayName = CommandPrimitive.Item.displayName;const CommandShortcut = ({className,@@ -133,14 +133,14 @@ const CommandShortcut = ({return (<spanclassName={cn(- "ml-auto text-xs tracking-widest text-muted-foreground",- className+ "text-muted-foreground ml-auto text-xs tracking-widest",+ className,)}{...props}/>- )-}-CommandShortcut.displayName = "CommandShortcut"+ );+};+CommandShortcut.displayName = "CommandShortcut";export {Command,@@ -152,4 +152,4 @@ export {CommandItem,CommandShortcut,CommandSeparator,-}+};diff --git a/apps/web/src/components/ui/dialog.tsx b/apps/web/src/components/ui/dialog.tsxindex 59276b94a..d1997bd58 100644--- a/apps/web/src/components/ui/dialog.tsx+++ b/apps/web/src/components/ui/dialog.tsx@@ -30,8 +30,8 @@ const DialogOverlay = React.forwardRef<<DialogPrimitive.Overlayref={ref}className={cn(- "fixed inset-0 z-50 bg-background/80 backdrop-blur-sm transition-all duration-100 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in",- className+ "bg-background/80 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in fixed inset-0 z-50 backdrop-blur-sm transition-all duration-100",+ className,)}{...props}/>@@ -47,13 +47,13 @@ const DialogContent = React.forwardRef<<DialogPrimitive.Contentref={ref}className={cn(- "fixed z-50 grid w-full gap-4 rounded-b-lg border bg-background p-6 shadow-lg animate-in data-[state=open]:fade-in-90 data-[state=open]:slide-in-from-bottom-10 sm:max-w-lg sm:rounded-lg sm:zoom-in-90 data-[state=open]:sm:slide-in-from-bottom-0",- className+ "bg-background animate-in data-[state=open]:fade-in-90 data-[state=open]:slide-in-from-bottom-10 sm:zoom-in-90 data-[state=open]:sm:slide-in-from-bottom-0 fixed z-50 grid w-full gap-4 rounded-b-lg border p-6 shadow-lg sm:max-w-lg sm:rounded-lg",+ className,)}{...props}>{children}- <DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground">+ <DialogPrimitive.Close className="ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none"><X className="h-4 w-4" /><span className="sr-only">Close</span></DialogPrimitive.Close>@@ -69,7 +69,7 @@ const DialogHeader = ({<divclassName={cn("flex flex-col space-y-1.5 text-center sm:text-left",- className+ className,)}{...props}/>@@ -83,7 +83,7 @@ const DialogFooter = ({<divclassName={cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",- className+ className,)}{...props}/>@@ -98,7 +98,7 @@ const DialogTitle = React.forwardRef<ref={ref}className={cn("text-lg font-semibold leading-none tracking-tight",- className+ className,)}{...props}/>@@ -111,7 +111,7 @@ const DialogDescription = React.forwardRef<>(({ className, ...props }, ref) => (<DialogPrimitive.Descriptionref={ref}- className={cn("text-sm text-muted-foreground", className)}+ className={cn("text-muted-foreground text-sm", className)}{...props}/>));diff --git a/apps/web/src/components/ui/input.tsx b/apps/web/src/components/ui/input.tsxindex a625c1a7e..56301bc14 100644--- a/apps/web/src/components/ui/input.tsx+++ b/apps/web/src/components/ui/input.tsx@@ -2,8 +2,7 @@ import * as React from "react";import { cn } from "@/lib/utils";-export interface InputProps- extends React.InputHTMLAttributes<HTMLInputElement> {}+export type InputProps = React.InputHTMLAttributes<HTMLInputElement>;const Input = React.forwardRef<HTMLInputElement, InputProps>(({ className, type, ...props }, ref) => {@@ -11,14 +10,14 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(<inputtype={type}className={cn(- "flex h-10 w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",- className+ "border-input ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex h-10 w-full rounded-md border bg-transparent px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",+ className,)}ref={ref}{...props}/>);- }+ },);Input.displayName = "Input";diff --git a/apps/web/src/components/ui/table.tsx b/apps/web/src/components/ui/table.tsxindex 7aeb37e7d..c0e3499ba 100644--- a/apps/web/src/components/ui/table.tsx+++ b/apps/web/src/components/ui/table.tsx@@ -42,7 +42,7 @@ const TableFooter = React.forwardRef<>(({ className, ...props }, ref) => (<tfootref={ref}- className={cn("bg-primary font-medium text-primary-foreground", className)}+ className={cn("bg-primary text-primary-foreground font-medium", className)}{...props}/>));@@ -55,8 +55,8 @@ const TableRow = React.forwardRef<<trref={ref}className={cn(- "border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",- className+ "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",+ className,)}{...props}/>@@ -70,8 +70,8 @@ const TableHead = React.forwardRef<<thref={ref}className={cn(- "h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",- className+ "text-muted-foreground h-10 px-2 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",+ className,)}{...props}/>@@ -86,7 +86,7 @@ const TableCell = React.forwardRef<ref={ref}className={cn("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",- className+ className,)}{...props}/>@@ -99,7 +99,7 @@ const TableCaption = React.forwardRef<>(({ className, ...props }, ref) => (<captionref={ref}- className={cn("mt-4 text-sm text-muted-foreground", className)}+ className={cn("text-muted-foreground mt-4 text-sm", className)}{...props}/>));diff --git a/apps/web/src/components/ui/toast.tsx b/apps/web/src/components/ui/toast.tsxindex f8205889e..e9b64326b 100644--- a/apps/web/src/components/ui/toast.tsx+++ b/apps/web/src/components/ui/toast.tsx@@ -1,11 +1,12 @@-import * as React from "react"-import * as ToastPrimitives from "@radix-ui/react-toast"-import { cva, type VariantProps } from "class-variance-authority"-import { X } from "lucide-react"+import * as React from "react";+import * as ToastPrimitives from "@radix-ui/react-toast";+import { cva } from "class-variance-authority";+import type { VariantProps } from "class-variance-authority";+import { X } from "lucide-react";-import { cn } from "@/lib/utils"+import { cn } from "@/lib/utils";-const ToastProvider = ToastPrimitives.Provider+const ToastProvider = ToastPrimitives.Provider;const ToastViewport = React.forwardRef<React.ElementRef<typeof ToastPrimitives.Viewport>,@@ -15,12 +16,12 @@ const ToastViewport = React.forwardRef<ref={ref}className={cn("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",- className+ className,)}{...props}/>-))-ToastViewport.displayName = ToastPrimitives.Viewport.displayName+));+ToastViewport.displayName = ToastPrimitives.Viewport.displayName;const toastVariants = cva("data-[swipe=move]:transition-none group relative pointer-events-auto flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full data-[state=closed]:slide-out-to-right-full",@@ -35,8 +36,8 @@ const toastVariants = cva(defaultVariants: {variant: "default",},- }-)+ },+);const Toast = React.forwardRef<React.ElementRef<typeof ToastPrimitives.Root>,@@ -49,9 +50,9 @@ const Toast = React.forwardRef<className={cn(toastVariants({ variant }), className)}{...props}/>- )-})-Toast.displayName = ToastPrimitives.Root.displayName+ );+});+Toast.displayName = ToastPrimitives.Root.displayName;const ToastAction = React.forwardRef<React.ElementRef<typeof ToastPrimitives.Action>,@@ -60,13 +61,13 @@ const ToastAction = React.forwardRef<<ToastPrimitives.Actionref={ref}className={cn(- "inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-destructive/30 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",- className+ "ring-offset-background hover:bg-secondary focus:ring-ring group-[.destructive]:border-destructive/30 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",+ className,)}{...props}/>-))-ToastAction.displayName = ToastPrimitives.Action.displayName+));+ToastAction.displayName = ToastPrimitives.Action.displayName;const ToastClose = React.forwardRef<React.ElementRef<typeof ToastPrimitives.Close>,@@ -75,16 +76,16 @@ const ToastClose = React.forwardRef<<ToastPrimitives.Closeref={ref}className={cn(- "absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",- className+ "text-foreground/50 hover:text-foreground absolute right-2 top-2 rounded-md p-1 opacity-0 transition-opacity focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",+ className,)}toast-close=""{...props}><X className="h-4 w-4" /></ToastPrimitives.Close>-))-ToastClose.displayName = ToastPrimitives.Close.displayName+));+ToastClose.displayName = ToastPrimitives.Close.displayName;const ToastTitle = React.forwardRef<React.ElementRef<typeof ToastPrimitives.Title>,@@ -95,8 +96,8 @@ const ToastTitle = React.forwardRef<className={cn("text-sm font-semibold", className)}{...props}/>-))-ToastTitle.displayName = ToastPrimitives.Title.displayName+));+ToastTitle.displayName = ToastPrimitives.Title.displayName;const ToastDescription = React.forwardRef<React.ElementRef<typeof ToastPrimitives.Description>,@@ -107,12 +108,12 @@ const ToastDescription = React.forwardRef<className={cn("text-sm opacity-90", className)}{...props}/>-))-ToastDescription.displayName = ToastPrimitives.Description.displayName+));+ToastDescription.displayName = ToastPrimitives.Description.displayName;-type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>+type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>;-type ToastActionElement = React.ReactElement<typeof ToastAction>+type ToastActionElement = React.ReactElement<typeof ToastAction>;export {type ToastProps,@@ -124,4 +125,4 @@ export {ToastDescription,ToastClose,ToastAction,-}+};diff --git a/apps/web/src/components/ui/use-toast.ts b/apps/web/src/components/ui/use-toast.tsindex 2c94c2d4a..ac0aff3e9 100644--- a/apps/web/src/components/ui/use-toast.ts+++ b/apps/web/src/components/ui/use-toast.ts@@ -1,73 +1,73 @@// Inspired by react-hot-toast library-import * as React from "react"+import * as React from "react";-import type { ToastActionElement, ToastProps } from "@/components/ui/toast"+import type { ToastActionElement, ToastProps } from "@/components/ui/toast";-const TOAST_LIMIT = 1-const TOAST_REMOVE_DELAY = 1000000+const TOAST_LIMIT = 1;+const TOAST_REMOVE_DELAY = 1000000;type ToasterToast = ToastProps & {- id: string- title?: React.ReactNode- description?: React.ReactNode- action?: ToastActionElement-}+ id: string;+ title?: React.ReactNode;+ description?: React.ReactNode;+ action?: ToastActionElement;+};const actionTypes = {ADD_TOAST: "ADD_TOAST",UPDATE_TOAST: "UPDATE_TOAST",DISMISS_TOAST: "DISMISS_TOAST",REMOVE_TOAST: "REMOVE_TOAST",-} as const+} as const;-let count = 0+let count = 0;function genId() {- count = (count + 1) % Number.MAX_VALUE- return count.toString()+ count = (count + 1) % Number.MAX_VALUE;+ return count.toString();}-type ActionType = typeof actionTypes+type ActionType = typeof actionTypes;type Action =| {- type: ActionType["ADD_TOAST"]- toast: ToasterToast+ type: ActionType["ADD_TOAST"];+ toast: ToasterToast;}| {- type: ActionType["UPDATE_TOAST"]- toast: Partial<ToasterToast>+ type: ActionType["UPDATE_TOAST"];+ toast: Partial<ToasterToast>;}| {- type: ActionType["DISMISS_TOAST"]- toastId?: ToasterToast["id"]+ type: ActionType["DISMISS_TOAST"];+ toastId?: ToasterToast["id"];}| {- type: ActionType["REMOVE_TOAST"]- toastId?: ToasterToast["id"]- }+ type: ActionType["REMOVE_TOAST"];+ toastId?: ToasterToast["id"];+ };interface State {- toasts: ToasterToast[]+ toasts: ToasterToast[];}-const toastTimeouts = new Map<string, ReturnType<typeof setTimeout>>()+const toastTimeouts = new Map<string, ReturnType<typeof setTimeout>>();const addToRemoveQueue = (toastId: string) => {if (toastTimeouts.has(toastId)) {- return+ return;}const timeout = setTimeout(() => {- toastTimeouts.delete(toastId)+ toastTimeouts.delete(toastId);dispatch({type: "REMOVE_TOAST",toastId: toastId,- })- }, TOAST_REMOVE_DELAY)+ });+ }, TOAST_REMOVE_DELAY);- toastTimeouts.set(toastId, timeout)-}+ toastTimeouts.set(toastId, timeout);+};export const reducer = (state: State, action: Action): State => {switch (action.type) {@@ -75,27 +75,27 @@ export const reducer = (state: State, action: Action): State => {return {...state,toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT),- }+ };case "UPDATE_TOAST":return {...state,toasts: state.toasts.map((t) =>- t.id === action.toast.id ? { ...t, ...action.toast } : t+ t.id === action.toast.id ? { ...t, ...action.toast } : t,),- }+ };case "DISMISS_TOAST": {- const { toastId } = action+ const { toastId } = action;// ! Side effects ! - This could be extracted into a dismissToast() action,// but I'll keep it here for simplicityif (toastId) {- addToRemoveQueue(toastId)+ addToRemoveQueue(toastId);} else {state.toasts.forEach((toast) => {- addToRemoveQueue(toast.id)- })+ addToRemoveQueue(toast.id);+ });}return {@@ -106,46 +106,46 @@ export const reducer = (state: State, action: Action): State => {...t,open: false,}- : t+ : t,),- }+ };}case "REMOVE_TOAST":if (action.toastId === undefined) {return {...state,toasts: [],- }+ };}return {...state,toasts: state.toasts.filter((t) => t.id !== action.toastId),- }+ };}-}+};-const listeners: Array<(state: State) => void> = []+const listeners: Array<(state: State) => void> = [];-let memoryState: State = { toasts: [] }+let memoryState: State = { toasts: [] };function dispatch(action: Action) {- memoryState = reducer(memoryState, action)+ memoryState = reducer(memoryState, action);listeners.forEach((listener) => {- listener(memoryState)- })+ listener(memoryState);+ });}-type Toast = Omit<ToasterToast, "id">+type Toast = Omit<ToasterToast, "id">;function toast({ ...props }: Toast) {- const id = genId()+ const id = genId();const update = (props: ToasterToast) =>dispatch({type: "UPDATE_TOAST",toast: { ...props, id },- })- const dismiss = () => dispatch({ type: "DISMISS_TOAST", toastId: id })+ });+ const dismiss = () => dispatch({ type: "DISMISS_TOAST", toastId: id });dispatch({type: "ADD_TOAST",@@ -154,36 +154,36 @@ function toast({ ...props }: Toast) {id,open: true,onOpenChange: (open) => {- if (!open) dismiss()+ if (!open) dismiss();},},- })+ });return {id: id,dismiss,update,- }+ };}function useToast() {- const [state, setState] = React.useState<State>(memoryState)+ const [state, setState] = React.useState<State>(memoryState);React.useEffect(() => {- listeners.push(setState)+ listeners.push(setState);return () => {- const index = listeners.indexOf(setState)+ const index = listeners.indexOf(setState);if (index > -1) {- listeners.splice(index, 1)+ listeners.splice(index, 1);}- }- }, [state])+ };+ }, [state]);return {...state,toast,dismiss: (toastId?: string) => dispatch({ type: "DISMISS_TOAST", toastId }),- }+ };}-export { useToast, toast }+export { useToast, toast };diff --git a/apps/web/src/lib/utils.ts b/apps/web/src/lib/utils.tsindex a5ef19350..73be6201d 100644--- a/apps/web/src/lib/utils.ts+++ b/apps/web/src/lib/utils.ts@@ -1,4 +1,5 @@-import { clsx, type ClassValue } from "clsx";+import { clsx } from "clsx";+import type { ClassValue } from "clsx";import { twMerge } from "tailwind-merge";export function cn(...inputs: ClassValue[]) {diff --git a/apps/web/src/middleware.ts b/apps/web/src/middleware.tsindex e8a12c2ae..cdf9a4b0c 100644--- a/apps/web/src/middleware.ts+++ b/apps/web/src/middleware.ts@@ -6,6 +6,7 @@ export default authMiddleware({"/api/og","/api/webhook/ping","/api/v0/cron",+ "/api/v0/ping","/api/webhook/clerk",],});diff --git a/package.json b/package.jsonindex 4bf3e3295..96bb52203 100644--- a/package.json+++ b/package.json@@ -9,7 +9,9 @@"devDependencies": {"@turbo/gen": "1.10.3","eslint": "8.43.0",- "eslint-config-custom": "workspace:*",+ "@openstatus/eslint-config": "workspace:*",+ "@ianvs/prettier-plugin-sort-imports": "4.0.2",+ "prettier-plugin-tailwindcss": "0.3.0","prettier": "2.8.8","turbo": "latest","typescript": "5.1.3"diff --git a/packages/api/src/router/clerk/type.ts b/packages/api/src/router/clerk/type.tsindex 8a91505c3..df4974bdc 100644--- a/packages/api/src/router/clerk/type.ts+++ b/packages/api/src/router/clerk/type.ts@@ -10,7 +10,7 @@ export const clerkEvent = z.discriminatedUnion("type", [email_addresses: z.array(z.object({email_address: z.string(),- })+ }),),first_name: z.string(),last_name: z.string(),diff --git a/packages/api/src/router/clerk/webhook.ts b/packages/api/src/router/clerk/webhook.tsindex 2183ffcb8..464839f2b 100644--- a/packages/api/src/router/clerk/webhook.ts+++ b/packages/api/src/router/clerk/webhook.ts@@ -1,13 +1,14 @@import * as z from "zod";-import { createTRPCRouter, publicProcedure } from "../../trpc";import { user } from "@openstatus/db/src/schema";++import { createTRPCRouter, publicProcedure } from "../../trpc";import { clerkEvent } from "./type";export const webhookProcedure = publicProcedure.input(z.object({data: clerkEvent,- })+ }),);export const webhookRouter = createTRPCRouter({diff --git a/packages/api/src/router/workspace.ts b/packages/api/src/router/workspace.tsindex b8b31d9e9..bfa5ec9af 100644--- a/packages/api/src/router/workspace.ts+++ b/packages/api/src/router/workspace.ts@@ -1,7 +1,8 @@import { eq } from "@openstatus/db";-import { createTRPCRouter, protectedProcedure } from "../trpc";import { user } from "@openstatus/db/src/schema";+import { createTRPCRouter, protectedProcedure } from "../trpc";+export const workspaceRouter = createTRPCRouter({getUserWorkspace: protectedProcedure.query(async (opts) => {return await opts.ctx.db.query.workspace.findMany({diff --git a/packages/api/src/trpc.ts b/packages/api/src/trpc.tsindex 4bbb47419..e15f15182 100644--- a/packages/api/src/trpc.ts+++ b/packages/api/src/trpc.ts@@ -1,6 +1,5 @@//@ts-expect-error FIXME:import type { NextRequest } from "next/server";-import type {SignedInAuthObject,SignedOutAuthObject,diff --git a/packages/config/eslint/index.js b/packages/config/eslint/index.jsnew file mode 100644index 000000000..f7351589b--- /dev/null+++ b/packages/config/eslint/index.js@@ -0,0 +1,50 @@+/** @type {import("eslint").Linter.Config} */+const config = {+ extends: [+ "next",+ "turbo",+ "prettier",+ "plugin:@typescript-eslint/recommended",+ ],+ parser: "@typescript-eslint/parser",+ plugins: ["@typescript-eslint", "import"],+ rules: {+ "@next/next/no-html-link-for-pages": "off",+ "turbo/no-undeclared-env-vars": "off",+ "@typescript-eslint/no-explicit-any": "off",+ "@typescript-eslint/no-unused-vars": [+ "warn",+ { argsIgnorePattern: "^_", varsIgnorePattern: "^_" },+ ],+ "@typescript-eslint/restrict-template-expressions": "off",+ // restricts so you can't use {} as type. me no likey+ "@typescript-eslint/ban-types": "off",+ // type imports should be imported as types+ "@typescript-eslint/consistent-type-imports": [+ "error",+ {+ prefer: "type-imports",+ fixStyle: "separate-type-imports",+ disallowTypeAnnotations: false,+ },+ ],+ "import/consistent-type-specifier-style": ["error", "prefer-top-level"],+ },++ parserOptions: {+ ecmaFeatures: {+ jsx: true,+ },+ },+ ignorePatterns: [+ "**/*.config.js",+ "**/*.config.cjs",+ ".eslintrc.cjs",+ "packages/config/**",+ "**/dist/**",+ "**/.next/**",+ ],+ reportUnusedDisableDirectives: true,+};++module.exports = config;diff --git a/packages/config/eslint/package.json b/packages/config/eslint/package.jsonnew file mode 100644index 000000000..1d2514b3b--- /dev/null+++ b/packages/config/eslint/package.json@@ -0,0 +1,24 @@+{+ "name": "@openstatus/eslint-config",+ "version": "0.0.0",+ "main": "index.js",+ "license": "MIT",+ "dependencies": {+ "@types/eslint": "^8.40.0",+ "@typescript-eslint/eslint-plugin": "^5.59.9",+ "@typescript-eslint/parser": "^5.59.9",+ "eslint-config-next": "13.4.1",+ "eslint-config-prettier": "^8.8.0",+ "eslint-config-turbo": "^1.10.1",+ "eslint-plugin-import": "^2.27.5",+ "eslint-plugin-react": "7.32.2"++ },+ "devDependencies": {+ "eslint": "^8.42.0",+ "typescript": "5.1.3"+ },+ "publishConfig": {+ "access": "public"+ }+}diff --git a/packages/db/drizzle.config.ts b/packages/db/drizzle.config.tsindex d945f09c4..1691c6c4b 100644--- a/packages/db/drizzle.config.ts+++ b/packages/db/drizzle.config.ts@@ -1,4 +1,5 @@import "dotenv/config";+import type { Config } from "drizzle-kit";import { env } from "./env.mjs";diff --git a/packages/db/src/db.ts b/packages/db/src/db.tsindex 37161ff6f..c7a495e13 100644--- a/packages/db/src/db.ts+++ b/packages/db/src/db.ts@@ -1,7 +1,9 @@-import { drizzle } from "drizzle-orm/planetscale-serverless";-import * as schema from "./schema";import { connect } from "@planetscale/database";+import { drizzle } from "drizzle-orm/planetscale-serverless";+import { env } from "../env.mjs";+import * as schema from "./schema";+const config = {url: env.DATABASE_URL,};diff --git a/packages/db/src/schema/incident.ts b/packages/db/src/schema/incident.tsindex 4adccb891..af7778421 100644--- a/packages/db/src/schema/incident.ts+++ b/packages/db/src/schema/incident.ts@@ -1,13 +1,14 @@import { relations } from "drizzle-orm";import {datetime,+ int,+ mysqlEnum,mysqlTable,- varchar,text,- mysqlEnum,- int,timestamp,+ varchar,} from "drizzle-orm/mysql-core";+import { page } from "./page";export const incident = mysqlTable("incident", {diff --git a/packages/db/src/schema/index.ts b/packages/db/src/schema/index.tsindex 14da2c548..fe10f9a5a 100644--- a/packages/db/src/schema/index.ts+++ b/packages/db/src/schema/index.ts@@ -1,5 +1,3 @@-import { mysqlTable, serial, text } from "drizzle-orm/mysql-core";-export * from "./incident";export * from "./page";export * from "./monitor";diff --git a/packages/db/src/schema/monitor.ts b/packages/db/src/schema/monitor.tsindex 1e44ba025..40f57eb02 100644--- a/packages/db/src/schema/monitor.ts+++ b/packages/db/src/schema/monitor.ts@@ -1,12 +1,12 @@+import { relations } from "drizzle-orm";import {- datetime,+ int,mysqlEnum,mysqlTable,- int,- varchar,timestamp,+ varchar,} from "drizzle-orm/mysql-core";-import { relations } from "drizzle-orm";+import { page } from "./page";export const monitor = mysqlTable("monitor", {diff --git a/packages/db/src/schema/page.ts b/packages/db/src/schema/page.tsindex 016a8eaca..5b0687213 100644--- a/packages/db/src/schema/page.ts+++ b/packages/db/src/schema/page.ts@@ -1,13 +1,13 @@+import { relations } from "drizzle-orm";import {- mysqlTable,- varchar,int,- timestamp,+ mysqlTable,text,+ timestamp,+ varchar,} from "drizzle-orm/mysql-core";-import { relations } from "drizzle-orm";-import { incident } from "./incident";+import { incident } from "./incident";import { monitor } from "./monitor";export const page = mysqlTable("page", {diff --git a/packages/db/src/schema/user.ts b/packages/db/src/schema/user.tsindex 64fb7a37d..28c0425c8 100644--- a/packages/db/src/schema/user.ts+++ b/packages/db/src/schema/user.ts@@ -1,5 +1,6 @@import { relations } from "drizzle-orm";-import { mysqlTable, int, varchar, timestamp } from "drizzle-orm/mysql-core";+import { int, mysqlTable, timestamp, varchar } from "drizzle-orm/mysql-core";+import { workspace } from "./workspace";export const user = mysqlTable("user", {diff --git a/packages/db/src/schema/workspace.ts b/packages/db/src/schema/workspace.tsindex 6afa36441..72b3fb5d1 100644--- a/packages/db/src/schema/workspace.ts+++ b/packages/db/src/schema/workspace.ts@@ -1,5 +1,6 @@-import { mysqlTable, varchar, int, timestamp } from "drizzle-orm/mysql-core";import { relations } from "drizzle-orm";+import { int, mysqlTable, timestamp, varchar } from "drizzle-orm/mysql-core";+import { page } from "./page";import { user } from "./user";diff --git a/packages/eslint-config-custom/index.js b/packages/eslint-config-custom/index.jsdeleted file mode 100644index bf89550e3..000000000--- a/packages/eslint-config-custom/index.js+++ /dev/null@@ -1,18 +0,0 @@-module.exports = {- extends: [- "next",- "turbo",- "eslint:recommended",- "plugin:@typescript-eslint/recommended",- "prettier",- ],- rules: {- "@next/next/no-html-link-for-pages": "off",- "@typescript-eslint/no-empty-interface": "warn",- },- parserOptions: {- babelOptions: {- presets: [require.resolve("next/babel")],- },- },-};diff --git a/packages/eslint-config-custom/package.json b/packages/eslint-config-custom/package.jsondeleted file mode 100644index bf71f5850..000000000--- a/packages/eslint-config-custom/package.json+++ /dev/null@@ -1,23 +0,0 @@-{- "name": "eslint-config-custom",- "version": "0.0.0",- "main": "index.js",- "license": "MIT",- "dependencies": {- "@next/eslint-plugin-next": "13.4.4",- "@types/eslint": "8.40.0",- "@typescript-eslint/eslint-plugin": "5.59.7",- "@typescript-eslint/parser": "5.59.7",- "eslint-config-next": "13.4.6",- "eslint-config-prettier": "8.3.0",- "eslint-config-turbo": "1.10.3",- "eslint-plugin-react": "7.32.2"- },- "devDependencies": {- "eslint": "^8.42.0",- "typescript": "5.1.3"- },- "publishConfig": {- "access": "public"- }-}diff --git a/packages/tinybird/src/client.ts b/packages/tinybird/src/client.tsindex 93058212b..ed3d2c59d 100644--- a/packages/tinybird/src/client.ts+++ b/packages/tinybird/src/client.ts@@ -1,5 +1,5 @@-import * as z from "zod";import type { Tinybird } from "@chronark/zod-bird";+import * as z from "zod";// REMINDER:// const tb = new Tinybird({ token: process.env.TINYBIRD_TOKEN! });diff --git a/packages/ui/package.json b/packages/ui/package.jsonindex ec8fcea04..21846359d 100644--- a/packages/ui/package.json+++ b/packages/ui/package.json@@ -12,7 +12,7 @@"@types/react": "18.2.12","@types/react-dom": "18.2.5","eslint": "8.43.0",- "eslint-config-custom": "workspace:*",+ "@openstatus/eslint-config": "workspace:*","react": "18.2.0","tsconfig": "workspace:*","typescript": "5.1.3"diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 8100a3813..fe4f50433 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -8,18 +8,24 @@ importers:.:devDependencies:+ '@ianvs/prettier-plugin-sort-imports':+ specifier: 4.0.2+ version: 4.0.2([email protected])+ '@openstatus/eslint-config':+ specifier: workspace:*+ version: link:packages/config/eslint'@turbo/gen':specifier: 1.10.3version: 1.10.3(@types/[email protected])([email protected])eslint:specifier: 8.43.0version: 8.43.0- eslint-config-custom:- specifier: workspace:*- version: link:packages/eslint-config-customprettier:specifier: 2.8.8version: 2.8.8+ prettier-plugin-tailwindcss:+ specifier: 0.3.0+ version: 0.3.0(@ianvs/[email protected])([email protected])turbo:specifier: latestversion: 1.10.5@@ -27,40 +33,6 @@ importers:specifier: 5.1.3version: 5.1.3- apps/docs:- dependencies:- next:- specifier: 13.4.6- version: 13.4.6([email protected])([email protected])- react:- specifier: 18.2.0- version: 18.2.0- react-dom:- specifier: 18.2.0- version: 18.2.0([email protected])- ui:- specifier: workspace:*- version: link:../../packages/ui- devDependencies:- '@types/node':- specifier: 20.3.1- version: 20.3.1- '@types/react':- specifier: 18.2.12- version: 18.2.12- '@types/react-dom':- specifier: 18.2.5- version: 18.2.5- eslint-config-custom:- specifier: workspace:*- version: link:../../packages/eslint-config-custom- tsconfig:- specifier: workspace:*- version: link:../../packages/tsconfig- typescript:- specifier: 5.1.3- version: 5.1.3-apps/web:dependencies:'@clerk/nextjs':@@ -125,7 +97,7 @@ importers:version: 10.0.1next:specifier: 13.4.6- version: 13.4.6([email protected])([email protected])next-plausible:specifier: 3.7.2@@ -157,6 +129,9 @@ importers:specifier: ^3.21.4version: 3.21.4devDependencies:+ '@openstatus/eslint-config':+ specifier: workspace:*+ version: link:../../packages/config/eslint'@types/node':specifier: 20.3.1version: 20.3.1@@ -169,9 +144,6 @@ importers:autoprefixer:specifier: 10.4.14version: 10.4.14([email protected])- eslint-config-custom:- specifier: workspace:*- version: link:../../packages/eslint-config-custompostcss:specifier: 8.4.24version: 8.4.24@@ -213,6 +185,40 @@ importers:specifier: 5.1.3version: 5.1.3+ packages/config/eslint:+ dependencies:+ '@types/eslint':+ specifier: ^8.40.0+ version: 8.40.0+ '@typescript-eslint/eslint-plugin':+ specifier: ^5.59.9+ '@typescript-eslint/parser':+ specifier: ^5.59.9+ version: 5.59.9([email protected])([email protected])+ eslint-config-next:+ specifier: 13.4.1+ version: 13.4.1([email protected])([email protected])+ eslint-config-prettier:+ specifier: ^8.8.0+ version: 8.8.0([email protected])+ eslint-config-turbo:+ specifier: ^1.10.1+ version: 1.10.3([email protected])+ eslint-plugin-import:+ specifier: ^2.27.5+ eslint-plugin-react:+ specifier: 7.32.2+ version: 7.32.2([email protected])+ devDependencies:+ eslint:+ specifier: ^8.42.0+ version: 8.43.0+ typescript:+ specifier: 5.1.3+ version: 5.1.3+packages/db:dependencies:'@planetscale/database':@@ -244,40 +250,6 @@ importers:specifier: 5.1.3version: 5.1.3- packages/eslint-config-custom:- dependencies:- '@next/eslint-plugin-next':- specifier: 13.4.4- version: 13.4.4- '@types/eslint':- specifier: 8.40.0- version: 8.40.0- '@typescript-eslint/eslint-plugin':- specifier: 5.59.7- '@typescript-eslint/parser':- specifier: 5.59.7- version: 5.59.7([email protected])([email protected])- eslint-config-next:- specifier: 13.4.6- version: 13.4.6([email protected])([email protected])- eslint-config-prettier:- specifier: 8.3.0- version: 8.3.0([email protected])- eslint-config-turbo:- specifier: 1.10.3- version: 1.10.3([email protected])- eslint-plugin-react:- specifier: 7.32.2- version: 7.32.2([email protected])- devDependencies:- eslint:- specifier: ^8.42.0- version: 8.43.0- typescript:- specifier: 5.1.3- version: 5.1.3-packages/tinybird:dependencies:'@chronark/zod-bird':@@ -301,6 +273,9 @@ importers:packages/ui:devDependencies:+ '@openstatus/eslint-config':+ specifier: workspace:*+ version: link:../config/eslint'@types/react':specifier: 18.2.12version: 18.2.12@@ -310,9 +285,6 @@ importers:eslint:specifier: 8.43.0version: 8.43.0- eslint-config-custom:- specifier: workspace:*- version: link:../eslint-config-customreact:specifier: 18.2.0version: 18.2.0@@ -357,6 +329,154 @@ packages:resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==}engines: {node: '>=10'}+ /@ampproject/[email protected]:+ resolution: {integrity: sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==}+ engines: {node: '>=6.0.0'}+ dependencies:+ '@jridgewell/gen-mapping': 0.3.3+ '@jridgewell/trace-mapping': 0.3.18++ /@babel/[email protected]:+ resolution: {integrity: sha512-Xmwn266vad+6DAqEB2A6V/CcZVp62BbwVmcOJc2RPuwih1kw02TjQvWVWlcKGbBPd+8/0V5DEkOcizRGYsspYQ==}+ engines: {node: '>=6.9.0'}+ dependencies:+ '@babel/highlight': 7.22.5++ /@babel/[email protected]:+ resolution: {integrity: sha512-4Jc/YuIaYqKnDDz892kPIledykKg12Aw1PYX5i/TY28anJtacvM1Rrr8wbieB9GfEJwlzqT0hUEao0CxEebiDA==}+ engines: {node: '>=6.9.0'}++ /@babel/[email protected]:+ resolution: {integrity: sha512-SBuTAjg91A3eKOvD+bPEz3LlhHZRNu1nFOVts9lzDJTXshHTjII0BAtDS3Y2DAkdZdDKWVZGVwkDfc4Clxn1dg==}+ engines: {node: '>=6.9.0'}+ dependencies:+ '@ampproject/remapping': 2.2.1+ '@babel/code-frame': 7.22.5+ '@babel/generator': 7.22.5+ '@babel/helper-compilation-targets': 7.22.5(@babel/[email protected])+ '@babel/helper-module-transforms': 7.22.5+ '@babel/helpers': 7.22.5+ '@babel/parser': 7.22.5+ '@babel/template': 7.22.5+ '@babel/traverse': 7.22.5+ '@babel/types': 7.22.5+ convert-source-map: 1.9.0+ debug: 4.3.4+ gensync: 1.0.0-beta.2+ json5: 2.2.3+ semver: 6.3.0+ transitivePeerDependencies:+ - supports-color++ /@babel/[email protected]:+ resolution: {integrity: sha512-+lcUbnTRhd0jOewtFSedLyiPsD5tswKkbgcezOqqWFUVNEwoUTlpPOBmvhG7OXWLR4jMdv0czPGH5XbflnD1EA==}+ engines: {node: '>=6.9.0'}+ dependencies:+ '@babel/types': 7.22.5+ '@jridgewell/gen-mapping': 0.3.3+ '@jridgewell/trace-mapping': 0.3.18+ jsesc: 2.5.2++ /@babel/[email protected](@babel/[email protected]):+ resolution: {integrity: sha512-Ji+ywpHeuqxB8WDxraCiqR0xfhYjiDE/e6k7FuIaANnoOFxAHskHChz4vA1mJC9Lbm01s1PVAGhQY4FUKSkGZw==}+ engines: {node: '>=6.9.0'}+ peerDependencies:+ '@babel/core': ^7.0.0+ dependencies:+ '@babel/compat-data': 7.22.5+ '@babel/core': 7.22.5+ '@babel/helper-validator-option': 7.22.5+ browserslist: 4.21.9+ lru-cache: 5.1.1+ semver: 6.3.0++ /@babel/[email protected]:+ resolution: {integrity: sha512-XGmhECfVA/5sAt+H+xpSg0mfrHq6FzNr9Oxh7PSEBBRUb/mL7Kz3NICXb194rCqAEdxkhPT1a88teizAFyvk8Q==}+ engines: {node: '>=6.9.0'}++ /@babel/[email protected]:+ resolution: {integrity: sha512-wtHSq6jMRE3uF2otvfuD3DIvVhOsSNshQl0Qrd7qC9oQJzHvOL4qQXlQn2916+CXGywIjpGuIkoyZRRxHPiNQQ==}+ engines: {node: '>=6.9.0'}+ dependencies:+ '@babel/template': 7.22.5+ '@babel/types': 7.22.5++ /@babel/[email protected]:+ resolution: {integrity: sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==}+ engines: {node: '>=6.9.0'}+ dependencies:+ '@babel/types': 7.22.5++ /@babel/[email protected]:+ resolution: {integrity: sha512-8Dl6+HD/cKifutF5qGd/8ZJi84QeAKh+CEe1sBzz8UayBBGg1dAIJrdHOcOM5b2MpzWL2yuotJTtGjETq0qjXg==}+ engines: {node: '>=6.9.0'}+ dependencies:+ '@babel/types': 7.22.5++ /@babel/[email protected]:+ resolution: {integrity: sha512-+hGKDt/Ze8GFExiVHno/2dvG5IdstpzCq0y4Qc9OJ25D4q3pKfiIP/4Vp3/JvhDkLKsDK2api3q3fpIgiIF5bw==}+ engines: {node: '>=6.9.0'}+ dependencies:+ '@babel/helper-environment-visitor': 7.22.5+ '@babel/helper-module-imports': 7.22.5+ '@babel/helper-simple-access': 7.22.5+ '@babel/helper-split-export-declaration': 7.22.5+ '@babel/helper-validator-identifier': 7.22.5+ '@babel/template': 7.22.5+ '@babel/traverse': 7.22.5+ '@babel/types': 7.22.5+ transitivePeerDependencies:+ - supports-color++ /@babel/[email protected]:+ resolution: {integrity: sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==}+ engines: {node: '>=6.9.0'}+ dependencies:+ '@babel/types': 7.22.5++ /@babel/[email protected]:+ resolution: {integrity: sha512-thqK5QFghPKWLhAV321lxF95yCg2K3Ob5yw+M3VHWfdia0IkPXUtoLH8x/6Fh486QUvzhb8YOWHChTVen2/PoQ==}+ engines: {node: '>=6.9.0'}+ dependencies:+ '@babel/types': 7.22.5++ /@babel/[email protected]:+ resolution: {integrity: sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==}+ engines: {node: '>=6.9.0'}++ /@babel/[email protected]:+ resolution: {integrity: sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ==}+ engines: {node: '>=6.9.0'}++ /@babel/[email protected]:+ resolution: {integrity: sha512-R3oB6xlIVKUnxNUxbmgq7pKjxpru24zlimpE8WK47fACIlM0II/Hm1RS8IaOI7NgCr6LNS+jl5l75m20npAziw==}+ engines: {node: '>=6.9.0'}++ /@babel/[email protected]:+ resolution: {integrity: sha512-pSXRmfE1vzcUIDFQcSGA5Mr+GxBV9oiRKDuDxXvWQQBCh8HoIjs/2DlDB7H8smac1IVrB9/xdXj2N3Wol9Cr+Q==}+ engines: {node: '>=6.9.0'}+ dependencies:+ '@babel/template': 7.22.5+ '@babel/traverse': 7.22.5+ '@babel/types': 7.22.5+ transitivePeerDependencies:+ - supports-color++ /@babel/[email protected]:+ resolution: {integrity: sha512-BSKlD1hgnedS5XRnGOljZawtag7H1yPfQp0tdNJCHoH6AZ+Pcm9VvkrK59/Yy593Ypg0zMxH2BxD1VPYUQ7UIw==}+ engines: {node: '>=6.9.0'}+ dependencies:+ '@babel/helper-validator-identifier': 7.22.5+ chalk: 2.4.2+ js-tokens: 4.0.0++ /@babel/[email protected]:+ resolution: {integrity: sha512-DFZMC9LJUG9PLOclRC32G63UXwzqS2koQC8dkx+PLdmt1xSePYpbT/NbsrJy8Q/muXz7o/h/d4A7Fuyixm559Q==}+ engines: {node: '>=6.0.0'}+ hasBin: true+ dependencies:+ '@babel/types': 7.22.5+/@babel/[email protected]:resolution: {integrity: sha512-TNPDN6aBFaUox2Lu+H/Y1dKKQgr4ucz/FGyCz67RVYLsBpVpUFf1dDngzg+Od8aqbrqwyztkaZjtWCZEUOT8zA==}engines: {node: '>=6.9.0'}@@ -372,6 +492,39 @@ packages:regenerator-runtime: 0.13.11dev: false+ /@babel/[email protected]:+ resolution: {integrity: sha512-X7yV7eiwAxdj9k94NEylvbVHLiVG1nvzCV2EAowhxLTwODV1jl9UzZ48leOC0sH7OnuHrIkllaBgneUykIcZaw==}+ engines: {node: '>=6.9.0'}+ dependencies:+ '@babel/code-frame': 7.22.5+ '@babel/parser': 7.22.5+ '@babel/types': 7.22.5++ /@babel/[email protected]:+ resolution: {integrity: sha512-7DuIjPgERaNo6r+PZwItpjCZEa5vyw4eJGufeLxrPdBXBoLcCJCIasvK6pK/9DVNrLZTLFhUGqaC6X/PA007TQ==}+ engines: {node: '>=6.9.0'}+ dependencies:+ '@babel/code-frame': 7.22.5+ '@babel/generator': 7.22.5+ '@babel/helper-environment-visitor': 7.22.5+ '@babel/helper-function-name': 7.22.5+ '@babel/helper-hoist-variables': 7.22.5+ '@babel/helper-split-export-declaration': 7.22.5+ '@babel/parser': 7.22.5+ '@babel/types': 7.22.5+ debug: 4.3.4+ globals: 11.12.0+ transitivePeerDependencies:+ - supports-color++ /@babel/[email protected]:+ resolution: {integrity: sha512-zo3MIHGOkPOfoRXitsgHLjEXmlDaD/5KU1Uzuc9GNiZPhSqVxVRtxuPaSBZDsYZ9qV88AjtMtWW7ww98loJ9KA==}+ engines: {node: '>=6.9.0'}+ dependencies:+ '@babel/helper-string-parser': 7.22.5+ '@babel/helper-validator-identifier': 7.22.5+ to-fast-properties: 2.0.0+/@chronark/[email protected]:resolution: {integrity: sha512-6UD9yhNIsvIP0FUqNuZ+bByQLc0IY2eQpeQn55CsqvZziGKQuPGqJzyq6o283fDgkKXTbXmQ7zC/LDBX6yrBhA==}dependencies:@@ -431,7 +584,7 @@ packages:'@clerk/clerk-react': 4.20.5([email protected])'@clerk/clerk-sdk-node': 4.10.12'@clerk/types': 3.46.0- next: 13.4.6([email protected])([email protected])path-to-regexp: 6.2.1react: 18.2.0react-dom: 18.2.0([email protected])@@ -1125,6 +1278,26 @@ packages:/@humanwhocodes/[email protected]:resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==}+ /@ianvs/[email protected]([email protected]):+ resolution: {integrity: sha512-VnsTzyb9aSWpc3v6HvZKD6eolZRvofIYjhda+6IbW1GYwr2byWqK0KhLPbYNkit9MAgShad5bhZ1hgBn867A1A==}+ peerDependencies:+ '@vue/compiler-sfc': '>=3.0.0'+ prettier: 2.x+ peerDependenciesMeta:+ '@vue/compiler-sfc':+ optional: true+ dependencies:+ '@babel/core': 7.22.5+ '@babel/generator': 7.22.5+ '@babel/parser': 7.22.5+ '@babel/traverse': 7.22.5+ '@babel/types': 7.22.5+ prettier: 2.8.8+ semver: 7.5.2+ transitivePeerDependencies:+ - supports-color+ dev: true+/@jridgewell/[email protected]:resolution: {integrity: sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==}engines: {node: '>=6.0.0'}@@ -1133,6 +1306,10 @@ packages:'@jridgewell/sourcemap-codec': 1.4.15'@jridgewell/trace-mapping': 0.3.9+ /@jridgewell/[email protected]:+ resolution: {integrity: sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==}+ engines: {node: '>=6.0.0'}+/@jridgewell/[email protected]:resolution: {integrity: sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==}engines: {node: '>=6.0.0'}@@ -1141,9 +1318,18 @@ packages:resolution: {integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==}engines: {node: '>=6.0.0'}+ /@jridgewell/[email protected]:+ resolution: {integrity: sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==}+/@jridgewell/[email protected]:resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==}+ /@jridgewell/[email protected]:+ resolution: {integrity: sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==}+ dependencies:+ '@jridgewell/resolve-uri': 3.1.0+ '@jridgewell/sourcemap-codec': 1.4.14+/@jridgewell/[email protected]:resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==}dependencies:@@ -1154,14 +1340,8 @@ packages:resolution: {integrity: sha512-nqUxEtvDqFhmV1/awSg0K2XHNwkftNaiUqCYO9e6+MYmqNObpKVl7OgMkGaQ2SZnFx5YqF0t60ZJTlyJIDAijg==}dev: false- /@next/[email protected]:- resolution: {integrity: sha512-5jnh7q6I15efnjR/rR+/TGTc9hn53g3JTbEjAMjmeQiExKqEUgIXqrHI5zlTNlNyzCPkBB860/ctxXheZaF2Vw==}- dependencies:- glob: 7.1.7- dev: false-- /@next/[email protected]:- resolution: {integrity: sha512-bPigeu0RI7bgy1ucBA2Yqcfg539y0Lzo38P2hIkrRB1GNvFSbYg6RTu8n6tGqPVrH3TTlPTNKLXG01wc+5NuwQ==}+ /@next/[email protected]:+ resolution: {integrity: sha512-tVPS/2FKlA3ANCRCYZVT5jdbUKasBU8LG6bYqcNhyORDFTlDYa4cAWQJjZ7msIgLwMQIbL8CAsxrOL8maa/4Lg==}dependencies:glob: 7.1.7dev: false@@ -1949,7 +2129,7 @@ packages:'@trpc/client': 10.32.0(@trpc/[email protected])'@trpc/react-query': 10.32.0(@tanstack/[email protected])(@trpc/[email protected])(@trpc/[email protected])([email protected])([email protected])'@trpc/server': 10.32.0- next: 13.4.6([email protected])([email protected])react: 18.2.0react-dom: 18.2.0([email protected])react-ssr-prepass: 1.5.0([email protected])@@ -2165,8 +2345,8 @@ packages:'@types/node': 20.3.1dev: true- /@typescript-eslint/[email protected](@typescript-eslint/[email protected])([email protected])([email protected]):- resolution: {integrity: sha512-BL+jYxUFIbuYwy+4fF86k5vdT9lT0CNJ6HtwrIvGh0PhH8s0yy5rjaKH2fDCrz5ITHy07WCzVGNvAmjJh4IJFA==}+ /@typescript-eslint/[email protected](@typescript-eslint/[email protected])([email protected])([email protected]):+ resolution: {integrity: sha512-4uQIBq1ffXd2YvF7MAvehWKW3zVv/w+mSfRAu+8cKbfj3nwzyqJLNcZJpQ/WZ1HLbJDiowwmQ6NO+63nCA+fqA==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}peerDependencies:'@typescript-eslint/parser': ^5.0.0@@ -2177,10 +2357,10 @@ packages:optional: truedependencies:'@eslint-community/regexpp': 4.5.1- '@typescript-eslint/parser': 5.59.7([email protected])([email protected])- '@typescript-eslint/scope-manager': 5.59.7- '@typescript-eslint/type-utils': 5.59.7([email protected])([email protected])- '@typescript-eslint/utils': 5.59.7([email protected])([email protected])+ '@typescript-eslint/parser': 5.59.9([email protected])([email protected])+ '@typescript-eslint/scope-manager': 5.59.9+ '@typescript-eslint/type-utils': 5.59.9([email protected])([email protected])+ '@typescript-eslint/utils': 5.59.9([email protected])([email protected])debug: 4.3.4eslint: 8.43.0grapheme-splitter: 1.0.4@@ -2193,8 +2373,8 @@ packages:- supports-colordev: false- resolution: {integrity: sha512-VhpsIEuq/8i5SF+mPg9jSdIwgMBBp0z9XqjiEay+81PYLJuroN+ET1hM5IhkiYMJd9MkTz8iJLt7aaGAgzWUbQ==}+ resolution: {integrity: sha512-FsPkRvBtcLQ/eVK1ivDiNYBjn3TGJdXy2fhXX+rc7czWl4ARwnpArwbihSOHI2Peg9WbtGHrbThfBUkZZGTtvQ==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}peerDependencies:eslint: ^6.0.0 || ^7.0.0 || ^8.0.0@@ -2203,9 +2383,9 @@ packages:typescript:optional: truedependencies:- '@typescript-eslint/scope-manager': 5.59.7- '@typescript-eslint/types': 5.59.7- '@typescript-eslint/typescript-estree': 5.59.7([email protected])+ '@typescript-eslint/scope-manager': 5.59.9+ '@typescript-eslint/types': 5.59.9+ '@typescript-eslint/typescript-estree': 5.59.9([email protected])debug: 4.3.4eslint: 8.43.0typescript: 5.1.3@@ -2213,16 +2393,16 @@ packages:- supports-colordev: false- /@typescript-eslint/[email protected]:- resolution: {integrity: sha512-FL6hkYWK9zBGdxT2wWEd2W8ocXMu3K94i3gvMrjXpx+koFYdYV7KprKfirpgY34vTGzEPPuKoERpP8kD5h7vZQ==}+ /@typescript-eslint/[email protected]:+ resolution: {integrity: sha512-8RA+E+w78z1+2dzvK/tGZ2cpGigBZ58VMEHDZtpE1v+LLjzrYGc8mMaTONSxKyEkz3IuXFM0IqYiGHlCsmlZxQ==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}dependencies:- '@typescript-eslint/types': 5.59.7- '@typescript-eslint/visitor-keys': 5.59.7+ '@typescript-eslint/types': 5.59.9+ '@typescript-eslint/visitor-keys': 5.59.9dev: false- resolution: {integrity: sha512-ozuz/GILuYG7osdY5O5yg0QxXUAEoI4Go3Do5xeu+ERH9PorHBPSdvD3Tjp2NN2bNLh1NJQSsQu2TPu/Ly+HaQ==}+ resolution: {integrity: sha512-ksEsT0/mEHg9e3qZu98AlSrONAQtrSTljL3ow9CGej8eRo7pe+yaC/mvTjptp23Xo/xIf2mLZKC6KPv4Sji26Q==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}peerDependencies:eslint: '*'@@ -2231,8 +2411,8 @@ packages:typescript:optional: truedependencies:- '@typescript-eslint/typescript-estree': 5.59.7([email protected])- '@typescript-eslint/utils': 5.59.7([email protected])([email protected])+ '@typescript-eslint/typescript-estree': 5.59.9([email protected])+ '@typescript-eslint/utils': 5.59.9([email protected])([email protected])debug: 4.3.4eslint: 8.43.0tsutils: 3.21.0([email protected])@@ -2241,13 +2421,13 @@ packages:- supports-colordev: false- /@typescript-eslint/[email protected]:- resolution: {integrity: sha512-UnVS2MRRg6p7xOSATscWkKjlf/NDKuqo5TdbWck6rIRZbmKpVNTLALzNvcjIfHBE7736kZOFc/4Z3VcZwuOM/A==}+ /@typescript-eslint/[email protected]:+ resolution: {integrity: sha512-uW8H5NRgTVneSVTfiCVffBb8AbwWSKg7qcA4Ot3JI3MPCJGsB4Db4BhvAODIIYE5mNj7Q+VJkK7JxmRhk2Lyjw==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}dev: false- /@typescript-eslint/[email protected]([email protected]):- resolution: {integrity: sha512-4A1NtZ1I3wMN2UGDkU9HMBL+TIQfbrh4uS0WDMMpf3xMRursDbqEf1ahh6vAAe3mObt8k3ZATnezwG4pdtWuUQ==}+ /@typescript-eslint/[email protected]([email protected]):+ resolution: {integrity: sha512-pmM0/VQ7kUhd1QyIxgS+aRvMgw+ZljB3eDb+jYyp6d2bC0mQWLzUDF+DLwCTkQ3tlNyVsvZRXjFyV0LkU/aXjA==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}peerDependencies:typescript: '*'@@ -2255,8 +2435,8 @@ packages:typescript:optional: truedependencies:- '@typescript-eslint/types': 5.59.7- '@typescript-eslint/visitor-keys': 5.59.7+ '@typescript-eslint/types': 5.59.9+ '@typescript-eslint/visitor-keys': 5.59.9debug: 4.3.4globby: 11.1.0is-glob: 4.0.3@@ -2267,8 +2447,8 @@ packages:- supports-colordev: false- resolution: {integrity: sha512-yCX9WpdQKaLufz5luG4aJbOpdXf/fjwGMcLFXZVPUz3QqLirG5QcwwnIHNf8cjLjxK4qtzTO8udUtMQSAToQnQ==}+ resolution: {integrity: sha512-1PuMYsju/38I5Ggblaeb98TOoUvjhRvLpLa1DoTOFaLWqaXl/1iQ1eGurTXgBY58NUdtfTXKP5xBq7q9NDaLKg==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}peerDependencies:eslint: ^6.0.0 || ^7.0.0 || ^8.0.0@@ -2276,9 +2456,9 @@ packages:'@eslint-community/eslint-utils': 4.4.0([email protected])'@types/json-schema': 7.0.12'@types/semver': 7.5.0- '@typescript-eslint/scope-manager': 5.59.7- '@typescript-eslint/types': 5.59.7- '@typescript-eslint/typescript-estree': 5.59.7([email protected])+ '@typescript-eslint/scope-manager': 5.59.9+ '@typescript-eslint/types': 5.59.9+ '@typescript-eslint/typescript-estree': 5.59.9([email protected])eslint: 8.43.0eslint-scope: 5.1.1semver: 7.5.2@@ -2287,11 +2467,11 @@ packages:- typescriptdev: false- /@typescript-eslint/[email protected]:- resolution: {integrity: sha512-tyN+X2jvMslUszIiYbF0ZleP+RqQsFVpGrKI6e0Eet1w8WmhsAtmzaqm8oM8WJQ1ysLwhnsK/4hYHJjOgJVfQQ==}+ /@typescript-eslint/[email protected]:+ resolution: {integrity: sha512-bT7s0td97KMaLwpEBckbzj/YohnvXtqbe2XgqNvTl6RJVakY5mvENOTPvw5u66nljfZxthESpDozs86U+oLY8Q==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}dependencies:- '@typescript-eslint/types': 5.59.7+ '@typescript-eslint/types': 5.59.9eslint-visitor-keys: 3.4.1dev: false@@ -2388,7 +2568,6 @@ packages:engines: {node: '>=4'}dependencies:color-convert: 1.9.3- dev: trueresolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==}@@ -2601,7 +2780,6 @@ packages:electron-to-chromium: 1.4.433node-releases: 2.0.12update-browserslist-db: 1.0.11([email protected])- dev: trueresolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==}@@ -2705,7 +2883,6 @@ packages:ansi-styles: 3.2.1escape-string-regexp: 1.0.5supports-color: 5.5.0- dev: trueresolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==}@@ -2837,7 +3014,6 @@ packages:resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==}dependencies:color-name: 1.1.3- dev: trueresolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==}@@ -2847,7 +3023,6 @@ packages:resolution: {integrity: sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==}- dev: trueresolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==}@@ -2912,6 +3087,9 @@ packages:engines: {node: '>= 0.6'}dev: false+ resolution: {integrity: sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==}+resolution: {integrity: sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==}engines: {node: '>= 0.6'}@@ -3260,7 +3438,6 @@ packages:resolution: {integrity: sha512-MGO1k0w1RgrfdbLVwmXcDhHHuxCn2qRgR7dYsJvWFKDttvYPx6FNzCGG0c/fBBvzK2LDh3UV7Tt9awnHnvAAUQ==}- dev: trueresolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}@@ -3489,19 +3666,17 @@ packages:resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==}engines: {node: '>=6'}- dev: trueresolution: {integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==}engines: {node: '>=0.8.0'}- dev: trueresolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==}engines: {node: '>=10'}- resolution: {integrity: sha512-nlv4FYish1RYYHILbQwM5/rD37cOvEqtMfDjtQCYbXdE2O3MggqHu2q6IDeLE2Z6u8ZJyNPgWOA6OimWcxj3qw==}+ resolution: {integrity: sha512-ajuxjCkW1hvirr0EQZb3/B/bFH52Z7CT89uCtTcICFL9l30i5c8hN4p0LXvTjdOXNPV5fEDcxBgGHgXdzTj1/A==}peerDependencies:eslint: ^7.23.0 || ^8.0.0typescript: '>=3.3.1'@@ -3509,13 +3684,13 @@ packages:typescript:optional: truedependencies:- '@next/eslint-plugin-next': 13.4.6+ '@next/eslint-plugin-next': 13.4.1'@rushstack/eslint-patch': 1.3.2- '@typescript-eslint/parser': 5.59.7([email protected])([email protected])+ '@typescript-eslint/parser': 5.59.9([email protected])([email protected])eslint: 8.43.0eslint-import-resolver-node: 0.3.7- eslint-import-resolver-typescript: 3.5.5(@typescript-eslint/[email protected])([email protected])([email protected])([email protected])- eslint-plugin-import: 2.27.5(@typescript-eslint/[email protected])([email protected])([email protected])+ eslint-import-resolver-typescript: 3.5.5(@typescript-eslint/[email protected])([email protected])([email protected])([email protected])+ eslint-plugin-import: 2.27.5(@typescript-eslint/[email protected])([email protected])([email protected])eslint-plugin-jsx-a11y: 6.7.1([email protected])eslint-plugin-react: 7.32.2([email protected])eslint-plugin-react-hooks: 4.6.0([email protected])@@ -3525,8 +3700,8 @@ packages:- supports-colordev: false- resolution: {integrity: sha512-BgZuLUSeKzvlL/VUjx/Yb787VQ26RU3gGjA3iiFvdsp/2bMfVIWUVP7tjxtjS0e+HP409cPlPvNkQloz8C91ew==}+ resolution: {integrity: sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA==}hasBin: truepeerDependencies:eslint: '>=7.0.0'@@ -3553,7 +3728,7 @@ packages:- supports-colordev: false- /[email protected](@typescript-eslint/[email protected])([email protected])([email protected])([email protected]):+ /[email protected](@typescript-eslint/[email protected])([email protected])([email protected])([email protected]):resolution: {integrity: sha512-TdJqPHs2lW5J9Zpe17DZNQuDnox4xo2o+0tE7Pggain9Rbc19ik8kFtXdxZ250FVx2kF4vlt2RSf4qlUpG7bhw==}engines: {node: ^14.18.0 || >=16.0.0}peerDependencies:@@ -3563,8 +3738,8 @@ packages:debug: 4.3.4enhanced-resolve: 5.15.0eslint: 8.43.0- eslint-module-utils: 2.8.0(@typescript-eslint/[email protected])([email protected])([email protected])([email protected])- eslint-plugin-import: 2.27.5(@typescript-eslint/[email protected])([email protected])([email protected])+ eslint-module-utils: 2.8.0(@typescript-eslint/[email protected])([email protected])([email protected])([email protected])+ eslint-plugin-import: 2.27.5(@typescript-eslint/[email protected])([email protected])([email protected])get-tsconfig: 4.6.0globby: 13.1.4is-core-module: 2.12.1@@ -3577,7 +3752,7 @@ packages:- supports-colordev: false- /[email protected](@typescript-eslint/[email protected])([email protected])([email protected])([email protected]):+ /[email protected](@typescript-eslint/[email protected])([email protected])([email protected])([email protected]):resolution: {integrity: sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==}engines: {node: '>=4'}peerDependencies:@@ -3598,16 +3773,16 @@ packages:eslint-import-resolver-webpack:optional: truedependencies:- '@typescript-eslint/parser': 5.59.7([email protected])([email protected])+ '@typescript-eslint/parser': 5.59.9([email protected])([email protected])debug: 3.2.7eslint: 8.43.0eslint-import-resolver-node: 0.3.7- eslint-import-resolver-typescript: 3.5.5(@typescript-eslint/[email protected])([email protected])([email protected])([email protected])+ eslint-import-resolver-typescript: 3.5.5(@typescript-eslint/[email protected])([email protected])([email protected])([email protected])transitivePeerDependencies:- supports-colordev: falseresolution: {integrity: sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow==}engines: {node: '>=4'}peerDependencies:@@ -3617,7 +3792,7 @@ packages:'@typescript-eslint/parser':optional: truedependencies:- '@typescript-eslint/parser': 5.59.7([email protected])([email protected])+ '@typescript-eslint/parser': 5.59.9([email protected])([email protected])array-includes: 3.1.6array.prototype.flat: 1.3.1array.prototype.flatmap: 1.3.1@@ -3625,7 +3800,7 @@ packages:doctrine: 2.1.0eslint: 8.43.0eslint-import-resolver-node: 0.3.7- eslint-module-utils: 2.8.0(@typescript-eslint/[email protected])([email protected])([email protected])([email protected])+ eslint-module-utils: 2.8.0(@typescript-eslint/[email protected])([email protected])([email protected])([email protected])has: 1.0.3is-core-module: 2.12.1is-glob: 4.0.3@@ -4001,6 +4176,10 @@ packages:resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==}dev: false+ resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==}+ engines: {node: '>=6.9.0'}+resolution: {integrity: sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==}dependencies:@@ -4089,6 +4268,10 @@ packages:minimatch: 5.1.6once: 1.4.0+ resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==}+ engines: {node: '>=4'}+resolution: {integrity: sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==}engines: {node: '>=8'}@@ -4181,7 +4364,6 @@ packages:resolution: {integrity: sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==}engines: {node: '>=4'}- dev: trueresolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}@@ -4626,6 +4808,11 @@ packages:dependencies:argparse: 2.0.1+ resolution: {integrity: sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==}+ engines: {node: '>=4'}+ hasBin: true+resolution: {integrity: sha512-cVnggDrVkAAA3OvFfHpFEhOnmcsUpleEKq4d4O8sQWWSH40MBrWstKigVB1kGrgLWzuom+7rRdaCsnBD6VyObQ==}hasBin: true@@ -4648,6 +4835,11 @@ packages:minimist: 1.2.8dev: false+ resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==}+ engines: {node: '>=6'}+ hasBin: true+resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==}dependencies:@@ -4765,6 +4957,11 @@ packages:yallist: 2.1.2dev: false+ resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==}+ dependencies:+ yallist: 3.1.1+resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==}engines: {node: '>=10'}@@ -4928,7 +5125,7 @@ packages:react: ^16.8.0 || ^17.0.0 || ^18.0.0react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0dependencies:- next: 13.4.6([email protected])([email protected])react: 18.2.0react-dom: 18.2.0([email protected])dev: false@@ -4937,7 +5134,7 @@ packages:resolution: {integrity: sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==}dev: trueresolution: {integrity: sha512-sjVqjxU+U2aXZnYt4Ud6CTLNNwWjdSfMgemGpIQJcN3Z7Jni9xRWbR0ie5fQzCg87aLqQVhKA2ud2gPoqJ9lGw==}engines: {node: '>=16.8.0'}hasBin: true@@ -4962,7 +5159,7 @@ packages:postcss: 8.4.14react: 18.2.0react-dom: 18.2.0([email protected])- styled-jsx: 5.1.1([email protected])+ styled-jsx: 5.1.1(@babel/[email protected])([email protected])watchpack: 2.4.0zod: 3.21.4optionalDependencies:@@ -5028,7 +5225,6 @@ packages:resolution: {integrity: sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ==}- dev: trueresolution: {integrity: sha512-ZwLpbTgdhuZUnZzjd7nb1ZV+4DoiC6/sfiVKok72ym/4Tlf+DFdlHYmT2JPmcNNWV6Pi3SDf1kT+A4r9RTuT9g==}@@ -5354,6 +5550,62 @@ packages:resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==}engines: {node: '>= 0.8.0'}+ resolution: {integrity: sha512-009/Xqdy7UmkcTBpwlq7jsViDqXAYSOMLDrHAdTMlVZOrKfM2o9Ci7EMWTMZ7SkKBFTG04UM9F9iM2+4i6boDA==}+ engines: {node: '>=12.17.0'}+ peerDependencies:+ '@ianvs/prettier-plugin-sort-imports': '*'+ '@prettier/plugin-pug': '*'+ '@shopify/prettier-plugin-liquid': '*'+ '@shufo/prettier-plugin-blade': '*'+ '@trivago/prettier-plugin-sort-imports': '*'+ prettier: '>=2.2.0'+ prettier-plugin-astro: '*'+ prettier-plugin-css-order: '*'+ prettier-plugin-import-sort: '*'+ prettier-plugin-jsdoc: '*'+ prettier-plugin-marko: '*'+ prettier-plugin-organize-attributes: '*'+ prettier-plugin-organize-imports: '*'+ prettier-plugin-style-order: '*'+ prettier-plugin-svelte: '*'+ prettier-plugin-twig-melody: '*'+ peerDependenciesMeta:+ '@ianvs/prettier-plugin-sort-imports':+ optional: true+ '@prettier/plugin-pug':+ optional: true+ '@shopify/prettier-plugin-liquid':+ optional: true+ '@shufo/prettier-plugin-blade':+ optional: true+ '@trivago/prettier-plugin-sort-imports':+ optional: true+ prettier-plugin-astro:+ optional: true+ prettier-plugin-css-order:+ optional: true+ prettier-plugin-import-sort:+ optional: true+ prettier-plugin-jsdoc:+ optional: true+ prettier-plugin-marko:+ optional: true+ prettier-plugin-organize-attributes:+ optional: true+ prettier-plugin-organize-imports:+ optional: true+ prettier-plugin-style-order:+ optional: true+ prettier-plugin-svelte:+ optional: true+ prettier-plugin-twig-melody:+ optional: true+ dependencies:+ '@ianvs/prettier-plugin-sort-imports': 4.0.2([email protected])+ prettier: 2.8.8+ dev: true+resolution: {integrity: sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==}engines: {node: '>=10.13.0'}@@ -5714,7 +5966,6 @@ packages:resolution: {integrity: sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==}hasBin: true- dev: falseresolution: {integrity: sha512-SoftuTROv/cRjCze/scjGyiDtcUyxw1rgYQSZY7XTmtR5hX+dm76iDbTH8TkLPHCQmlbQVSSbNZCPM2hb0knnQ==}@@ -5917,7 +6168,7 @@ packages:resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}engines: {node: '>=8'}resolution: {integrity: sha512-pW7uC1l4mBZ8ugbiZrcIsiIvVx1UmTfw7UkC3Um2tmfUq9Bhk8IiyEIPl6F8agHgjzku6j0xQEZbfA5uSgSaCw==}engines: {node: '>= 12.0.0'}peerDependencies:@@ -5930,6 +6181,7 @@ packages:babel-plugin-macros:optional: truedependencies:+ '@babel/core': 7.22.5client-only: 0.0.1react: 18.2.0dev: false@@ -5959,7 +6211,6 @@ packages:engines: {node: '>=4'}dependencies:has-flag: 3.0.0- dev: trueresolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==}@@ -6107,6 +6358,10 @@ packages:os-tmpdir: 1.0.2dev: true+ resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==}+ engines: {node: '>=4'}+resolution: {integrity: sha512-Z3g735FxuZY8rodxV4gH7LxClE4H0hTIyHNIHdk+vpQxjLm0cwnKXq/OFVZ76SOQmto7txVcwSCwkU5kqp+FKg==}dev: false@@ -6391,7 +6646,6 @@ packages:browserslist: 4.21.9escalade: 3.1.1picocolors: 1.0.0- dev: trueresolution: {integrity: sha512-5YHsflzHP4t1G+8WGPlvKbJEbAJGCgw+Em+dGR1KmBUbr1J36SJBqlHLjR7oob7sco5hWHGQVcr9B2poIVDDTQ==}@@ -6579,6 +6833,9 @@ packages:resolution: {integrity: sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==}dev: false+ resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==}+resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==}diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex 3ff5faaaf..2d079a51a 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -1,3 +1,4 @@packages:- "apps/*"- "packages/*"+ - "packages/config/*"diff --git a/prettier.config.cjs b/prettier.config.cjsnew file mode 100644index 000000000..3bd8a53ed--- /dev/null+++ b/prettier.config.cjs@@ -0,0 +1,31 @@+/** @typedef {import("prettier").Config} PrettierConfig */++/** @type { PrettierConfig | SortImportsConfig } */+const config = {+ arrowParens: "always",+ printWidth: 80,+ singleQuote: false,+ semi: true,+ trailingComma: "all",+ tabWidth: 2,+ plugins: [+ "@ianvs/prettier-plugin-sort-imports",+ "prettier-plugin-tailwindcss",+ ],+ // Last version that doesn't squash type and value imports+ importOrderTypeScriptVersion: "4.4.0",+ importOrder: [+ "^(react/(.*)$)|^(react$)",+ "^(next/(.*)$)|^(next$)",+ "<THIRD_PARTY_MODULES>",+ "",+ "^@openstatus/(.*)$",+ "^openstatus/(.*)$",+ "",+ "^@/(.*)$",+ "^[./]",+ ],+ proseWrap: "always", // printWidth line breaks in md/mdx+};++module.exports = config;