fix: eslint fixes and file formatting

This commit is contained in:
sriram veeraghanta 2024-03-19 20:08:35 +05:30
parent 473dfc7a5b
commit 53ddef1cd5
954 changed files with 3921 additions and 3809 deletions

View file

@ -1,11 +1,11 @@
import { observer } from "mobx-react-lite";
import { IWorkspaceIntegration } from "@plane/types";
// hooks
import { Button } from "@plane/ui";
import { useApplication } from "hooks/store";
import useIntegrationPopup from "hooks/use-integration-popup";
import { useApplication } from "@/hooks/store";
import useIntegrationPopup from "@/hooks/use-integration-popup";
// ui
// types
import { IWorkspaceIntegration } from "@plane/types";
type Props = {
workspaceIntegration: false | IWorkspaceIntegration | undefined;

View file

@ -1,8 +1,8 @@
// components
import { Button } from "@plane/ui";
import { GithubAuth, TIntegrationSteps } from "components/integration";
// types
import { IAppIntegration, IWorkspaceIntegration } from "@plane/types";
import { Button } from "@plane/ui";
import { GithubAuth, TIntegrationSteps } from "@/components/integration";
// types
type Props = {
provider: string | undefined;

View file

@ -5,7 +5,7 @@ import { UseFormWatch } from "react-hook-form";
// ui
import { Button } from "@plane/ui";
// types
import { TFormValues, TIntegrationSteps } from "components/integration";
import { TFormValues, TIntegrationSteps } from "@/components/integration";
type Props = {
handleStepChange: (value: TIntegrationSteps) => void;

View file

@ -1,16 +1,16 @@
import { FC } from "react";
import { observer } from "mobx-react-lite";
import { Control, Controller, UseFormWatch } from "react-hook-form";
import { IWorkspaceIntegration } from "@plane/types";
// hooks
// components
import { Button, CustomSearchSelect, ToggleSwitch } from "@plane/ui";
import { SelectRepository, TFormValues, TIntegrationSteps } from "components/integration";
import { SelectRepository, TFormValues, TIntegrationSteps } from "@/components/integration";
// ui
// helpers
import { truncateText } from "helpers/string.helper";
import { useProject } from "hooks/store";
import { truncateText } from "@/helpers/string.helper";
import { useProject } from "@/hooks/store";
// types
import { IWorkspaceIntegration } from "@plane/types";
type Props = {
handleStepChange: (value: TIntegrationSteps) => void;

View file

@ -5,7 +5,7 @@ import { UseFormWatch } from "react-hook-form";
// ui
import { Button } from "@plane/ui";
// types
import { IUserDetails, SingleUserSelect, TFormValues, TIntegrationSteps } from "components/integration";
import { IUserDetails, SingleUserSelect, TFormValues, TIntegrationSteps } from "@/components/integration";
type Props = {
handleStepChange: (value: TIntegrationSteps) => void;

View file

@ -9,10 +9,10 @@ import useSWR from "swr";
// ui
import { Button, Loader } from "@plane/ui";
// types
import { IUserDetails, TFormValues, TIntegrationSteps } from "components/integration";
import { IUserDetails, TFormValues, TIntegrationSteps } from "@/components/integration";
// fetch-keys
import { GITHUB_REPOSITORY_INFO } from "constants/fetch-keys";
import { GithubIntegrationService } from "services/integrations";
import { GITHUB_REPOSITORY_INFO } from "@/constants/fetch-keys";
import { GithubIntegrationService } from "@/services/integrations";
type Props = {
selectedRepo: any;

View file

@ -11,6 +11,7 @@ import useSWR, { mutate } from "swr";
// services
// components
import { ArrowLeft, Check, List, Settings, UploadCloud } from "lucide-react";
import { IGithubRepoCollaborator, IGithubServiceImportFormData } from "@plane/types";
import { UserGroupIcon, TOAST_TYPE, setToast } from "@plane/ui";
import {
GithubImportConfigure,
@ -18,19 +19,18 @@ import {
GithubRepoDetails,
GithubImportUsers,
GithubImportConfirm,
} from "components/integration";
} from "@/components/integration";
// icons
// images
import { APP_INTEGRATIONS, IMPORTER_SERVICES_LIST, WORKSPACE_INTEGRATIONS } from "@/constants/fetch-keys";
import { IntegrationService, GithubIntegrationService } from "@/services/integrations";
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

@ -1,14 +1,14 @@
import React from "react";
import { useRouter } from "next/router";
import useSWRInfinite from "swr/infinite";
import { IWorkspaceIntegration } from "@plane/types";
// services
// ui
import { CustomSearchSelect } from "@plane/ui";
// helpers
import { truncateText } from "helpers/string.helper";
import { ProjectService } from "services/project";
import { truncateText } from "@/helpers/string.helper";
import { ProjectService } from "@/services/project";
// types
import { IWorkspaceIntegration } from "@plane/types";
type Props = {
integration: IWorkspaceIntegration;

View file

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