Add import order sorting rules

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-01-22 20:38:37 +04:00
parent 56d17c4f3f
commit c168be6de0
352 changed files with 2119 additions and 2111 deletions

View File

@@ -1,15 +1,15 @@
import { type PreloadedQuery, usePreloadedQuery } from "react-relay";
import { groupBy, objectEntries } from "@probo/helpers";
import { useTranslate } from "@probo/i18n";
import { Fragment } from "react";
import { type PreloadedQuery, usePreloadedQuery } from "react-relay";
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";
import { RowHeader } from "/components/RowHeader.tsx";
import { Rows } from "/components/Rows.tsx";
import { TrustCenterFileRow } from "/components/TrustCenterFileRow";
import { documentTypeLabel } from "/helpers/documents";
import type { TrustGraphCurrentDocumentsQuery } from "/queries/__generated__/TrustGraphCurrentDocumentsQuery.graphql.ts";
import { currentTrustDocumentsQuery } from "/queries/TrustGraph";
type Props = {
queryRef: PreloadedQuery<TrustGraphCurrentDocumentsQuery>;

View File

@@ -1,23 +1,23 @@
import { useFragment } from "react-relay";
import { graphql } from "relay-runtime";
import { Link, useOutletContext } from "react-router";
import {
getTrustCenterUrl,
groupBy,
objectEntries,
sprintf,
getTrustCenterUrl,
} from "@probo/helpers";
import { useTranslate } from "@probo/i18n";
import { Card, IconChevronRight } from "@probo/ui";
import { Fragment } from "react";
import { useFragment } from "react-relay";
import { Link, useOutletContext } from "react-router";
import { graphql } from "relay-runtime";
import { AuditRow } from "/components/AuditRow";
import { documentTypeLabel } from "/helpers/documents";
import { DocumentRow } from "/components/DocumentRow";
import { TrustCenterFileRow } from "/components/TrustCenterFileRow";
import { VendorRow } from "/components/VendorRow";
import { RowHeader } from "/components/RowHeader.tsx";
import { Rows } from "/components/Rows.tsx";
import { TrustCenterFileRow } from "/components/TrustCenterFileRow";
import { VendorRow } from "/components/VendorRow";
import { documentTypeLabel } from "/helpers/documents";
import type { TrustGraphCurrentQuery$data } from "/queries/__generated__/TrustGraphCurrentQuery.graphql";
import type {

View File

@@ -1,11 +1,11 @@
import { type PreloadedQuery, usePreloadedQuery } from "react-relay";
import { sprintf } from "@probo/helpers";
import { useTranslate } from "@probo/i18n";
import { type PreloadedQuery, usePreloadedQuery } from "react-relay";
import { currentTrustVendorsQuery } from "/queries/TrustGraph";
import type { TrustGraphCurrentVendorsQuery } from "/queries/__generated__/TrustGraphCurrentVendorsQuery.graphql";
import { VendorRow } from "/components/VendorRow";
import { Rows } from "/components/Rows.tsx";
import { VendorRow } from "/components/VendorRow";
import type { TrustGraphCurrentVendorsQuery } from "/queries/__generated__/TrustGraphCurrentVendorsQuery.graphql";
import { currentTrustVendorsQuery } from "/queries/TrustGraph";
type Props = {
queryRef: PreloadedQuery<TrustGraphCurrentVendorsQuery>;

View File

@@ -1,14 +1,14 @@
import { usePageTitle } from "@probo/hooks";
import { useTranslate } from "@probo/i18n";
import { Button, Field, useToast } from "@probo/ui";
import { z } from "zod";
import { graphql } from "relay-runtime";
import { useEffect, useRef, useState } from "react";
import {
type PreloadedQuery,
useMutation,
usePreloadedQuery,
type PreloadedQuery,
} from "react-relay";
import { useEffect, useRef, useState } from "react";
import { graphql } from "relay-runtime";
import { z } from "zod";
import { useFormWithSchema } from "/hooks/useFormWithSchema";

View File

@@ -1,10 +1,10 @@
import { useQueryLoader } from "react-relay";
import { Suspense, useEffect } from "react";
import { useQueryLoader } from "react-relay";
import { RelayProvider } from "/providers/RelayProviders";
import { ConnectPage, connectPageQuery } from "./ConnectPage";
import type { ConnectPageQuery } from "./__generated__/ConnectPageQuery.graphql";
import { ConnectPage, connectPageQuery } from "./ConnectPage";
function ConnectPageLoader() {
const [queryRef, loadQuery]

View File

@@ -1,12 +1,12 @@
import { formatError } from "@probo/helpers";
import { usePageTitle } from "@probo/hooks";
import { useTranslate } from "@probo/i18n";
import { Button, Field, useToast } from "@probo/ui";
import { useSearchParams } from "react-router";
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 { useSearchParams } from "react-router";
import { graphql } from "relay-runtime";
import { z } from "zod";
import { useFormWithSchema } from "/hooks/useFormWithSchema";
import { getPathPrefix } from "/utils/pathPrefix";