mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-14 23:17:27 +02:00
🎨 Remove unused imports (#1709)
This commit is contained in:
parent
a625f3e132
commit
023cdd97e2
9 changed files with 3 additions and 9 deletions
|
@ -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";
|
||||||
|
|
||||||
|
|
2
apps/web/declarations/next-auth.d.ts
vendored
2
apps/web/declarations/next-auth.d.ts
vendored
|
@ -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" {
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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";
|
||||||
|
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -9,6 +9,9 @@
|
||||||
"recommended": true,
|
"recommended": true,
|
||||||
"style": {
|
"style": {
|
||||||
"noUselessElse": "off"
|
"noUselessElse": "off"
|
||||||
|
},
|
||||||
|
"correctness": {
|
||||||
|
"noUnusedImports": "error"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue