Lint fixes (#1826)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
pull/1817/head^2
Omar López 2022-02-11 15:20:10 -07:00 committed by GitHub
parent b8e9275ceb
commit bcf40bbf26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 23 additions and 16 deletions

View File

@ -8,10 +8,10 @@ import { HttpError } from "@lib/core/http/error";
import { useLocale } from "@lib/hooks/useLocale";
import { inferQueryOutput, trpc } from "@lib/trpc";
import { TextArea } from "@components/form/fields";
import TableActions, { ActionType } from "@components/ui/TableActions";
import { Dialog, DialogClose, DialogContent, DialogFooter, DialogHeader } from "@components/Dialog";
import { TextArea } from "@components/form/fields";
import Button from "@components/ui/Button";
import TableActions, { ActionType } from "@components/ui/TableActions";
type BookingItem = inferQueryOutput<"viewer.bookings">["bookings"][number];

View File

@ -1,10 +1,12 @@
import Avatar from "@components/ui/Avatar";
import Select from "@components/ui/form/Select";
import { CheckIcon, XIcon } from "@heroicons/react/outline";
import { useLocale } from "@lib/hooks/useLocale";
import React, { useEffect, useState } from "react";
import { MultiValue } from "react-select";
import { useLocale } from "@lib/hooks/useLocale";
import Avatar from "@components/ui/Avatar";
import Select from "@components/ui/form/Select";
type CheckedSelectValue = {
avatar: string;
label: string;

View File

@ -3,6 +3,7 @@ import { useRef } from "react";
import { useLocale } from "@lib/hooks/useLocale";
import showToast from "@lib/notification";
import Button from "@components/ui/Button";
interface SetTimesModalProps {

View File

@ -3,12 +3,12 @@ import { TFunction } from "next-i18next";
import { PaymentInfo } from "@ee/lib/stripe/server";
import type { Event } from "@lib/events/EventManager";
import { Ensure } from "@lib/types/utils";
import { VideoCallData } from "@lib/videoClient";
import { NewCalendarEventType } from "../constants/types";
import { ConferenceData } from "./GoogleCalendar";
import type { Event } from "@lib/events/EventManager";
export type Person = {
name: string;

View File

@ -18,6 +18,7 @@ import { v4 as uuidv4 } from "uuid";
import { getLocation, getRichDescription } from "@lib/CalEventParser";
import { symmetricDecrypt } from "@lib/crypto";
import type { Event } from "@lib/events/EventManager";
import logger from "@lib/logger";
import { TIMEZONE_FORMAT } from "../constants/formats";
@ -25,7 +26,6 @@ import { CALDAV_CALENDAR_TYPE } from "../constants/generals";
import { CalendarEventType, EventBusyDate, NewCalendarEventType } from "../constants/types";
import { Calendar, CalendarEvent, IntegrationCalendar } from "../interfaces/Calendar";
import { convertDate, getAttendees, getDuration } from "../utils/CalendarUtils";
import type { Event } from "@lib/events/EventManager";
dayjs.extend(utc);
dayjs.extend(timezone);

View File

@ -1,15 +1,18 @@
import BookingPage from "@components/booking/pages/BookingPage";
import { asStringOrThrow } from "@lib/asStringOrNull";
import prisma from "@lib/prisma";
import { inferSSRProps } from "@lib/types/inferSSRProps";
import { Prisma } from "@prisma/client";
import { ssrInit } from "@server/lib/ssr";
import dayjs from "dayjs";
import timezone from "dayjs/plugin/timezone";
import utc from "dayjs/plugin/utc";
import { GetServerSidePropsContext } from "next";
import { JSONObject } from "superjson/dist/types";
import { asStringOrThrow } from "@lib/asStringOrNull";
import prisma from "@lib/prisma";
import { inferSSRProps } from "@lib/types/inferSSRProps";
import BookingPage from "@components/booking/pages/BookingPage";
import { ssrInit } from "@server/lib/ssr";
dayjs.extend(utc);
dayjs.extend(timezone);

View File

@ -1,3 +1,4 @@
import { PrismaClientKnownRequestError } from "@prisma/client/runtime";
import { pick } from "lodash";
import type { NextApiRequest, NextApiResponse } from "next";
@ -5,7 +6,6 @@ import { getSession } from "@lib/auth";
import prisma from "@lib/prisma";
import { resizeBase64Image } from "@server/lib/resizeBase64Image";
import { PrismaClientKnownRequestError } from "@prisma/client/runtime";
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
const session = await getSession({ req: req });

View File

@ -1,6 +1,7 @@
import { getSession } from "@lib/auth";
import { NextPageContext } from "next";
import { getSession } from "@lib/auth";
function RedirectPage() {
return;
}

View File

@ -1,3 +1,4 @@
import { Prisma } from "@prisma/client";
import { GetServerSidePropsContext } from "next";
import { JSONObject } from "superjson/dist/types";
@ -6,7 +7,6 @@ import prisma from "@lib/prisma";
import { inferSSRProps } from "@lib/types/inferSSRProps";
import BookingPage from "@components/booking/pages/BookingPage";
import { Prisma } from "@prisma/client";
export type TeamBookingPageProps = inferSSRProps<typeof getServerSideProps>;