fix: eslint issues and reconfiguring (#3891)

* fix: eslint fixes

---------

Co-authored-by: gurusainath <gurusainath007@gmail.com>
This commit is contained in:
sriram veeraghanta 2024-03-06 18:39:14 +05:30 committed by GitHub
parent 921b9078f1
commit 3d09a69d58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
790 changed files with 4155 additions and 4051 deletions

View file

@ -1,9 +1,9 @@
import { observer } from "mobx-react-lite";
// hooks
import { Button } from "@plane/ui";
import { useApplication } from "hooks/store";
import useIntegrationPopup from "hooks/use-integration-popup";
// ui
import { Button } from "@plane/ui";
// types
import { IWorkspaceIntegration } from "@plane/types";

View file

@ -2,13 +2,13 @@ import { FC } from "react";
import { observer } from "mobx-react-lite";
import { Control, Controller, UseFormWatch } from "react-hook-form";
// hooks
import { useProject } from "hooks/store";
// components
import { Button, CustomSearchSelect, ToggleSwitch } from "@plane/ui";
import { SelectRepository, TFormValues, TIntegrationSteps } from "components/integration";
// ui
import { Button, CustomSearchSelect, ToggleSwitch } from "@plane/ui";
// helpers
import { truncateText } from "helpers/string.helper";
import { useProject } from "hooks/store";
// types
import { IWorkspaceIntegration } from "@plane/types";

View file

@ -2,18 +2,17 @@ import { FC, useEffect } from "react";
import { useRouter } from "next/router";
import useSWR from "swr";
// react-hook-form
import { UseFormSetValue } from "react-hook-form";
import useSWR from "swr";
// services
import { GithubIntegrationService } from "services/integrations";
// ui
import { Button, Loader } from "@plane/ui";
// types
import { IUserDetails, TFormValues, TIntegrationSteps } from "components/integration";
// fetch-keys
import { GITHUB_REPOSITORY_INFO } from "constants/fetch-keys";
import { GithubIntegrationService } from "services/integrations";
type Props = {
selectedRepo: any;

View file

@ -1,16 +1,17 @@
import React, { useState } from "react";
import Link from "next/link";
import Image from "next/image";
import Link from "next/link";
import { useRouter } from "next/router";
import { useForm } from "react-hook-form";
import useSWR, { mutate } from "swr";
// react-hook-form
import { useForm } from "react-hook-form";
// services
import { IntegrationService, GithubIntegrationService } from "services/integrations";
// components
import { ArrowLeft, Check, List, Settings, UploadCloud } from "lucide-react";
import { UserGroupIcon, TOAST_TYPE, setToast } from "@plane/ui";
import {
GithubImportConfigure,
GithubImportData,
@ -19,14 +20,16 @@ import {
GithubImportConfirm,
} from "components/integration";
// icons
import { UserGroupIcon, TOAST_TYPE, setToast } from "@plane/ui";
import { ArrowLeft, Check, List, Settings, UploadCloud } from "lucide-react";
// images
import GithubLogo from "public/services/github.png";
import { IntegrationService, GithubIntegrationService } from "services/integrations";
// hooks
// components
// icons
// images
// types
import { IGithubRepoCollaborator, IGithubServiceImportFormData } from "@plane/types";
// fetch-keys
import { APP_INTEGRATIONS, IMPORTER_SERVICES_LIST, WORKSPACE_INTEGRATIONS } from "constants/fetch-keys";
export type TIntegrationSteps = "import-configure" | "import-data" | "repo-details" | "import-users" | "import-confirm";
export interface IIntegrationData {

View file

@ -2,11 +2,11 @@ import React from "react";
import { useRouter } from "next/router";
import useSWRInfinite from "swr/infinite";
// services
import { ProjectService } from "services/project";
// ui
import { CustomSearchSelect } from "@plane/ui";
// helpers
import { truncateText } from "helpers/string.helper";
import { ProjectService } from "services/project";
// types
import { IWorkspaceIntegration } from "@plane/types";

View file

@ -1,14 +1,14 @@
import { useRouter } from "next/router";
import useSWR from "swr";
// services
import { Avatar, CustomSelect, CustomSearchSelect, Input } from "@plane/ui";
import { WORKSPACE_MEMBERS } from "constants/fetch-keys";
import { WorkspaceService } from "services/workspace.service";
// ui
import { Avatar, CustomSelect, CustomSearchSelect, Input } from "@plane/ui";
// types
import { IGithubRepoCollaborator } from "@plane/types";
import { IUserDetails } from "./root";
// fetch-keys
import { WORKSPACE_MEMBERS } from "constants/fetch-keys";
type Props = {
collaborator: IGithubRepoCollaborator;