🎨 Remove unused imports (#1709)

This commit is contained in:
Luke Vella 2025-05-06 17:35:11 +01:00 committed by GitHub
parent a625f3e132
commit 023cdd97e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 3 additions and 9 deletions

View file

@ -1,6 +1,5 @@
import { ImageResponse } from "next/og"; import { ImageResponse } from "next/og";
import type { NextRequest } from "next/server"; import type { NextRequest } from "next/server";
import * as React from "react";
export const runtime = "edge"; export const runtime = "edge";

View file

@ -1,8 +1,6 @@
import type { TimeFormat } from "@rallly/database"; import type { TimeFormat } from "@rallly/database";
import type { DefaultSession, DefaultUser } from "next-auth"; import type { DefaultSession, DefaultUser } from "next-auth";
import NextAuth from "next-auth";
import type { DefaultJWT } from "next-auth/jwt"; import type { DefaultJWT } from "next-auth/jwt";
import { JWT } from "next-auth/jwt";
import type { NextRequest } from "next/server"; import type { NextRequest } from "next/server";
declare module "next-auth" { declare module "next-auth" {

View file

@ -1,6 +1,5 @@
import { ImageResponse } from "next/og"; import { ImageResponse } from "next/og";
import type { NextRequest } from "next/server"; import type { NextRequest } from "next/server";
import * as React from "react";
import { z } from "zod"; import { z } from "zod";
import Logo from "./logo-color.svg"; import Logo from "./logo-color.svg";

View file

@ -5,7 +5,6 @@ import { Button } from "@rallly/ui/button";
import { Icon } from "@rallly/ui/icon"; import { Icon } from "@rallly/ui/icon";
import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react"; import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
import { usePathname, useRouter, useSearchParams } from "next/navigation"; import { usePathname, useRouter, useSearchParams } from "next/navigation";
import React from "react";
import { Trans } from "@/components/trans"; import { Trans } from "@/components/trans";

View file

@ -1,5 +1,4 @@
import type { VoteType } from "@rallly/database"; import type { VoteType } from "@rallly/database";
import React from "react";
import { IfNeedBeIcon } from "@/components/vote-icon/if-need-be-icon"; import { IfNeedBeIcon } from "@/components/vote-icon/if-need-be-icon";
import { NoIcon } from "@/components/vote-icon/no-icon"; import { NoIcon } from "@/components/vote-icon/no-icon";

View file

@ -1,7 +1,6 @@
"use client"; "use client";
import { usePostHog } from "@rallly/posthog/client"; import { usePostHog } from "@rallly/posthog/client";
import { Button } from "@rallly/ui/button"; import { Button } from "@rallly/ui/button";
import Link from "next/link";
import React from "react"; import React from "react";
import { Trans } from "@/components/trans"; import { Trans } from "@/components/trans";

View file

@ -9,6 +9,9 @@
"recommended": true, "recommended": true,
"style": { "style": {
"noUselessElse": "off" "noUselessElse": "off"
},
"correctness": {
"noUnusedImports": "error"
} }
} }
}, },

View file

@ -1,5 +1,4 @@
import { faker } from "@faker-js/faker"; import { faker } from "@faker-js/faker";
import type { User } from "@prisma/client";
import type { VoteType } from "@prisma/client"; import type { VoteType } from "@prisma/client";
import { prisma } from "@rallly/database"; import { prisma } from "@rallly/database";
import dayjs from "dayjs"; import dayjs from "dayjs";

View file

@ -1,4 +1,3 @@
import path from "node:path";
import { defineConfig } from "vitest/config"; import { defineConfig } from "vitest/config";
export default defineConfig({ export default defineConfig({