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

@@ -9,6 +9,7 @@ import {
} from "react-hook-form";
import { useLazyLoadQuery, graphql } from "react-relay";
import { getAuditStateVariant, getAuditStateLabel } from "@probo/helpers";
import type { AuditSelectFieldQuery } from "/__generated__/core/AuditSelectFieldQuery.graphql";
const auditsQuery = graphql`

View File

@@ -1,7 +1,6 @@
import type { ComponentProps } from "react";
import { Field } from "@probo/ui";
import { Field, Select } from "@probo/ui";
import { Controller, type FieldPath, type FieldValues } from "react-hook-form";
import { Select } from "@probo/ui";
type Props<
T extends typeof Field | typeof Select,

View File

@@ -3,7 +3,7 @@ import { useEffect, useState } from "react";
import { Badge, Input, IconCrossLargeX } from "@probo/ui";
import { type Control, Controller, type FieldPath, type FieldValues } from "react-hook-form";
import { getCountryName, getCountryOptions, countries, type CountryCode } from "@probo/helpers";
import clsx from "clsx";
import { clsx } from "clsx";
type Props<T extends FieldValues = FieldValues> = {
control: Control<T>;

View File

@@ -1,8 +1,7 @@
import { Button, IconPlusLarge, IconTrashCan, Input, Label } from "@probo/ui";
import { useTranslate } from "@probo/i18n";
import { useFieldArray } from "react-hook-form";
import type { ArrayPath, Control, FieldValue, FieldValues, Path } from "react-hook-form";
import type { UseFormRegister } from "react-hook-form";
import type { ArrayPath, Control, FieldValue, FieldValues, Path, UseFormRegister } from "react-hook-form";
type Props<TFieldValues extends FieldValues = FieldValues> = {
control: Control<TFieldValues>;

View File

@@ -2,6 +2,7 @@ import { Field, Combobox, ComboboxItem } from "@probo/ui";
import { Suspense, useMemo, useState, type ComponentProps } from "react";
import { useTranslate } from "@probo/i18n";
import { type Control, Controller, type FieldPath, type FieldValues } from "react-hook-form";
import { usePaginatedMeasures } from "/hooks/graph/usePaginatedMeasures";
type Props<

View File

@@ -1,9 +1,9 @@
import { Avatar, Field, Option, Select, Badge, Button, IconCrossLargeX } from "@probo/ui";
import { Suspense, useState, type ComponentProps } from "react";
import { useTranslate } from "@probo/i18n";
import { type Control, Controller, type FieldValues } from "react-hook-form";
import { type Control, Controller, type FieldValues, Path } from "react-hook-form";
import { usePeople } from "/hooks/graph/PeopleGraph.ts";
import type { Path } from "react-hook-form";
type Person = {
id: string;

View File

@@ -2,6 +2,7 @@ import { Avatar, Field, Option, Select } from "@probo/ui";
import { Suspense, type ComponentProps } from "react";
import { useTranslate } from "@probo/i18n";
import { type Control, Controller, type FieldPath, type FieldValues } from "react-hook-form";
import { usePeople } from "/hooks/graph/PeopleGraph.ts";
type Props<

View File

@@ -1,5 +1,6 @@
import { useTranslate } from "@probo/i18n";
import { Option } from "@probo/ui";
import type {
ProcessingActivitySpecialOrCriminalDatum,
ProcessingActivityLawfulBasis,

View File

@@ -1,10 +1,10 @@
import { Avatar, Field, Option, Select, Badge, Button, IconCrossLargeX } from "@probo/ui";
import { Suspense, useState, type ComponentProps } from "react";
import { useTranslate } from "@probo/i18n";
import { type Control, Controller, type FieldValues } from "react-hook-form";
import { useVendors } from "/hooks/graph/VendorGraph.ts";
import { type Control, Controller, type FieldValues, Path } from "react-hook-form";
import { faviconUrl } from "@probo/helpers";
import type { Path } from "react-hook-form";
import { useVendors } from "/hooks/graph/VendorGraph.ts";
type Vendor = {
id: string;