Add eslint-plugin-import

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-01-22 19:57:10 +04:00
parent 0e4ac296cb
commit aa5696b5d3
400 changed files with 1414 additions and 892 deletions

View File

@@ -1,10 +1,11 @@
import { type PreloadedQuery, usePreloadedQuery } from "react-relay";
import { currentTrustDocumentsQuery } from "/queries/TrustGraph";
import type { TrustGraphCurrentDocumentsQuery } from "/queries/__generated__/TrustGraphCurrentDocumentsQuery.graphql.ts";
import { groupBy, objectEntries } from "@probo/helpers";
import { documentTypeLabel } from "/helpers/documents";
import { useTranslate } from "@probo/i18n";
import { Fragment } from "react";
import { currentTrustDocumentsQuery } from "/queries/TrustGraph";
import type { TrustGraphCurrentDocumentsQuery } from "/queries/__generated__/TrustGraphCurrentDocumentsQuery.graphql.ts";
import { documentTypeLabel } from "/helpers/documents";
import { DocumentRow } from "/components/DocumentRow";
import { TrustCenterFileRow } from "/components/TrustCenterFileRow";
import { Rows } from "/components/Rows.tsx";

View File

@@ -1,9 +1,5 @@
import { useFragment } from "react-relay";
import { graphql } from "relay-runtime";
import type {
OverviewPageFragment$data,
OverviewPageFragment$key,
} from "./__generated__/OverviewPageFragment.graphql";
import { Link, useOutletContext } from "react-router";
import {
groupBy,
@@ -13,9 +9,10 @@ import {
} from "@probo/helpers";
import { useTranslate } from "@probo/i18n";
import { Card, IconChevronRight } from "@probo/ui";
import { Fragment } from "react";
import { AuditRow } from "/components/AuditRow";
import { documentTypeLabel } from "/helpers/documents";
import { Fragment } from "react";
import { DocumentRow } from "/components/DocumentRow";
import { TrustCenterFileRow } from "/components/TrustCenterFileRow";
import { VendorRow } from "/components/VendorRow";
@@ -23,6 +20,11 @@ import { RowHeader } from "/components/RowHeader.tsx";
import { Rows } from "/components/Rows.tsx";
import type { TrustGraphCurrentQuery$data } from "/queries/__generated__/TrustGraphCurrentQuery.graphql";
import type {
OverviewPageFragment$data,
OverviewPageFragment$key,
} from "./__generated__/OverviewPageFragment.graphql";
const overviewFragment = graphql`
fragment OverviewPageFragment on TrustCenter {
references(first: 14) {

View File

@@ -1,7 +1,8 @@
import { type PreloadedQuery, usePreloadedQuery } from "react-relay";
import { currentTrustVendorsQuery } from "/queries/TrustGraph";
import { sprintf } from "@probo/helpers";
import { useTranslate } from "@probo/i18n";
import { currentTrustVendorsQuery } from "/queries/TrustGraph";
import type { TrustGraphCurrentVendorsQuery } from "/queries/__generated__/TrustGraphCurrentVendorsQuery.graphql";
import { VendorRow } from "/components/VendorRow";
import { Rows } from "/components/Rows.tsx";

View File

@@ -1,18 +1,20 @@
import { usePageTitle } from "@probo/hooks";
import { useTranslate } from "@probo/i18n";
import { Button, Field, useToast } from "@probo/ui";
import { useFormWithSchema } from "/hooks/useFormWithSchema";
import z from "zod";
import { z } from "zod";
import { graphql } from "relay-runtime";
import {
useMutation,
usePreloadedQuery,
type PreloadedQuery,
} from "react-relay";
import { AuthLayout } from "./AuthLayout";
import type { ConnectPageMutation } from "./__generated__/ConnectPageMutation.graphql";
import { useEffect, useRef, useState } from "react";
import { useFormWithSchema } from "/hooks/useFormWithSchema";
import type { ConnectPageMutation } from "./__generated__/ConnectPageMutation.graphql";
import type { ConnectPageQuery } from "./__generated__/ConnectPageQuery.graphql";
import { AuthLayout } from "./AuthLayout";
export const connectPageQuery = graphql`
query ConnectPageQuery {

View File

@@ -1,7 +1,9 @@
import { useQueryLoader } from "react-relay";
import { ConnectPage, connectPageQuery } from "./ConnectPage";
import { Suspense, useEffect } from "react";
import { RelayProvider } from "/providers/RelayProviders";
import { ConnectPage, connectPageQuery } from "./ConnectPage";
import type { ConnectPageQuery } from "./__generated__/ConnectPageQuery.graphql";
function ConnectPageLoader() {

View File

@@ -2,14 +2,16 @@ import { usePageTitle } from "@probo/hooks";
import { useTranslate } from "@probo/i18n";
import { Button, Field, useToast } from "@probo/ui";
import { useSearchParams } from "react-router";
import { useFormWithSchema } from "/hooks/useFormWithSchema";
import z from "zod";
import { z } from "zod";
import { useEffect, useRef } from "react";
import { graphql } from "relay-runtime";
import { useMutation } from "react-relay";
import { formatError } from "@probo/helpers";
import type { VerifyMagicLinkPageMutation } from "./__generated__/VerifyMagicLinkPageMutation.graphql";
import { useFormWithSchema } from "/hooks/useFormWithSchema";
import { getPathPrefix } from "/utils/pathPrefix";
import type { VerifyMagicLinkPageMutation } from "./__generated__/VerifyMagicLinkPageMutation.graphql";
import { AuthLayout } from "./AuthLayout";
const verifyMagicLinkMutation = graphql`