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

@ -2,7 +2,7 @@ import { observer } from "mobx-react-lite";
import Link from "next/link";
import { useRouter } from "next/router";
// helpers
import { truncateText } from "helpers/string.helper";
import { truncateText } from "@/helpers/string.helper";
type Props = { view: { key: string; label: string } };

View file

@ -2,18 +2,18 @@ import React, { useState } from "react";
import { observer } from "mobx-react-lite";
import { useRouter } from "next/router";
// ui
import { AlertTriangle } from "lucide-react";
import { Dialog, Transition } from "@headlessui/react";
// icons
import { AlertTriangle } from "lucide-react";
import { IWorkspaceView } from "@plane/types";
// ui
import { Button, TOAST_TYPE, setToast } from "@plane/ui";
// constants
import { GLOBAL_VIEW_DELETED } from "constants/event-tracker";
import { GLOBAL_VIEW_DELETED } from "@/constants/event-tracker";
// store hooks
import { useGlobalView, useEventTracker } from "hooks/store";
import { useGlobalView, useEventTracker } from "@/hooks/store";
// ui
// types
import { IWorkspaceView } from "@plane/types";
type Props = {
data: IWorkspaceView;

View file

@ -1,16 +1,16 @@
import { useEffect } from "react";
import { observer } from "mobx-react-lite";
import { Controller, useForm } from "react-hook-form";
import { IIssueFilterOptions, IWorkspaceView } from "@plane/types";
// ui
import { Button, Input, TextArea } from "@plane/ui";
// components
import { AppliedFiltersList, FilterSelection, FiltersDropdown } from "components/issues";
import { AppliedFiltersList, FilterSelection, FiltersDropdown } from "@/components/issues";
// constants
import { ISSUE_DISPLAY_FILTERS_BY_LAYOUT } from "constants/issue";
import { ISSUE_DISPLAY_FILTERS_BY_LAYOUT } from "@/constants/issue";
// hooks
import { useLabel, useMember } from "hooks/store";
import { useLabel, useMember } from "@/hooks/store";
// types
import { IIssueFilterOptions, IWorkspaceView } from "@plane/types";
type Props = {
handleFormSubmit: (values: Partial<IWorkspaceView>) => Promise<void>;

View file

@ -5,12 +5,12 @@ import { useRouter } from "next/router";
// icons
import { Plus } from "lucide-react";
// components
import { CreateUpdateWorkspaceViewModal } from "components/workspace";
import { CreateUpdateWorkspaceViewModal } from "@/components/workspace";
// constants
import { GLOBAL_VIEW_OPENED } from "constants/event-tracker";
import { DEFAULT_GLOBAL_VIEWS_LIST, EUserWorkspaceRoles } from "constants/workspace";
import { GLOBAL_VIEW_OPENED } from "@/constants/event-tracker";
import { DEFAULT_GLOBAL_VIEWS_LIST, EUserWorkspaceRoles } from "@/constants/workspace";
// store hooks
import { useEventTracker, useGlobalView, useUser } from "hooks/store";
import { useEventTracker, useGlobalView, useUser } from "@/hooks/store";
const ViewTab = observer((props: { viewId: string }) => {
const { viewId } = props;

View file

@ -2,16 +2,16 @@ import React from "react";
import { observer } from "mobx-react-lite";
import { useRouter } from "next/router";
import { Dialog, Transition } from "@headlessui/react";
import { IWorkspaceView } from "@plane/types";
// ui
import { TOAST_TYPE, setToast } from "@plane/ui";
// components
import { WorkspaceViewForm } from "components/workspace";
import { WorkspaceViewForm } from "@/components/workspace";
// constants
import { GLOBAL_VIEW_CREATED, GLOBAL_VIEW_UPDATED } from "constants/event-tracker";
import { GLOBAL_VIEW_CREATED, GLOBAL_VIEW_UPDATED } from "@/constants/event-tracker";
// store hooks
import { useEventTracker, useGlobalView } from "hooks/store";
import { useEventTracker, useGlobalView } from "@/hooks/store";
// types
import { IWorkspaceView } from "@plane/types";
type Props = {
data?: IWorkspaceView;

View file

@ -7,12 +7,12 @@ import { Pencil, Trash2 } from "lucide-react";
// ui
import { CustomMenu } from "@plane/ui";
// components
import { CreateUpdateWorkspaceViewModal, DeleteGlobalViewModal } from "components/workspace";
import { CreateUpdateWorkspaceViewModal, DeleteGlobalViewModal } from "@/components/workspace";
// helpers
import { calculateTotalFilters } from "helpers/filter.helper";
import { truncateText } from "helpers/string.helper";
import { calculateTotalFilters } from "@/helpers/filter.helper";
import { truncateText } from "@/helpers/string.helper";
// store hooks
import { useEventTracker, useGlobalView } from "hooks/store";
import { useEventTracker, useGlobalView } from "@/hooks/store";
type Props = { viewId: string };

View file

@ -2,10 +2,10 @@ import { observer } from "mobx-react-lite";
import { useRouter } from "next/router";
import useSWR from "swr";
// components
import { ViewListLoader } from "components/ui";
import { GlobalViewListItem } from "components/workspace";
import { ViewListLoader } from "@/components/ui";
import { GlobalViewListItem } from "@/components/workspace";
// store hooks
import { useGlobalView } from "hooks/store";
import { useGlobalView } from "@/hooks/store";
type Props = {
searchQuery: string;