Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

chore: run biome lint

Sidwebworks54614770ad36
diff --git a/apps/academy/app/routes/lesson+/$id.tsx b/apps/academy/app/routes/lesson+/$id.tsx
index b0e7227676..78185ce0df 100644
--- a/apps/academy/app/routes/lesson+/$id.tsx
+++ b/apps/academy/app/routes/lesson+/$id.tsx
@@ -129,6 +129,7 @@ export default function LessonRoute() {
});
};
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
const handleMessage = (event: MessageEvent) => {
try {
diff --git a/apps/erp/app/components/Chat/ChatInterface.tsx b/apps/erp/app/components/Chat/ChatInterface.tsx
index d0fca953e0..3908c00f22 100644
--- a/apps/erp/app/components/Chat/ChatInterface.tsx
+++ b/apps/erp/app/components/Chat/ChatInterface.tsx
@@ -72,6 +72,7 @@ export function ChatInterface({ geo }: Props) {
}
} = useUser();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const authenticatedFetch = useMemo(
() =>
Object.assign(
diff --git a/apps/erp/app/components/Chat/Markdown/Markdown.tsx b/apps/erp/app/components/Chat/Markdown/Markdown.tsx
index 57332b98f7..0fbe9d9f32 100644
--- a/apps/erp/app/components/Chat/Markdown/Markdown.tsx
+++ b/apps/erp/app/components/Chat/Markdown/Markdown.tsx
@@ -17,6 +17,7 @@ export const Markdown = memo(
const components = useMemo(() => {
return {
a: (props) => {
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { children, node, href, ...rest } = props;
if (href?.startsWith("/")) {
return (
diff --git a/apps/erp/app/components/Chat/hooks/useAudioRecording.tsx b/apps/erp/app/components/Chat/hooks/useAudioRecording.tsx
index ad4409a9f4..1408a2589e 100644
--- a/apps/erp/app/components/Chat/hooks/useAudioRecording.tsx
+++ b/apps/erp/app/components/Chat/hooks/useAudioRecording.tsx
@@ -61,6 +61,7 @@ export function useAudioRecording(): UseAudioRecordingReturn {
});
}, [isRecording]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const startRecording = useCallback(async () => {
try {
const stream = await navigator.mediaDevices.getUserMedia({
diff --git a/apps/erp/app/components/Chat/lib/store.ts b/apps/erp/app/components/Chat/lib/store.ts
index 02a41ffeb6..09e44395d4 100644
--- a/apps/erp/app/components/Chat/lib/store.ts
+++ b/apps/erp/app/components/Chat/lib/store.ts
@@ -309,6 +309,7 @@ export const useChatStore = create<ChatState>()((set, get) => ({
},
navigateCommandUp: () => {
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { selectedCommandIndex, filteredCommands } = get();
set({
selectedCommandIndex: Math.max(selectedCommandIndex - 1, 0)
diff --git a/apps/erp/app/components/Configurator/ConfigurationEditor/ConfigurationEditor.ee.tsx b/apps/erp/app/components/Configurator/ConfigurationEditor/ConfigurationEditor.ee.tsx
index 783fd1524b..bb6885d47a 100644
--- a/apps/erp/app/components/Configurator/ConfigurationEditor/ConfigurationEditor.ee.tsx
+++ b/apps/erp/app/components/Configurator/ConfigurationEditor/ConfigurationEditor.ee.tsx
@@ -216,6 +216,7 @@ export default function Configurator({
};
}, []);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (fetcher.data?.success === false) {
toast.error("Failed to save configuration rule");
diff --git a/apps/erp/app/components/Form/AccountSubcategory.tsx b/apps/erp/app/components/Form/AccountSubcategory.tsx
index 4cd204f440..c62d781501 100644
--- a/apps/erp/app/components/Form/AccountSubcategory.tsx
+++ b/apps/erp/app/components/Form/AccountSubcategory.tsx
@@ -20,6 +20,7 @@ const AccountSubcategory = (props: AccountSubcategorySelectProps) => {
const accountSubcategoriesFetcher =
useFetcher<Awaited<ReturnType<typeof getAccountSubcategoriesByCategory>>>();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (props?.accountCategoryId) {
accountSubcategoriesFetcher.load(
diff --git a/apps/erp/app/components/Form/AddressAutocomplete.tsx b/apps/erp/app/components/Form/AddressAutocomplete.tsx
index fdec7abb4c..9625cff9ee 100644
--- a/apps/erp/app/components/Form/AddressAutocomplete.tsx
+++ b/apps/erp/app/components/Form/AddressAutocomplete.tsx
@@ -62,6 +62,7 @@ const AddressAutocomplete = ({
const debouncedGetSuggestions = useDebounce(handleInputChange, 300);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (userInteracted) {
debouncedGetSuggestions(value || "");
@@ -84,6 +85,7 @@ const AddressAutocomplete = ({
return () => document.removeEventListener("mousedown", handleClickOutside);
}, [open]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const handleSelect = useCallback(
async (placeId: string) => {
setOpen(false);
diff --git a/apps/erp/app/components/Form/CustomFormFields.tsx b/apps/erp/app/components/Form/CustomFormFields.tsx
index 0844fb394e..8c3e8ea64c 100644
--- a/apps/erp/app/components/Form/CustomFormFields.tsx
+++ b/apps/erp/app/components/Form/CustomFormFields.tsx
@@ -1,3 +1,4 @@
+// biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
import { Boolean, DatePicker, Input, Number, Select } from "@carbon/form";
import { useCustomFieldsSchema } from "~/hooks/useCustomFieldsSchema";
import { DataType } from "~/modules/shared";
diff --git a/apps/erp/app/components/Form/CustomFormInlineFields.tsx b/apps/erp/app/components/Form/CustomFormInlineFields.tsx
index 63e869b50e..35e6d04a3f 100644
--- a/apps/erp/app/components/Form/CustomFormInlineFields.tsx
+++ b/apps/erp/app/components/Form/CustomFormInlineFields.tsx
@@ -1,5 +1,6 @@
import type { Json } from "@carbon/database";
import {
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Boolean,
DatePicker,
InputControlled,
@@ -7,8 +8,8 @@ import {
Select,
ValidatedForm
} from "@carbon/form";
-import { zfd } from "zod-form-data";
import { z } from "zod/v3";
+import { zfd } from "zod-form-data";
import { useCustomFieldsSchema } from "~/hooks/useCustomFieldsSchema";
import { DataType } from "~/modules/shared";
import { Enumerable } from "../Enumerable";
@@ -54,6 +55,7 @@ const CustomFormInlineFields = ({
switch (field.dataTypeId) {
case DataType.Boolean:
return (
+ // biome-ignore lint/correctness/useJsxKeyInIterable: suppressed due to migration
<ValidatedForm
defaultValues={{
[field.id]:
@@ -84,6 +86,7 @@ const CustomFormInlineFields = ({
);
case DataType.Date:
return (
+ // biome-ignore lint/correctness/useJsxKeyInIterable: suppressed due to migration
<ValidatedForm
defaultValues={{
[field.id]: fields[field.id] as string
@@ -113,6 +116,7 @@ const CustomFormInlineFields = ({
);
case DataType.List:
return (
+ // biome-ignore lint/correctness/useJsxKeyInIterable: suppressed due to migration
<ValidatedForm
defaultValues={{
[field.id]: fields[field.id] as string
@@ -148,6 +152,7 @@ const CustomFormInlineFields = ({
);
case DataType.Numeric:
return (
+ // biome-ignore lint/correctness/useJsxKeyInIterable: suppressed due to migration
<ValidatedForm
defaultValues={{
[field.id]: fields[field.id] as number
@@ -178,6 +183,7 @@ const CustomFormInlineFields = ({
);
case DataType.Text:
return (
+ // biome-ignore lint/correctness/useJsxKeyInIterable: suppressed due to migration
<ValidatedForm
defaultValues={{
[field.id]: fields[field.id] as string
@@ -207,6 +213,7 @@ const CustomFormInlineFields = ({
);
case DataType.User:
return (
+ // biome-ignore lint/correctness/useJsxKeyInIterable: suppressed due to migration
<ValidatedForm
defaultValues={{
[field.id]: fields[field.id] as string
@@ -236,6 +243,7 @@ const CustomFormInlineFields = ({
);
case DataType.Customer:
return (
+ // biome-ignore lint/correctness/useJsxKeyInIterable: suppressed due to migration
<ValidatedForm
defaultValues={{
[field.id]: fields[field.id] as string
@@ -265,6 +273,7 @@ const CustomFormInlineFields = ({
);
case DataType.Supplier:
return (
+ // biome-ignore lint/correctness/useJsxKeyInIterable: suppressed due to migration
<ValidatedForm
defaultValues={{
[field.id]: fields[field.id] as string
diff --git a/apps/erp/app/components/Form/CustomerContact.tsx b/apps/erp/app/components/Form/CustomerContact.tsx
index f82681e23e..86150b36da 100644
--- a/apps/erp/app/components/Form/CustomerContact.tsx
+++ b/apps/erp/app/components/Form/CustomerContact.tsx
@@ -91,6 +91,7 @@ function useCustomerContacts(customerId?: string) {
const customerContactsFetcher =
useFetcher<Awaited<ReturnType<typeof getCustomerContacts>>>();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (customerId) {
customerContactsFetcher.load(path.to.api.customerContacts(customerId));
diff --git a/apps/erp/app/components/Form/CustomerLocation.tsx b/apps/erp/app/components/Form/CustomerLocation.tsx
index c253e43eea..eebde357ba 100644
--- a/apps/erp/app/components/Form/CustomerLocation.tsx
+++ b/apps/erp/app/components/Form/CustomerLocation.tsx
@@ -37,6 +37,7 @@ const CustomerLocation = (props: CustomerLocationSelectProps) => {
const [created, setCreated] = useState<string>("");
const triggerRef = useRef<HTMLButtonElement>(null);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (props?.customer) {
customerLocationsFetcher.load(
diff --git a/apps/erp/app/components/Form/Item.tsx b/apps/erp/app/components/Form/Item.tsx
index bfc64c7fc1..4212328157 100644
--- a/apps/erp/app/components/Form/Item.tsx
+++ b/apps/erp/app/components/Form/Item.tsx
@@ -1,29 +1,29 @@
import type { ComboboxProps } from "@carbon/form";
import { useControlField, useField } from "@carbon/form";
import {
- Button,
- cn,
- CreatableCombobox,
- DropdownMenu,
- DropdownMenuContent,
- DropdownMenuRadioGroup,
- DropdownMenuRadioItem,
- DropdownMenuTrigger,
- FormControl,
- FormErrorMessage,
- FormHelperText,
- FormLabel,
- IconButton,
- Modal,
- ModalBody,
- ModalContent,
- ModalFooter,
- ModalHeader,
- ModalTitle,
- Tooltip,
- TooltipContent,
- TooltipTrigger,
- useDisclosure
+ Button,
+ CreatableCombobox,
+ cn,
+ DropdownMenu,
+ DropdownMenuContent,
+ DropdownMenuRadioGroup,
+ DropdownMenuRadioItem,
+ DropdownMenuTrigger,
+ FormControl,
+ FormErrorMessage,
+ FormHelperText,
+ FormLabel,
+ IconButton,
+ Modal,
+ ModalBody,
+ ModalContent,
+ ModalFooter,
+ ModalHeader,
+ ModalTitle,
+ Tooltip,
+ TooltipContent,
+ TooltipTrigger,
+ useDisclosure
} from "@carbon/react";
import { useEffect, useMemo, useRef, useState } from "react";
import { LuFilter } from "react-icons/lu";
@@ -73,6 +73,7 @@ const Item = ({
}: ItemSelectProps) => {
const [items] = useItems();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const options = useMemo(() => {
const results = items
.filter((item) => {
diff --git a/apps/erp/app/components/Form/MaterialDimension.tsx b/apps/erp/app/components/Form/MaterialDimension.tsx
index 272f98ea79..b2675522be 100644
--- a/apps/erp/app/components/Form/MaterialDimension.tsx
+++ b/apps/erp/app/components/Form/MaterialDimension.tsx
@@ -44,6 +44,7 @@ const MaterialDimension = (props: MaterialDimensionSelectProps) => {
}
});
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (props.formId) {
materialDimensionsLoader.load(
diff --git a/apps/erp/app/components/Form/MaterialFinish.tsx b/apps/erp/app/components/Form/MaterialFinish.tsx
index a1df8b98a3..92388e5b1a 100644
--- a/apps/erp/app/components/Form/MaterialFinish.tsx
+++ b/apps/erp/app/components/Form/MaterialFinish.tsx
@@ -44,6 +44,7 @@ const MaterialFinish = (props: MaterialFinishSelectProps) => {
}
});
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (props.substanceId) {
materialFinishesLoader.load(
diff --git a/apps/erp/app/components/Form/MaterialGrade.tsx b/apps/erp/app/components/Form/MaterialGrade.tsx
index 198b5b4cd4..fa677882f7 100644
--- a/apps/erp/app/components/Form/MaterialGrade.tsx
+++ b/apps/erp/app/components/Form/MaterialGrade.tsx
@@ -42,6 +42,7 @@ const MaterialGrade = (props: MaterialGradeSelectProps) => {
}
});
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (props.substanceId) {
materialGradesLoader.load(path.to.api.materialGrades(props.substanceId));
diff --git a/apps/erp/app/components/Form/MaterialType.tsx b/apps/erp/app/components/Form/MaterialType.tsx
index 8d7ea503bf..02bb429659 100644
--- a/apps/erp/app/components/Form/MaterialType.tsx
+++ b/apps/erp/app/components/Form/MaterialType.tsx
@@ -93,6 +93,7 @@ export const useMaterialTypes = (substanceId?: string, formId?: string) => {
}
});
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (substanceId && formId) {
materialTypes.load(path.to.api.materialTypes(substanceId, formId));
diff --git a/apps/erp/app/components/Form/Shelf.tsx b/apps/erp/app/components/Form/Shelf.tsx
index d0d7cadcca..77ab4ccf5a 100644
--- a/apps/erp/app/components/Form/Shelf.tsx
+++ b/apps/erp/app/components/Form/Shelf.tsx
@@ -79,6 +79,7 @@ export function useShelves(locationId?: string, itemId?: string) {
const shelvesWithQuantitiesFetcher =
useFetcher<Awaited<ReturnType<typeof getShelvesList>>>();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (locationId) {
if (itemId) {
diff --git a/apps/erp/app/components/Form/Shift.tsx b/apps/erp/app/components/Form/Shift.tsx
index 6c0ac44f95..2d0a8533d0 100644
--- a/apps/erp/app/components/Form/Shift.tsx
+++ b/apps/erp/app/components/Form/Shift.tsx
@@ -24,6 +24,7 @@ export default Shift;
export const useShifts = (props?: { location?: string }) => {
const shiftFetcher = useFetcher<Awaited<ReturnType<typeof getShiftsList>>>();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (props?.location) {
shiftFetcher.load(path.to.api.shifts(props.location));
diff --git a/apps/erp/app/components/Form/SupplierContact.tsx b/apps/erp/app/components/Form/SupplierContact.tsx
index 6836a8f9a0..b8173fabe4 100644
--- a/apps/erp/app/components/Form/SupplierContact.tsx
+++ b/apps/erp/app/components/Form/SupplierContact.tsx
@@ -45,6 +45,7 @@ const SupplierContact = (props: SupplierContactSelectProps) => {
const [firstName, ...lastName] = created.split(" ");
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (props?.supplier) {
supplierContactsFetcher.load(
diff --git a/apps/erp/app/components/Form/SupplierLocation.tsx b/apps/erp/app/components/Form/SupplierLocation.tsx
index c58ad2f0fb..4ba1434705 100644
--- a/apps/erp/app/components/Form/SupplierLocation.tsx
+++ b/apps/erp/app/components/Form/SupplierLocation.tsx
@@ -5,8 +5,8 @@ import { formatAddress } from "@carbon/utils";
import { useFetcher } from "@remix-run/react";
import { useEffect, useMemo, useRef } from "react";
import {
- type SupplierLocation as SupplierLocationType,
- type getSupplierLocations
+ type getSupplierLocations,
+ type SupplierLocation as SupplierLocationType
} from "~/modules/purchasing";
import { SupplierLocationForm } from "~/modules/purchasing/ui/Supplier";
import { path } from "~/utils/path";
@@ -36,6 +36,7 @@ const SupplierLocation = (props: SupplierLocationSelectProps) => {
const supplierLocationsFetcher =
useFetcher<Awaited<ReturnType<typeof getSupplierLocations>>>();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (props?.supplier) {
supplierLocationsFetcher.load(
diff --git a/apps/erp/app/components/Form/index.ts b/apps/erp/app/components/Form/index.ts
index 13e63cb446..b4fdb2e04d 100644
--- a/apps/erp/app/components/Form/index.ts
+++ b/apps/erp/app/components/Form/index.ts
@@ -1,6 +1,8 @@
import {
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Array,
ArrayNumeric,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Boolean,
Combobox,
CreatableCombobox,
@@ -12,6 +14,7 @@ import {
Input,
InputControlled,
MultiSelect,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
NumberControlled,
Password,
@@ -28,23 +31,23 @@ import {
import Abilities from "./Abilities";
import Ability from "./Ability";
import Account from "./Account";
-import AddressAutocomplete from "./AddressAutocomplete";
import AccountCategory from "./AccountCategory";
import AccountSubcategory from "./AccountSubcategory";
+import AddressAutocomplete from "./AddressAutocomplete";
import Color from "./Color";
import ConversionFactor from "./ConversionFactor";
import Currency from "./Currency";
-import CustomFormFields from "./CustomFormFields";
import Customer from "./Customer";
import CustomerContact from "./CustomerContact";
import CustomerLocation from "./CustomerLocation";
import CustomerStatus from "./CustomerStatus";
import CustomerType from "./CustomerType";
+import CustomFormFields from "./CustomFormFields";
import DefaultMethodType from "./DefaultMethodType";
import Department from "./Department";
+import EmojiPicker from "./EmojiPicker";
import Employee from "./Employee";
import Employees from "./Employees";
-import EmojiPicker from "./EmojiPicker";
import Item from "./Item";
import ItemPostingGroup from "./ItemPostingGroup";
import Location from "./Location";
@@ -65,8 +68,8 @@ import SupplierContact from "./SupplierContact";
import SupplierLocation from "./SupplierLocation";
import SupplierProcess from "./SupplierProcess";
import SupplierStatus from "./SupplierStatus";
-import SupplierType from "./SupplierType";
import Suppliers from "./Suppliers";
+import SupplierType from "./SupplierType";
import Tags from "./Tags";
import Tool from "./Tool";
import UnitHint from "./UnitHint";
diff --git a/apps/erp/app/components/Gantt/Gantt.tsx b/apps/erp/app/components/Gantt/Gantt.tsx
index 0c8e68a366..73c58a31b3 100644
--- a/apps/erp/app/components/Gantt/Gantt.tsx
+++ b/apps/erp/app/components/Gantt/Gantt.tsx
@@ -2,6 +2,7 @@ import type { Shortcut } from "@carbon/react";
import {
Badge,
Button,
+ cn,
Input,
InputGroup,
InputLeftElement,
@@ -16,7 +17,6 @@ import {
ShortcutKey,
Slider,
Switch,
- cn,
shortcutKeyVariants,
useDebounce,
useInitialDimensions,
@@ -40,18 +40,17 @@ import {
ShowParentIconSelected
} from "~/assets/icons/ShowParentIcon";
import tileBgPath from "~/assets/images/[email protected]";
-import { GanttIcon } from "./components/GanttIcon";
-
import type { GanttEvent } from "~/components/Gantt/types";
import * as Timeline from "~/components/Timeline";
import type { NodesState, UseTreeStateOutput } from "~/components/TreeView";
import { LevelLine, TreeView, useTree } from "~/components/TreeView";
import { setResizableGanttSettings } from "~/utils/resizable-panels";
+import { GanttIcon } from "./components/GanttIcon";
import {
GanttTaskStatusIcon,
runStatusClassNameColor
} from "./components/GanttTaskStatus";
-import { SpanTitle, eventBackgroundClassName } from "./components/SpanTitle";
+import { eventBackgroundClassName, SpanTitle } from "./components/SpanTitle";
type GanttProps = {
events: GanttEvent[];
@@ -359,6 +358,7 @@ const GanttTimeline = ({
//we want to live-update the duration if the root span is still in progress
const [duration, setDuration] = useState(totalDuration);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (rootSpanStatus !== "inprogress" || !rootStartedAt) {
setDuration(totalDuration);
diff --git a/apps/erp/app/components/Grid/Grid.tsx b/apps/erp/app/components/Grid/Grid.tsx
index 680eb199dc..3a1020289c 100644
--- a/apps/erp/app/components/Grid/Grid.tsx
+++ b/apps/erp/app/components/Grid/Grid.tsx
@@ -120,6 +120,7 @@ const Grid = <T extends object>({
const [isEditing, setIsEditing] = useState(false);
const [selectedCell, setSelectedCell] = useState<Position>(null);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const focusOnSelectedCell = useCallback(() => {
if (selectedCell == null) return;
const cell = tableContainerRef.current?.querySelector(
@@ -309,6 +310,7 @@ const Grid = <T extends object>({
);
// reset the selected cell when the table data changes
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
setSelectedCell(null);
}, [columnOrder, columnVisibility]);
diff --git a/apps/erp/app/components/ImportCSVModal/FieldMappings.tsx b/apps/erp/app/components/ImportCSVModal/FieldMappings.tsx
index 3a0ae73902..5e19bba2d8 100644
--- a/apps/erp/app/components/ImportCSVModal/FieldMappings.tsx
+++ b/apps/erp/app/components/ImportCSVModal/FieldMappings.tsx
@@ -4,15 +4,15 @@ import { useCarbon } from "@carbon/auth";
import type { Database } from "@carbon/database";
import { Combobox, useFormContext } from "@carbon/form";
import {
- Button,
- ModalDescription,
- ModalHeader,
- ModalTitle,
- Tooltip,
- TooltipContent,
- TooltipProvider,
- TooltipTrigger,
- toast
+ Button,
+ ModalDescription,
+ ModalHeader,
+ ModalTitle,
+ Tooltip,
+ TooltipContent,
+ TooltipProvider,
+ TooltipTrigger,
+ toast
} from "@carbon/react";
import { formatDate } from "@carbon/utils";
import { useFetcher } from "@remix-run/react";
@@ -75,6 +75,7 @@ export function FieldMapping({
}, {})
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (!fileColumns || !firstRows) return;
@@ -90,6 +91,7 @@ export function FieldMapping({
);
}, [fileColumns, firstRows]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (
fetcher.data &&
@@ -398,6 +400,7 @@ function EnumMappingStep({
}
}, [enumData, carbon, company.id]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if ("fetcher" in enumData && carbon) {
fetchOptions();
diff --git a/apps/erp/app/components/ImportCSVModal/ImportCSVModal.tsx b/apps/erp/app/components/ImportCSVModal/ImportCSVModal.tsx
index 3395807010..19dd76b01a 100644
--- a/apps/erp/app/components/ImportCSVModal/ImportCSVModal.tsx
+++ b/apps/erp/app/components/ImportCSVModal/ImportCSVModal.tsx
@@ -42,6 +42,7 @@ export const ImportCSVModal = ({ table, onClose }: ImportCSVModalProps) => {
null
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (fetcher.data?.success === true) {
toast.success("Import successful.");
diff --git a/apps/erp/app/components/Layout/Navigation/CollapsibleSidebar.tsx b/apps/erp/app/components/Layout/Navigation/CollapsibleSidebar.tsx
index 5095b2f926..633ca21026 100644
--- a/apps/erp/app/components/Layout/Navigation/CollapsibleSidebar.tsx
+++ b/apps/erp/app/components/Layout/Navigation/CollapsibleSidebar.tsx
@@ -17,6 +17,7 @@ const CollapsibleSidebarContext = createContext<
export function useCollapsibleSidebar() {
const context = useContext(CollapsibleSidebarContext);
if (!context) {
+ // biome-ignore lint/suspicious/noEmptyBlockStatements: suppressed due to migration
return { hasSidebar: false, isOpen: false, onToggle: () => {} };
}
return context;
diff --git a/apps/erp/app/components/Layout/Navigation/GroupedContentSidebar.tsx b/apps/erp/app/components/Layout/Navigation/GroupedContentSidebar.tsx
index 47a66f0dd9..c7ef09ae35 100644
--- a/apps/erp/app/components/Layout/Navigation/GroupedContentSidebar.tsx
+++ b/apps/erp/app/components/Layout/Navigation/GroupedContentSidebar.tsx
@@ -198,6 +198,7 @@ const ViewsReorderGroup = ({
.sort()
.join(",");
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
setSortedViews([...views].sort((a, b) => a.sortOrder - b.sortOrder));
}, [views.length, viewNames]);
diff --git a/apps/erp/app/components/Layout/Panels.tsx b/apps/erp/app/components/Layout/Panels.tsx
index 7173a0e43a..3c1c22fde2 100644
--- a/apps/erp/app/components/Layout/Panels.tsx
+++ b/apps/erp/app/components/Layout/Panels.tsx
@@ -19,9 +19,13 @@ interface PanelContextType {
const PanelContext = createContext<PanelContextType>({
isExplorerCollapsed: false,
isPropertiesCollapsed: false,
+ // biome-ignore lint/suspicious/noEmptyBlockStatements: suppressed due to migration
toggleExplorer: () => {},
+ // biome-ignore lint/suspicious/noEmptyBlockStatements: suppressed due to migration
toggleProperties: () => {},
+ // biome-ignore lint/suspicious/noEmptyBlockStatements: suppressed due to migration
setIsExplorerCollapsed: () => {},
+ // biome-ignore lint/suspicious/noEmptyBlockStatements: suppressed due to migration
setIsPropertiesCollapsed: () => {}
});
@@ -57,6 +61,7 @@ export function PanelProvider({ children }: PanelProviderProps) {
setIsPropertiesCollapsed
};
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (isMobile) {
setIsExplorerCollapsed(true);
diff --git a/apps/erp/app/components/Layout/Topbar/Notifications.tsx b/apps/erp/app/components/Layout/Topbar/Notifications.tsx
index 4a6decafa3..678fb93c98 100644
--- a/apps/erp/app/components/Layout/Topbar/Notifications.tsx
+++ b/apps/erp/app/components/Layout/Topbar/Notifications.tsx
@@ -361,6 +361,7 @@ const Notifications = () => {
}
}, [isOpen]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (isOpen && hasUnseenNotifications) {
markAllMessagesAsSeen();
diff --git a/apps/erp/app/components/OnshapeSync.tsx b/apps/erp/app/components/OnshapeSync.tsx
index b331a4d84a..500fd19a6d 100644
--- a/apps/erp/app/components/OnshapeSync.tsx
+++ b/apps/erp/app/components/OnshapeSync.tsx
@@ -3,8 +3,8 @@ import { OnshapeLogo } from "@carbon/ee";
import {
Badge,
Button,
- cn,
Combobox,
+ cn,
DropdownMenu,
DropdownMenuContent,
DropdownMenuIcon,
@@ -93,6 +93,7 @@ export const OnshapeSync = ({
| { data: null; error: string }
>({});
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (!isDisabled && initialized) {
documentsFetcher.load(path.to.api.onShapeDocuments);
@@ -122,6 +123,7 @@ export const OnshapeSync = ({
| { data: null; error: string }
>({});
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (documentId && !isDisabled && initialized) {
versionsFetcher.load(path.to.api.onShapeVersions(documentId));
@@ -145,6 +147,7 @@ export const OnshapeSync = ({
| { data: null; error: string }
>({});
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (documentId && versionId && !isDisabled && initialized) {
elementsFetcher.load(path.to.api.onShapeElements(documentId, versionId));
@@ -446,7 +449,9 @@ export const OnshapeSync = ({
<Status color="red">No part ID</Status>
)}
{!isSynced && partId && <PulsingDot className="mt-0.5" />}
+ {/** biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration */}
{row.data["State"] && (
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
<OnshapeStatus status={row.data["State"]} />
)}
</div>
diff --git a/apps/erp/app/components/RealtimeDataProvider.tsx b/apps/erp/app/components/RealtimeDataProvider.tsx
index 35c3c31566..9f2b0fe2ef 100644
--- a/apps/erp/app/components/RealtimeDataProvider.tsx
+++ b/apps/erp/app/components/RealtimeDataProvider.tsx
@@ -18,6 +18,7 @@ const RealtimeDataProvider = ({ children }: { children: React.ReactNode }) => {
company: { id: companyId }
} = useUser();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
hydratedFromServer = false;
}, [companyId]);
@@ -121,6 +122,7 @@ const RealtimeDataProvider = ({ children }: { children: React.ReactNode }) => {
idb.setItem("people", people.data);
};
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (!companyId) return;
hydrate();
diff --git a/apps/erp/app/components/Selectors/UserSelect/components/Popover.tsx b/apps/erp/app/components/Selectors/UserSelect/components/Popover.tsx
index 5afe018319..0d4223f6d8 100644
--- a/apps/erp/app/components/Selectors/UserSelect/components/Popover.tsx
+++ b/apps/erp/app/components/Selectors/UserSelect/components/Popover.tsx
@@ -8,6 +8,7 @@ const Popover = ({ children }: PropsWithChildren) => {
refs: { listBoxRef, popoverRef, focusableNodes }
} = useUserSelectContext();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
/* Build a triple linked-list (TreeNode[]) of focusable DOM Elements that are children
diff --git a/apps/erp/app/components/Selectors/UserSelect/components/TreeSelect.tsx b/apps/erp/app/components/Selectors/UserSelect/components/TreeSelect.tsx
index 411a9d184f..e959a82df8 100644
--- a/apps/erp/app/components/Selectors/UserSelect/components/TreeSelect.tsx
+++ b/apps/erp/app/components/Selectors/UserSelect/components/TreeSelect.tsx
@@ -1,4 +1,4 @@
-import { HStack, Spinner, cn } from "@carbon/react";
+import { cn, HStack, Spinner } from "@carbon/react";
import { FaChevronRight } from "react-icons/fa";
import { RxCheck } from "react-icons/rx";
import useUserSelectContext from "../provider";
@@ -15,6 +15,7 @@ const UserTreeSelect = () => {
} = useUserSelectContext();
return (
+ // biome-ignore lint/a11y/useAriaPropsSupportedByRole: suppressed due to migration
<div
{...listBoxProps}
aria-multiselectable={isMulti}
@@ -58,6 +59,7 @@ const Group = ({ group }: { group: OptionGroup }) => {
const isExpanded = group.expanded && group.items.length > 0;
return (
+ // biome-ignore lint/a11y/useAriaPropsSupportedByRole: suppressed due to migration
<div
id={group.uid}
tabIndex={0}
diff --git a/apps/erp/app/components/Selectors/UserSelect/useUserSelect.ts b/apps/erp/app/components/Selectors/UserSelect/useUserSelect.ts
index a5b3069ee4..0e165cc5f7 100644
--- a/apps/erp/app/components/Selectors/UserSelect/useUserSelect.ts
+++ b/apps/erp/app/components/Selectors/UserSelect/useUserSelect.ts
@@ -10,7 +10,7 @@ import {
useId,
useMemo,
useRef,
- useState,
+ useState
} from "react";
import type { Group } from "~/modules/users";
import { path } from "~/utils/path";
@@ -21,7 +21,7 @@ import type {
SelectionItemsById,
TreeNode,
UserSelectionGenericQueryFilters,
- UserSelectProps,
+ UserSelectProps
} from "./types";
const defaultProps = {
@@ -41,7 +41,8 @@ const defaultProps = {
selectionsMaxHeight: 400,
showAvatars: false,
usersOnly: false,
- onCancel: () => {},
+ // biome-ignore lint/suspicious/noEmptyBlockStatements: suppressed due to migration
+ onCancel: () => {}
};
export default function useUserSelect(props: UserSelectProps) {
@@ -49,7 +50,7 @@ export default function useUserSelect(props: UserSelectProps) {
const innerProps = useMemo(
() => ({
...defaultProps,
- ...props,
+ ...props
}),
[props]
);
@@ -60,6 +61,7 @@ export default function useUserSelect(props: UserSelectProps) {
errors?: PostgrestError;
}>();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
groupsFetcher.load(path.to.api.groupsByType(innerProps.type));
}, [innerProps.type]);
@@ -108,14 +110,14 @@ export default function useUserSelect(props: UserSelectProps) {
...group.data,
uid: getOptionId(groupId, group.data.id),
label: group.data.name || "",
- children: group.children,
+ children: group.children
});
const subgroups = group.children.map((subgroup) => ({
...subgroup.data,
uid: getOptionId(groupId, subgroup.data.id),
label: subgroup.data.name || "",
- children: subgroup.children,
+ children: subgroup.children
}));
result.push(...subgroups);
@@ -125,7 +127,7 @@ export default function useUserSelect(props: UserSelectProps) {
return {
...user,
uid: getOptionId(groupId, user.id),
- label: user.fullName || "",
+ label: user.fullName || ""
};
});
@@ -148,7 +150,7 @@ export default function useUserSelect(props: UserSelectProps) {
uid,
expanded: false,
items: makeGroupItems(group as Group, uid),
- name: group.data.name || "",
+ name: group.data.name || ""
});
}
return acc;
@@ -167,7 +169,7 @@ export default function useUserSelect(props: UserSelectProps) {
if (innerProps.value!.includes(item.id)) {
return {
...acc,
- [item.id]: item,
+ [item.id]: item
};
}
return acc;
@@ -181,7 +183,7 @@ export default function useUserSelect(props: UserSelectProps) {
);
if (selection) {
setSelectionItemsById({
- [selection?.id]: selection,
+ [selection?.id]: selection
});
}
}
@@ -199,7 +201,7 @@ export default function useUserSelect(props: UserSelectProps) {
return acc.concat({
...group,
expanded: true,
- items: matches,
+ items: matches
});
} else {
return acc;
@@ -211,12 +213,14 @@ export default function useUserSelect(props: UserSelectProps) {
[optionGroups]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
setFilteredOptionGroups(makeFilteredOptionGroups());
}, [optionGroups, makeFilteredOptionGroups, setFilteredOptionGroups]);
/* Event Handlers */
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const commit = useCallback(() => {
dropdown.onClose();
setFocusedId(null);
@@ -227,7 +231,7 @@ export default function useUserSelect(props: UserSelectProps) {
handler: () => {
clear();
commit();
- },
+ }
});
const focusInput = useCallback(() => {
@@ -236,6 +240,7 @@ export default function useUserSelect(props: UserSelectProps) {
}
}, []);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const clear = useCallback(() => {
setFilteredOptionGroups(makeFilteredOptionGroups());
setControlledValue("");
@@ -249,6 +254,7 @@ export default function useUserSelect(props: UserSelectProps) {
}
}, [focusInput]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onGroupExpand = useCallback(
(uid: string) =>
setFilteredOptionGroups((previousGroups) =>
@@ -259,6 +265,7 @@ export default function useUserSelect(props: UserSelectProps) {
[setFilteredOptionGroups]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onGroupCollapse = useCallback(
(uid: string) =>
setFilteredOptionGroups((previousGroups) =>
@@ -318,6 +325,7 @@ export default function useUserSelect(props: UserSelectProps) {
[getLastNode, resetFocus]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const hasParent = useCallback(
(id: string) => {
const { parentId } = focusableNodes.current[id];
@@ -356,6 +364,7 @@ export default function useUserSelect(props: UserSelectProps) {
[filteredOptionGroups]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const setFocus = useCallback(
(command: string) => {
let nextFocusedId = focusedId;
@@ -393,10 +402,11 @@ export default function useUserSelect(props: UserSelectProps) {
getPreviousNode,
getNextNode,
scrollTo,
- setFocusedId,
+ setFocusedId
]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const debouncedInputChange = useMemo(() => {
return debounce((search: string) => {
setFilteredOptionGroups(makeFilteredOptionGroups(search));
@@ -443,13 +453,14 @@ export default function useUserSelect(props: UserSelectProps) {
[innerProps]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onSelect = useCallback(
(selectionItem?: IndividualOrGroup) => {
if (selectionItem === undefined) return;
setSelectionItemsById((previousSelections) => {
const nextSelections = innerProps.isMulti
? {
- ...previousSelections,
+ ...previousSelections
}
: {};
@@ -472,16 +483,18 @@ export default function useUserSelect(props: UserSelectProps) {
innerProps.resetAfterSelection,
onChange,
setFocusedId,
- setSelectionItemsById,
+ setSelectionItemsById
]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onDeselect = useCallback(
(selectionItem: IndividualOrGroup) => {
if (selectionItem === undefined) return;
const { id } = selectionItem;
setSelectionItemsById((previousSelections) => {
if (id in previousSelections) {
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { [id]: removed, ...newSelectionCodes } = previousSelections;
onChange(Object.values(newSelectionCodes));
@@ -512,7 +525,7 @@ export default function useUserSelect(props: UserSelectProps) {
setSelectionItemsById((previousSelections) => {
const nextSelections = {
...previousSelections,
- [selectionItem.id]: toggleChecked(selectionItem),
+ [selectionItem.id]: toggleChecked(selectionItem)
};
onCheckedChange(Object.values(nextSelections));
@@ -535,6 +548,7 @@ export default function useUserSelect(props: UserSelectProps) {
}
}, [clear, innerProps.isMulti, removeSelections]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onInputChange = useCallback(
({ target }: ChangeEvent<HTMLInputElement>): void => {
setControlledValue(target.value);
@@ -551,10 +565,11 @@ export default function useUserSelect(props: UserSelectProps) {
dropdown,
innerProps.isMulti,
removeSelections,
- setControlledValue,
+ setControlledValue
]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onExplode = useCallback(
(selectionItem: IndividualOrGroup) => {
if (!("users" in selectionItem)) return;
@@ -563,13 +578,14 @@ export default function useUserSelect(props: UserSelectProps) {
setSelectionItemsById((prevSelectionItems) => {
if (id in prevSelectionItems) {
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { [id]: removed, ...newSelectionItems } = prevSelectionItems;
users.forEach((user) => {
newSelectionItems[user.id] = {
...user,
uid: getOptionId(id, user.id),
- label: user.fullName || "",
+ label: user.fullName || ""
};
});
@@ -577,7 +593,7 @@ export default function useUserSelect(props: UserSelectProps) {
newSelectionItems[group.data.id] = {
...group.data,
uid: getOptionId(id, group.data.id),
- label: group.data.name || "",
+ label: group.data.name || ""
};
});
@@ -690,7 +706,7 @@ export default function useUserSelect(props: UserSelectProps) {
onSelect,
onToggle,
resetFocus,
- setFocus,
+ setFocus
]
);
@@ -702,7 +718,7 @@ export default function useUserSelect(props: UserSelectProps) {
() => ({
id: instanceId,
role: "tree",
- tabIndex: -1,
+ tabIndex: -1
}),
[instanceId]
);
@@ -716,7 +732,7 @@ export default function useUserSelect(props: UserSelectProps) {
"aria-autocomplete": "list",
"aria-activedescendant": undefined, // TODO
autoComplete: "off",
- autoCorrect: "off",
+ autoCorrect: "off"
}),
[instanceId, dropdown.isOpen]
);
@@ -725,7 +741,7 @@ export default function useUserSelect(props: UserSelectProps) {
() => ({
inputProps,
listBoxProps,
- popoverProps,
+ popoverProps
}),
[inputProps, listBoxProps, popoverProps]
);
@@ -733,7 +749,7 @@ export default function useUserSelect(props: UserSelectProps) {
let inputValue =
innerProps.isMulti || focusedId || controlledValue
? controlledValue
- : Object.values(selectionItemsById)?.[0]?.label ?? "";
+ : (Object.values(selectionItemsById)?.[0]?.label ?? "");
return {
aria,
@@ -756,7 +772,7 @@ export default function useUserSelect(props: UserSelectProps) {
listBoxRef,
popoverRef,
buttonRef,
- focusableNodes,
+ focusableNodes
},
// event handlers
onClearInput,
@@ -772,7 +788,7 @@ export default function useUserSelect(props: UserSelectProps) {
onExplode,
onMouseOver,
setControlledValue,
- setSelectionItemsById,
+ setSelectionItemsById
};
}
@@ -787,7 +803,7 @@ function getGroupId(instanceId: string, groupId: string) {
function checked(item: IndividualOrGroup): IndividualOrGroup {
return {
...item,
- isChecked: true,
+ isChecked: true
};
}
@@ -801,7 +817,7 @@ export function isGroup(item: IndividualOrGroup) {
function toggleChecked(item: IndividualOrGroup): IndividualOrGroup {
return {
...item,
- isChecked: !item.isChecked || false,
+ isChecked: !item.isChecked || false
};
}
@@ -810,6 +826,7 @@ function makeSelectionItemsById(
isMulti: boolean
): SelectionItemsById {
const result: SelectionItemsById = {};
+ // biome-ignore lint/suspicious/useIterableCallbackReturn: suppressed due to migration
input.forEach((item) => {
if (!(item.id in result)) {
result[item.id] = checked(item);
diff --git a/apps/erp/app/components/SortableList.tsx b/apps/erp/app/components/SortableList.tsx
index 032299c469..fa39704d80 100644
--- a/apps/erp/app/components/SortableList.tsx
+++ b/apps/erp/app/components/SortableList.tsx
@@ -1,10 +1,9 @@
"use client";
-import { LayoutGroup, Reorder, motion, useDragControls } from "framer-motion";
+import { Checkbox, cn, HStack } from "@carbon/react";
+import { LayoutGroup, motion, Reorder, useDragControls } from "framer-motion";
import type { ReactNode } from "react";
import { useEffect, useRef, useState } from "react";
-
-import { Checkbox, HStack, cn } from "@carbon/react";
import { flushSync } from "react-dom";
import { LuTrash } from "react-icons/lu";
import Empty from "./Empty";
@@ -254,6 +253,7 @@ function SortableList<T extends Item>({
<Reorder.Group
axis="y"
values={items}
+ // biome-ignore lint/suspicious/noEmptyBlockStatements: suppressed due to migration
onReorder={isReadOnly ? () => {} : onReorder}
className="flex flex-col"
>
diff --git a/apps/erp/app/components/Table/Table.tsx b/apps/erp/app/components/Table/Table.tsx
index 9ae3b5c124..0fe1dfa883 100644
--- a/apps/erp/app/components/Table/Table.tsx
+++ b/apps/erp/app/components/Table/Table.tsx
@@ -1,10 +1,10 @@
import {
ActionMenu,
Button,
- cn,
ContextMenu,
ContextMenuContent,
ContextMenuTrigger,
+ cn,
DropdownMenu,
DropdownMenuContent,
DropdownMenuIcon,
@@ -241,6 +241,7 @@ const Table = <T extends object>({
}, [data]);
/* Clear row selection when data changes */
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (withSelectableRows) {
setRowSelection({});
@@ -298,6 +299,7 @@ const Table = <T extends object>({
};
});
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (currentView) {
setColumnVisibility(currentView.columnVisibility);
@@ -423,6 +425,7 @@ const Table = <T extends object>({
? table.getSelectedRowModel().flatRows.map((row) => row.original)
: [];
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (typeof onSelectedRowsChange === "function") {
onSelectedRowsChange(selectedRows);
@@ -438,6 +441,7 @@ const Table = <T extends object>({
Record<string, AggregateFunction>
>({});
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const focusOnSelectedCell = useCallback(() => {
if (selectedCell == null) return;
const cell = tableContainerRef.current?.querySelector(
@@ -512,6 +516,7 @@ const Table = <T extends object>({
[table]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onKeyDown = useCallback(
(event: React.KeyboardEvent<HTMLDivElement>) => {
if (!selectedCell) return;
@@ -635,6 +640,7 @@ const Table = <T extends object>({
]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (selectedCell) setSelectedCell(null);
}, [editMode, pagination.pageIndex, pagination.pageSize]);
@@ -683,6 +689,7 @@ const Table = <T extends object>({
);
const [columnSizeMap, setColumnSizeMap] = useState<ColumnSizeMap>(new Map());
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
const calculateColumnWidths = () => {
const tableWrapperEl = getTableWrapperEl();
diff --git a/apps/erp/app/components/Table/components/Filter/ActiveFilters.tsx b/apps/erp/app/components/Table/components/Filter/ActiveFilters.tsx
index 3716115f26..c233b6de1b 100644
--- a/apps/erp/app/components/Table/components/Filter/ActiveFilters.tsx
+++ b/apps/erp/app/components/Table/components/Filter/ActiveFilters.tsx
@@ -87,6 +87,7 @@ const ActiveFilter = ({ filter, operator, value }: ActiveFilterProps) => {
}
});
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (
filter.filter.type === "fetcher" &&
diff --git a/apps/erp/app/components/Table/components/Filter/Filter.tsx b/apps/erp/app/components/Table/components/Filter/Filter.tsx
index 1bd9668523..633083c8eb 100644
--- a/apps/erp/app/components/Table/components/Filter/Filter.tsx
+++ b/apps/erp/app/components/Table/components/Filter/Filter.tsx
@@ -83,6 +83,7 @@ const Filter = forwardRef<HTMLButtonElement, FilterProps>(
[filters]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const updateActiveOptions = useCallback(
(value: string) => {
const accessorKey = value.split(":")?.[1] ?? "";
diff --git a/apps/erp/app/components/Table/components/TableHeader.tsx b/apps/erp/app/components/Table/components/TableHeader.tsx
index 46df97f0c7..745d9d6250 100644
--- a/apps/erp/app/components/Table/components/TableHeader.tsx
+++ b/apps/erp/app/components/Table/components/TableHeader.tsx
@@ -16,10 +16,10 @@ import {
Heading,
HStack,
IconButton,
- toast,
Tooltip,
TooltipContent,
TooltipTrigger,
+ toast,
useDisclosure
} from "@carbon/react";
import { useFetcher } from "@remix-run/react";
@@ -121,6 +121,7 @@ const TableHeader = <T extends object>({
const fetcher = useFetcher<typeof savedViewAction>();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (fetcher.data?.success && fetcher.data.id) {
setParams({ view: fetcher.data.id });
diff --git a/apps/erp/app/components/Table/types.ts b/apps/erp/app/components/Table/types.ts
index 13c0624b7c..260f539953 100644
--- a/apps/erp/app/components/Table/types.ts
+++ b/apps/erp/app/components/Table/types.ts
@@ -3,6 +3,7 @@ import type { ReactElement } from "react";
import type { ColumnFilterData } from "./components/Filter/types";
declare module "@tanstack/react-table" {
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
interface ColumnMeta<TData extends unknown, TValue> {
filter?: ColumnFilterData;
pluralHeader?: string;
diff --git a/apps/erp/app/components/Timeline.tsx b/apps/erp/app/components/Timeline.tsx
index ad8d0a2731..6a5d9bb3ce 100644
--- a/apps/erp/app/components/Timeline.tsx
+++ b/apps/erp/app/components/Timeline.tsx
@@ -1,8 +1,8 @@
import { inverseLerp, lerp } from "@carbon/utils";
import type { ComponentPropsWithoutRef, ReactNode } from "react";
import {
- Fragment,
createContext,
+ Fragment,
useCallback,
useContext,
useRef,
@@ -22,6 +22,7 @@ export function MousePositionProvider({ children }: { children: ReactNode }) {
undefined
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const handleMouseMove = useCallback(
(e: React.MouseEvent) => {
if (!ref.current) {
diff --git a/apps/erp/app/components/TreeView/TreeView.tsx b/apps/erp/app/components/TreeView/TreeView.tsx
index f968ca5028..44b7eeb2a4 100644
--- a/apps/erp/app/components/TreeView/TreeView.tsx
+++ b/apps/erp/app/components/TreeView/TreeView.tsx
@@ -59,6 +59,7 @@ export function TreeView<TData>({
[onScroll]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
//subscribe to scrollRef scroll event
if (!scrollRef?.current || onScroll === undefined) return;
@@ -204,6 +205,7 @@ export function useTree<TData, TFilterValue>({
);
//fire onSelectedIdChanged()
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
const selectedId = selectedIdFromState(state.nodes);
if (selectedId !== previousSelectedId.current) {
@@ -213,6 +215,7 @@ export function useTree<TData, TFilterValue>({
}, [state.changes.selectedId]);
//update tree when the data changes or the tree length changes
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (isEager || tree.length !== previousNodeCount.current) {
dispatch({ type: "UPDATE_TREE", payload: { tree } });
@@ -221,6 +224,7 @@ export function useTree<TData, TFilterValue>({
//update the filter, if it's changed
const previousFilter = useRef(filter);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
//check if the value (not reference) of the filter is the same
const previousValue = previousFilter.current
@@ -249,6 +253,7 @@ export function useTree<TData, TFilterValue>({
overscan: 20
});
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const scrollToNodeFn = useCallback(
(id: string) => {
const itemIndex = state.visibleNodeIds.findIndex((n) => n === id);
@@ -260,6 +265,7 @@ export function useTree<TData, TFilterValue>({
[state]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const selectNode = useCallback(
(id: string, scrollToNode = true) => {
dispatch({
@@ -270,6 +276,7 @@ export function useTree<TData, TFilterValue>({
[state]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const deselectNode = useCallback(
(id: string) => {
dispatch({ type: "DESELECT_NODE", payload: { id } });
@@ -277,10 +284,12 @@ export function useTree<TData, TFilterValue>({
[state]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const deselectAllNodes = useCallback(() => {
dispatch({ type: "DESELECT_ALL_NODES" });
}, [state]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const toggleNodeSelection = useCallback(
(id: string, scrollToNode = true) => {
dispatch({
@@ -291,6 +300,7 @@ export function useTree<TData, TFilterValue>({
[state]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const expandNode = useCallback(
(id: string, scrollToNode = true) => {
dispatch({
@@ -301,6 +311,7 @@ export function useTree<TData, TFilterValue>({
[state]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const collapseNode = useCallback(
(id: string) => {
dispatch({ type: "COLLAPSE_NODE", payload: { id } });
@@ -308,6 +319,7 @@ export function useTree<TData, TFilterValue>({
[state]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const toggleExpandNode = useCallback(
(id: string, scrollToNode = true) => {
dispatch({
@@ -318,6 +330,7 @@ export function useTree<TData, TFilterValue>({
[state]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const selectFirstVisibleNode = useCallback(
(scrollToNode = true) => {
dispatch({
@@ -328,6 +341,7 @@ export function useTree<TData, TFilterValue>({
[tree, state]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const selectLastVisibleNode = useCallback(
(scrollToNode = true) => {
dispatch({
@@ -338,6 +352,7 @@ export function useTree<TData, TFilterValue>({
[tree, state]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const selectNextVisibleNode = useCallback(
(scrollToNode = true) => {
dispatch({
@@ -348,6 +363,7 @@ export function useTree<TData, TFilterValue>({
[state]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const selectPreviousVisibleNode = useCallback(
(scrollToNode = true) => {
dispatch({
@@ -358,6 +374,7 @@ export function useTree<TData, TFilterValue>({
[state]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const selectParentNode = useCallback(
(scrollToNode = true) => {
dispatch({
@@ -368,6 +385,7 @@ export function useTree<TData, TFilterValue>({
[state]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const expandAllBelowDepth = useCallback(
(depth: number) => {
dispatch({ type: "EXPAND_ALL_BELOW_DEPTH", payload: { depth } });
@@ -375,6 +393,7 @@ export function useTree<TData, TFilterValue>({
[state]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const collapseAllBelowDepth = useCallback(
(depth: number) => {
dispatch({ type: "COLLAPSE_ALL_BELOW_DEPTH", payload: { depth } });
@@ -382,6 +401,7 @@ export function useTree<TData, TFilterValue>({
[state]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const expandLevel = useCallback(
(level: number) => {
dispatch({ type: "EXPAND_LEVEL", payload: { level } });
@@ -389,6 +409,7 @@ export function useTree<TData, TFilterValue>({
[state]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const collapseLevel = useCallback(
(level: number) => {
dispatch({ type: "COLLAPSE_LEVEL", payload: { level } });
@@ -396,6 +417,7 @@ export function useTree<TData, TFilterValue>({
[state]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const toggleExpandLevel = useCallback(
(level: number) => {
dispatch({ type: "TOGGLE_EXPAND_LEVEL", payload: { level } });
@@ -403,6 +425,7 @@ export function useTree<TData, TFilterValue>({
[state]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const getTreeProps = useCallback(() => {
return {
role: "tree",
@@ -494,6 +517,7 @@ export function useTree<TData, TFilterValue>({
};
}, [state]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const getNodeProps = useCallback(
(id: string) => {
const node = state.nodes[id];
diff --git a/apps/erp/app/components/TreeView/utils.ts b/apps/erp/app/components/TreeView/utils.ts
index 416c196b4c..4314f8d28e 100644
--- a/apps/erp/app/components/TreeView/utils.ts
+++ b/apps/erp/app/components/TreeView/utils.ts
@@ -1,5 +1,5 @@
-import type { Filter, FlatTree } from "./TreeView";
import type { Changes, NodeState, NodesState, TreeState } from "./reducer";
+import type { Filter, FlatTree } from "./TreeView";
type PartialNodeState = Record<string, Partial<NodeState>>;
@@ -95,6 +95,7 @@ export function selectedIdFromState(state: NodesState): string | undefined {
return selected?.[0];
}
+// biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
export function applyFilterToState<TData>({
tree,
nodes,
@@ -227,6 +228,7 @@ export function lastVisibleNode(tree: FlatTree<any>, nodes: NodesState) {
.find((node) => nodes[node.id].visible === true);
}
+// biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
function areSetsEqual<T>(a: Set<T>, b: Set<T>): boolean {
return a.size === b.size && [...a].every((value) => b.has(value));
}
@@ -251,6 +253,7 @@ export function generateChanges(a: NodesState, b: NodesState): Changes {
const collapsedIdsA = new Set(collapsedIdsFromState(a));
const collapsedIdsB = new Set(collapsedIdsFromState(b));
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const collapsedChanges = [...difference(collapsedIdsA, collapsedIdsB)];
return {
diff --git a/apps/erp/app/hooks/useAsyncFetcher.tsx b/apps/erp/app/hooks/useAsyncFetcher.tsx
index 0f090b8ffd..5f0a1409b1 100644
--- a/apps/erp/app/hooks/useAsyncFetcher.tsx
+++ b/apps/erp/app/hooks/useAsyncFetcher.tsx
@@ -21,6 +21,7 @@ export function useAsyncFetcher<TData>(options?: FetcherOptions) {
instance.current = Promise.withResolvers<TData>();
}
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const submit = useCallback(
(...args: Parameters<typeof fetcher.submit>) => {
fetcher.submit(...args);
@@ -29,6 +30,7 @@ export function useAsyncFetcher<TData>(options?: FetcherOptions) {
[fetcher, instance]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const load = useCallback(
(...args: Parameters<typeof fetcher.load>) => {
fetcher.load(...args);
diff --git a/apps/erp/app/hooks/useGooglePlaces.tsx b/apps/erp/app/hooks/useGooglePlaces.tsx
index 5e092e5973..c51a54f5cd 100644
--- a/apps/erp/app/hooks/useGooglePlaces.tsx
+++ b/apps/erp/app/hooks/useGooglePlaces.tsx
@@ -217,6 +217,7 @@ export const useGooglePlaces = () => {
}
};
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const selectPlace = useCallback(
async (placeId: string): Promise<AddressComponents | null> => {
const addressComponents = await getPlaceDetails(placeId);
diff --git a/apps/erp/app/hooks/useNextItemId.tsx b/apps/erp/app/hooks/useNextItemId.tsx
index 03e6a61496..ca2f3e89b5 100644
--- a/apps/erp/app/hooks/useNextItemId.tsx
+++ b/apps/erp/app/hooks/useNextItemId.tsx
@@ -39,6 +39,7 @@ export function useNextItemId(
} else {
setId(`${prefix}${(1).toString().padStart(9, "0")}`);
}
+ // biome-ignore lint/suspicious/noEmptyBlockStatements: suppressed due to migration
} catch {
} finally {
setLoading(false);
@@ -65,6 +66,7 @@ export function useNextItemId(
} else {
setId(`${prefix}${(1).toString().padStart(9, "0")}`);
}
+ // biome-ignore lint/suspicious/noEmptyBlockStatements: suppressed due to migration
} catch {
} finally {
setLoading(false);
diff --git a/apps/erp/app/hooks/useNotifications.tsx b/apps/erp/app/hooks/useNotifications.tsx
index 053542c2cf..452b18d458 100644
--- a/apps/erp/app/hooks/useNotifications.tsx
+++ b/apps/erp/app/hooks/useNotifications.tsx
@@ -40,7 +40,9 @@ export function useNotifications({
);
headlessService.markAllMessagesAsRead({
+ // biome-ignore lint/suspicious/noEmptyBlockStatements: suppressed due to migration
listener: () => {},
+ // biome-ignore lint/suspicious/noEmptyBlockStatements: suppressed due to migration
onError: () => {}
});
}
@@ -65,7 +67,9 @@ export function useNotifications({
headlessService.markNotificationsAsRead({
messageId: [messageId],
+ // biome-ignore lint/suspicious/noEmptyBlockStatements: suppressed due to migration
listener: (result) => {},
+ // biome-ignore lint/suspicious/noEmptyBlockStatements: suppressed due to migration
onError: (error) => {}
});
}
@@ -76,6 +80,8 @@ export function useNotifications({
if (headlessService) {
headlessService.fetchNotifications({
+ // biome-ignore lint/correctness/noEmptyPattern: suppressed due to migration
+ // biome-ignore lint/suspicious/noEmptyBlockStatements: suppressed due to migration
listener: ({}) => {},
onSuccess: (response) => {
setLoading(false);
@@ -96,7 +102,9 @@ export function useNotifications({
}))
);
headlessService.markAllMessagesAsSeen({
+ // biome-ignore lint/suspicious/noEmptyBlockStatements: suppressed due to migration
listener: () => {},
+ // biome-ignore lint/suspicious/noEmptyBlockStatements: suppressed due to migration
onError: () => {}
});
}
@@ -106,6 +114,7 @@ export function useNotifications({
setSubscriberId(getSubscriberId({ companyId, userId }));
});
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
const headlessService = headlessServiceRef.current;
@@ -126,11 +135,13 @@ export function useNotifications({
});
headlessService.initializeSession({
+ // biome-ignore lint/suspicious/noEmptyBlockStatements: suppressed due to migration
listener: () => {},
onSuccess: () => {
headlessServiceRef.current = headlessService;
fetchNotifications();
},
+ // biome-ignore lint/suspicious/noEmptyBlockStatements: suppressed due to migration
onError: () => {}
});
}
diff --git a/apps/erp/app/hooks/useReplaceLocation.tsx b/apps/erp/app/hooks/useReplaceLocation.tsx
index 154d66f280..c4b8a52ae0 100644
--- a/apps/erp/app/hooks/useReplaceLocation.tsx
+++ b/apps/erp/app/hooks/useReplaceLocation.tsx
@@ -15,6 +15,7 @@ export function useReplaceLocation() {
setLocation(newLocation);
}, []);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const replaceSearchParam = useCallback(
(key: string, value?: string) => {
const searchParams = new URLSearchParams(location.search);
diff --git a/apps/erp/app/hooks/useResizeObserver.tsx b/apps/erp/app/hooks/useResizeObserver.tsx
index 48ab6c5933..4b03f40567 100644
--- a/apps/erp/app/hooks/useResizeObserver.tsx
+++ b/apps/erp/app/hooks/useResizeObserver.tsx
@@ -9,6 +9,7 @@ export function useResizeObserver(
setEntry(entry);
};
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
const node = elementRef?.current;
if (!node) return;
diff --git a/apps/erp/app/hooks/useTags.tsx b/apps/erp/app/hooks/useTags.tsx
index 83bea2b1be..cda4629682 100644
--- a/apps/erp/app/hooks/useTags.tsx
+++ b/apps/erp/app/hooks/useTags.tsx
@@ -4,6 +4,7 @@ import { path } from "~/utils/path";
export function useTags({ id, table }: { id?: string; table: string }) {
const fetcher = useFetcher<{}>();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdateTags = useCallback(
(value: string[]) => {
if (!id) return;
diff --git a/apps/erp/app/modules/accounting/ui/AccountCategories/AccountCategoriesTable.tsx b/apps/erp/app/modules/accounting/ui/AccountCategories/AccountCategoriesTable.tsx
index d151715110..f14b8aa0c5 100644
--- a/apps/erp/app/modules/accounting/ui/AccountCategories/AccountCategoriesTable.tsx
+++ b/apps/erp/app/modules/accounting/ui/AccountCategories/AccountCategoriesTable.tsx
@@ -113,6 +113,7 @@ const AccountCategoriesTable = memo(
return [...defaultColumns, ...customColumns];
}, [params, customColumns]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const renderContextMenu = useCallback(
(row: (typeof data)[number]) => {
if (!row.id) return null;
diff --git a/apps/erp/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountForm.tsx b/apps/erp/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountForm.tsx
index fb2d5eb2cf..611d261655 100644
--- a/apps/erp/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountForm.tsx
+++ b/apps/erp/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountForm.tsx
@@ -16,6 +16,7 @@ import type { z } from "zod/v3";
import {
AccountCategory,
AccountSubcategory,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Boolean,
Combobox,
CustomFormFields,
diff --git a/apps/erp/app/modules/accounting/ui/Currencies/CurrencyForm.tsx b/apps/erp/app/modules/accounting/ui/Currencies/CurrencyForm.tsx
index 4624f6a5d1..c85dd7902b 100644
--- a/apps/erp/app/modules/accounting/ui/Currencies/CurrencyForm.tsx
+++ b/apps/erp/app/modules/accounting/ui/Currencies/CurrencyForm.tsx
@@ -17,6 +17,7 @@ import {
CustomFormFields,
Hidden,
Input,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
Submit
} from "~/components/Form";
diff --git a/apps/erp/app/modules/accounting/ui/PaymentTerms/PaymentTermForm.tsx b/apps/erp/app/modules/accounting/ui/PaymentTerms/PaymentTermForm.tsx
index 348c2c159a..0977d7f45b 100644
--- a/apps/erp/app/modules/accounting/ui/PaymentTerms/PaymentTermForm.tsx
+++ b/apps/erp/app/modules/accounting/ui/PaymentTerms/PaymentTermForm.tsx
@@ -8,8 +8,8 @@ import {
ModalDrawerHeader,
ModalDrawerProvider,
ModalDrawerTitle,
- VStack,
- toast
+ toast,
+ VStack
} from "@carbon/react";
import { useFetcher } from "@remix-run/react";
import type { PostgrestResponse } from "@supabase/supabase-js";
@@ -19,6 +19,7 @@ import {
CustomFormFields,
Hidden,
Input,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
Select,
Submit
@@ -26,8 +27,8 @@ import {
import { usePermissions } from "~/hooks";
import { path } from "~/utils/path";
import {
- paymentTermValidator,
- paymentTermsCalculationMethod
+ paymentTermsCalculationMethod,
+ paymentTermValidator
} from "../../accounting.models";
import type { PaymentTermCalculationMethod } from "../../types";
diff --git a/apps/erp/app/modules/documents/documents.service.ts b/apps/erp/app/modules/documents/documents.service.ts
index f4266df35f..b543009664 100644
--- a/apps/erp/app/modules/documents/documents.service.ts
+++ b/apps/erp/app/modules/documents/documents.service.ts
@@ -178,6 +178,7 @@ export async function upsertDocument(
);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { extension, ...data } = document;
return client
.from("document")
diff --git a/apps/erp/app/modules/documents/ui/Documents/DocumentsTable.tsx b/apps/erp/app/modules/documents/ui/Documents/DocumentsTable.tsx
index 82274faec8..b1e7850a01 100644
--- a/apps/erp/app/modules/documents/ui/Documents/DocumentsTable.tsx
+++ b/apps/erp/app/modules/documents/ui/Documents/DocumentsTable.tsx
@@ -1,11 +1,11 @@
import {
Badge,
BadgeCloseButton,
- cn,
Command,
CommandGroup,
CommandInput,
CommandItem,
+ cn,
HStack,
MenuIcon,
MenuItem,
@@ -162,6 +162,7 @@ const DocumentsTable = memo(
[favorite, filter]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const columns = useMemo<ColumnDef<Document>[]>(() => {
return [
{
diff --git a/apps/erp/app/modules/inventory/inventory.models.ts b/apps/erp/app/modules/inventory/inventory.models.ts
index 78cb3e1cc9..07e5535b91 100644
--- a/apps/erp/app/modules/inventory/inventory.models.ts
+++ b/apps/erp/app/modules/inventory/inventory.models.ts
@@ -294,6 +294,7 @@ export const stockTransferValidator = z.object({
)
.min(1, { message: "At least one line is required" })
.parse(parsed);
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
} catch (e) {
ctx.addIssue({
code: z.ZodIssueCode.custom,
diff --git a/apps/erp/app/modules/inventory/ui/Kanbans/KanbanForm.tsx b/apps/erp/app/modules/inventory/ui/Kanbans/KanbanForm.tsx
index e8141622f5..1a873a70d7 100644
--- a/apps/erp/app/modules/inventory/ui/Kanbans/KanbanForm.tsx
+++ b/apps/erp/app/modules/inventory/ui/Kanbans/KanbanForm.tsx
@@ -1,4 +1,5 @@
import { useCarbon } from "@carbon/auth";
+// biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
import { Boolean, Hidden, SelectControlled, ValidatedForm } from "@carbon/form";
import {
Button,
@@ -20,6 +21,7 @@ import {
ConversionFactor,
Item,
Location,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
SequenceOrCustomId,
Shelf,
diff --git a/apps/erp/app/modules/inventory/ui/Receipts/ReceiptForm/useReceiptForm.tsx b/apps/erp/app/modules/inventory/ui/Receipts/ReceiptForm/useReceiptForm.tsx
index ac04adf287..9399e2479a 100644
--- a/apps/erp/app/modules/inventory/ui/Receipts/ReceiptForm/useReceiptForm.tsx
+++ b/apps/erp/app/modules/inventory/ui/Receipts/ReceiptForm/useReceiptForm.tsx
@@ -94,6 +94,7 @@ export default function useReceiptForm({
}
}, [sourceDocument, carbon, user.company.id]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (status !== "Posted") {
fetchSourceDocuments();
diff --git a/apps/erp/app/modules/inventory/ui/Receipts/ReceiptLines.tsx b/apps/erp/app/modules/inventory/ui/Receipts/ReceiptLines.tsx
index 097e03cb80..1070b7e878 100644
--- a/apps/erp/app/modules/inventory/ui/Receipts/ReceiptLines.tsx
+++ b/apps/erp/app/modules/inventory/ui/Receipts/ReceiptLines.tsx
@@ -1,4 +1,5 @@
import { useCarbon } from "@carbon/auth";
+// biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
import { Number, Submit, ValidatedForm } from "@carbon/form";
import {
Button,
@@ -6,8 +7,8 @@ import {
CardContent,
CardHeader,
CardTitle,
- cn,
CreatableCombobox,
+ cn,
DropdownMenu,
DropdownMenuContent,
DropdownMenuIcon,
@@ -27,10 +28,10 @@ import {
NumberField,
NumberInput,
SplitButton,
- toast,
Tooltip,
TooltipContent,
TooltipTrigger,
+ toast,
useDisclosure,
VStack
} from "@carbon/react";
@@ -148,6 +149,7 @@ const ReceiptLines = () => {
}, {});
});
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
setSerialNumbersByLineId(
receiptLines.reduce((acc, line) => {
@@ -187,6 +189,7 @@ const ReceiptLines = () => {
);
}, [routeData?.receipt?.sourceDocumentId, routeData?.receiptLines?.length]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdateReceiptLine = useCallback(
async ({
lineId,
diff --git a/apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx b/apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx
index 2bbe0a2168..a2c5ee2b57 100644
--- a/apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx
+++ b/apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx
@@ -138,6 +138,7 @@ const ReceiptPostModal = ({ onClose }: { onClose: () => void }) => {
const fetcher = useFetcher<{}>();
const submitted = useRef(false);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (fetcher.state === "idle" && submitted.current) {
onClose();
diff --git a/apps/erp/app/modules/inventory/ui/Shipments/ShipmentForm/useShipmentForm.tsx b/apps/erp/app/modules/inventory/ui/Shipments/ShipmentForm/useShipmentForm.tsx
index 417932a8e9..a2419751a1 100644
--- a/apps/erp/app/modules/inventory/ui/Shipments/ShipmentForm/useShipmentForm.tsx
+++ b/apps/erp/app/modules/inventory/ui/Shipments/ShipmentForm/useShipmentForm.tsx
@@ -111,6 +111,7 @@ export default function useShipmentForm({
}
}, [sourceDocument, carbon, user.company.id]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (status !== "Posted") {
fetchSourceDocuments();
diff --git a/apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx b/apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx
index a36488c8bd..4f547c9b62 100644
--- a/apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx
+++ b/apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx
@@ -1,4 +1,5 @@
import { useCarbon } from "@carbon/auth";
+// biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
import { Number, Submit, ValidatedForm } from "@carbon/form";
import {
Button,
@@ -6,8 +7,8 @@ import {
CardContent,
CardHeader,
CardTitle,
- cn,
Combobox,
+ cn,
DropdownMenu,
DropdownMenuContent,
DropdownMenuIcon,
@@ -141,6 +142,7 @@ const ShipmentLines = () => {
}, {});
});
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
setSerialNumbersByLineId(
shipmentLines.reduce((acc, line) => {
@@ -177,6 +179,7 @@ const ShipmentLines = () => {
);
}, [routeData?.shipment?.sourceDocumentId, routeData?.shipmentLines?.length]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdateShipmentLine = useCallback(
async ({
lineId,
@@ -610,6 +613,7 @@ function BatchForm({
);
// Verify batch quantity is sufficient for the shipped quantity
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (
values.number &&
@@ -651,6 +655,7 @@ function BatchForm({
};
// Fetch the latest shelf for the selected batch number
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (values.number && values.number.trim()) {
getShelfFromBatchNumber(values.number);
@@ -717,6 +722,7 @@ function BatchForm({
const attributes = batchNumber.attributes as TrackedEntityAttributes;
if (
attributes["Shipment Line"] &&
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
attributes["Shipment"] === shipment?.id
) {
setError("Batch number is already used on another shipment line");
@@ -1191,6 +1197,7 @@ export function useSerialNumbers(itemId?: string, isReadOnly = false) {
const serialNumbersFetcher =
useFetcher<Awaited<ReturnType<typeof getSerialNumbersForItem>>>();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (itemId) {
serialNumbersFetcher.load(path.to.api.serialNumbers(itemId, isReadOnly));
@@ -1204,6 +1211,7 @@ export function useBatchNumbers(itemId?: string) {
const batchNumbersFetcher =
useFetcher<Awaited<ReturnType<typeof getBatchNumbersForItem>>>();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (itemId) {
batchNumbersFetcher.load(path.to.api.batchNumbers(itemId));
diff --git a/apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx b/apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx
index 07e5167ecc..d660cb7645 100644
--- a/apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx
+++ b/apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx
@@ -134,6 +134,7 @@ const ShipmentPostModal = ({ onClose }: { onClose: () => void }) => {
const fetcher = useFetcher<{}>();
const submitted = useRef(false);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (fetcher.state === "idle" && submitted.current) {
onClose();
diff --git a/apps/erp/app/modules/inventory/ui/Shipments/ShipmentVoidModal.tsx b/apps/erp/app/modules/inventory/ui/Shipments/ShipmentVoidModal.tsx
index 1329426da4..e303e499b9 100644
--- a/apps/erp/app/modules/inventory/ui/Shipments/ShipmentVoidModal.tsx
+++ b/apps/erp/app/modules/inventory/ui/Shipments/ShipmentVoidModal.tsx
@@ -26,6 +26,7 @@ const ShipmentVoidModal = ({ onClose }: { onClose: () => void }) => {
const fetcher = useFetcher<{}>();
const submitted = useRef(false);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (fetcher.state === "idle" && submitted.current) {
onClose();
diff --git a/apps/erp/app/modules/inventory/ui/ShippingMethods/ShippingMethodsTable.tsx b/apps/erp/app/modules/inventory/ui/ShippingMethods/ShippingMethodsTable.tsx
index 6b3326eecf..dcd11f6fcf 100644
--- a/apps/erp/app/modules/inventory/ui/ShippingMethods/ShippingMethodsTable.tsx
+++ b/apps/erp/app/modules/inventory/ui/ShippingMethods/ShippingMethodsTable.tsx
@@ -35,6 +35,7 @@ const ShippingMethodsTable = memo(
const customColumns =
useCustomColumns<(typeof data)[number]>("shippingMethod");
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const columns = useMemo<ColumnDef<(typeof data)[number]>[]>(() => {
let result: ColumnDef<(typeof rows)[number]>[] = [
{
diff --git a/apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx b/apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx
index 39841b32f1..0e35752252 100644
--- a/apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx
+++ b/apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx
@@ -48,6 +48,7 @@ const StockTransferPostModal = ({ onClose }: { onClose: () => void }) => {
const { carbon } = useCarbon();
const {
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
company: { id: companyId }
} = useUser();
@@ -105,6 +106,7 @@ const StockTransferPostModal = ({ onClose }: { onClose: () => void }) => {
const fetcher = useFetcher<{}>();
const submitted = useRef(false);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (fetcher.state === "idle" && submitted.current) {
onClose();
diff --git a/apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferLineForm.tsx b/apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferLineForm.tsx
index c0b0bab4c0..5ed969d064 100644
--- a/apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferLineForm.tsx
+++ b/apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferLineForm.tsx
@@ -8,13 +8,14 @@ import {
ModalDrawerHeader,
ModalDrawerProvider,
ModalDrawerTitle,
- VStack,
- toast
+ toast,
+ VStack
} from "@carbon/react";
import { useFetcher, useParams } from "@remix-run/react";
import type { PostgrestResponse } from "@supabase/supabase-js";
import { useEffect, useState } from "react";
import type { z } from "zod/v3";
+// biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
import { Hidden, Item, Number, Shelf, Submit } from "~/components/Form";
import { usePermissions } from "~/hooks";
import { stockTransferLineValidator } from "~/modules/inventory";
diff --git a/apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferWizard.tsx b/apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferWizard.tsx
index 25c4230669..367531604f 100644
--- a/apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferWizard.tsx
+++ b/apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferWizard.tsx
@@ -3,8 +3,8 @@ import { useCarbon } from "@carbon/auth";
import {
Badge,
Button,
- cn,
Count,
+ cn,
Drawer,
DrawerBody,
DrawerContent,
@@ -34,11 +34,11 @@ import {
Td,
Th,
Thead,
- toast,
Tooltip,
TooltipContent,
TooltipTrigger,
Tr,
+ toast,
useMount,
VStack
} from "@carbon/react";
@@ -46,10 +46,10 @@ import { prettifyKeyboardShortcut } from "@carbon/utils";
import { useNumberFormatter } from "@react-aria/i18n";
import { useFetcher } from "@remix-run/react";
import {
+ type ColumnDef,
flexRender,
getCoreRowModel,
- useReactTable,
- type ColumnDef
+ useReactTable
} from "@tanstack/react-table";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import { BsChevronLeft, BsChevronRight } from "react-icons/bs";
@@ -258,12 +258,14 @@ function TransferGrid({ locationId }: { locationId: string }) {
}, [transferFromQuery]);
// Reset offsets when page size changes
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
setTransferToOffset(0);
setTransferFromOffset(0);
}, [pageSize]);
// Deselect active item/shelf when "to" table page changes
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
clearSelectedToItemShelves();
}, [transferToOffset]);
diff --git a/apps/erp/app/modules/inventory/ui/Traceability/TraceabilityGraph.tsx b/apps/erp/app/modules/inventory/ui/Traceability/TraceabilityGraph.tsx
index 70c69ff771..28f93599e4 100644
--- a/apps/erp/app/modules/inventory/ui/Traceability/TraceabilityGraph.tsx
+++ b/apps/erp/app/modules/inventory/ui/Traceability/TraceabilityGraph.tsx
@@ -5,8 +5,8 @@ import {
Tooltip,
TooltipContent,
TooltipTrigger,
- VStack,
- useMount
+ useMount,
+ VStack
} from "@carbon/react";
import type {
TrackedActivityAttributes,
@@ -465,6 +465,7 @@ export function TraceabilitySidebar({
return (
<JobMakeMethodAttribute
key={key}
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
jobId={selectedNodeAttributes["Job"]}
makeMethodId={value}
materialId={selectedNodeAttributes["Job Material"]}
@@ -474,6 +475,7 @@ export function TraceabilitySidebar({
return (
<JobOperationAttribute
key={key}
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
jobId={selectedNodeAttributes["Job"]}
operationId={value}
/>
@@ -500,6 +502,7 @@ export function TraceabilitySidebar({
return (
<JobProductionEvent
key={key}
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
jobId={selectedNodeAttributes["Job"]}
eventId={value}
/>
diff --git a/apps/erp/app/modules/inventory/ui/WarehouseTransfers/WarehouseTransferLineForm.tsx b/apps/erp/app/modules/inventory/ui/WarehouseTransfers/WarehouseTransferLineForm.tsx
index 69c65519f1..2a657def5a 100644
--- a/apps/erp/app/modules/inventory/ui/WarehouseTransfers/WarehouseTransferLineForm.tsx
+++ b/apps/erp/app/modules/inventory/ui/WarehouseTransfers/WarehouseTransferLineForm.tsx
@@ -19,6 +19,7 @@ import {
CustomFormFields,
Hidden,
Item,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
Shelf,
Submit,
diff --git a/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceDeliveryForm.tsx b/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceDeliveryForm.tsx
index a748372720..879f81494e 100644
--- a/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceDeliveryForm.tsx
+++ b/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceDeliveryForm.tsx
@@ -13,6 +13,7 @@ import {
CustomFormFields,
Hidden,
Location,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
ShippingMethod,
Submit
diff --git a/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoicePostModal.tsx b/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoicePostModal.tsx
index fe6995e517..5739731a5e 100644
--- a/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoicePostModal.tsx
+++ b/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoicePostModal.tsx
@@ -12,8 +12,8 @@ import {
Td,
Th,
Thead,
- toast,
Tr,
+ toast,
VStack
} from "@carbon/react";
@@ -46,6 +46,7 @@ const PurchaseInvoicePostModal = ({
const fetcher = useFetcher<typeof action>();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (fetcher.data?.success) {
onClose();
diff --git a/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceProperties.tsx b/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceProperties.tsx
index 3faf89dc52..14eb8ee12f 100644
--- a/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceProperties.tsx
+++ b/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceProperties.tsx
@@ -4,18 +4,18 @@ import {
Button,
HStack,
IconButton,
- toast,
Tooltip,
TooltipContent,
TooltipTrigger,
+ toast,
VStack
} from "@carbon/react";
import { useLocale } from "@react-aria/i18n";
import { useFetcher, useParams } from "@remix-run/react";
import { useCallback, useEffect, useMemo } from "react";
import { LuCopy, LuInfo, LuLink, LuRefreshCcw } from "react-icons/lu";
-import { zfd } from "zod-form-data";
import { z } from "zod/v3";
+import { zfd } from "zod-form-data";
import { Assignee, useOptimisticAssignment } from "~/components";
import {
Currency,
@@ -60,6 +60,7 @@ const PurchaseInvoiceProperties = () => {
[locale]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdate = useCallback(
(field: keyof PurchaseInvoice, value: string | null) => {
if (value === routeData?.purchaseInvoice[field]) {
@@ -79,6 +80,7 @@ const PurchaseInvoiceProperties = () => {
[invoiceId, routeData?.purchaseInvoice]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdateCustomFields = useCallback(
(value: string) => {
const formData = new FormData();
diff --git a/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceHeader.tsx b/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceHeader.tsx
index 3ad76b62fa..34d3c10a47 100644
--- a/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceHeader.tsx
+++ b/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceHeader.tsx
@@ -9,8 +9,8 @@ import {
DropdownMenuRadioGroup,
DropdownMenuRadioItem,
DropdownMenuTrigger,
- HStack,
Heading,
+ HStack,
IconButton,
useDisclosure
} from "@carbon/react";
@@ -81,6 +81,7 @@ const SalesInvoiceHeader = () => {
}>({ salesOrders: [], shipments: [] });
// Load related documents on mount
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
async function getRelatedDocuments() {
if (!carbon || !salesInvoice.opportunityId) return;
diff --git a/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceLineForm.tsx b/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceLineForm.tsx
index 766e07ab93..d051132ccc 100644
--- a/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceLineForm.tsx
+++ b/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceLineForm.tsx
@@ -1,3 +1,5 @@
+import { useCarbon } from "@carbon/auth";
+import { ValidatedForm } from "@carbon/form";
import {
Alert,
AlertTitle,
@@ -17,9 +19,6 @@ import {
toast,
VStack
} from "@carbon/react";
-
-import { useCarbon } from "@carbon/auth";
-import { ValidatedForm } from "@carbon/form";
import { getItemReadableId } from "@carbon/utils";
import { useParams } from "@remix-run/react";
import { useEffect, useState } from "react";
@@ -31,6 +30,7 @@ import {
Hidden,
Item,
Location,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
NumberControlled,
SelectControlled,
diff --git a/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoicePostModal.tsx b/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoicePostModal.tsx
index f0bad20a96..4a4bddbb07 100644
--- a/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoicePostModal.tsx
+++ b/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoicePostModal.tsx
@@ -14,8 +14,8 @@ import {
Td,
Th,
Thead,
- toast,
Tr,
+ toast,
VStack
} from "@carbon/react";
@@ -58,6 +58,7 @@ const SalesInvoicePostModal = ({
canEmail ? "Email" : "None"
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (fetcher.data?.success) {
onClose();
diff --git a/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceProperties.tsx b/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceProperties.tsx
index 39b6ac49ea..abe3cfff9e 100644
--- a/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceProperties.tsx
+++ b/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceProperties.tsx
@@ -4,18 +4,18 @@ import {
Button,
HStack,
IconButton,
- toast,
Tooltip,
TooltipContent,
TooltipTrigger,
+ toast,
VStack
} from "@carbon/react";
import { useLocale } from "@react-aria/i18n";
import { useFetcher, useParams } from "@remix-run/react";
import { useCallback, useEffect, useMemo } from "react";
import { LuCopy, LuInfo, LuLink, LuRefreshCcw } from "react-icons/lu";
-import { zfd } from "zod-form-data";
import { z } from "zod/v3";
+import { zfd } from "zod-form-data";
import { Assignee, useOptimisticAssignment } from "~/components";
import {
Currency,
@@ -60,6 +60,7 @@ const SalesInvoiceProperties = () => {
[locale]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdate = useCallback(
(field: keyof SalesInvoice, value: string | null) => {
if (value === routeData?.salesInvoice[field]) {
@@ -79,6 +80,7 @@ const SalesInvoiceProperties = () => {
[invoiceId, routeData?.salesInvoice]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdateCustomFields = useCallback(
(value: string) => {
const formData = new FormData();
diff --git a/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceShipmentForm.tsx b/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceShipmentForm.tsx
index d19c1f807c..fefcf8c5ff 100644
--- a/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceShipmentForm.tsx
+++ b/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceShipmentForm.tsx
@@ -13,6 +13,7 @@ import {
CustomFormFields,
Hidden,
Location,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
ShippingMethod,
Submit
diff --git a/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceVoidModal.tsx b/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceVoidModal.tsx
index dfd7d2d331..9156966877 100644
--- a/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceVoidModal.tsx
+++ b/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceVoidModal.tsx
@@ -26,6 +26,7 @@ const SalesInvoiceVoidModal = ({ onClose }: { onClose: () => void }) => {
const fetcher = useFetcher<{}>();
const submitted = useRef(false);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (fetcher.state === "idle" && submitted.current) {
onClose();
diff --git a/apps/erp/app/modules/items/items.service.ts b/apps/erp/app/modules/items/items.service.ts
index 325f9475d9..7c15b5d3fe 100644
--- a/apps/erp/app/modules/items/items.service.ts
+++ b/apps/erp/app/modules/items/items.service.ts
@@ -1233,6 +1233,7 @@ function getMethodTreeArrayToTree(items: Method[]): MethodTreeItem[] {
lookup[itemId] = { id: itemId, children: [] };
}
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
lookup[itemId]["data"] = item;
const treeItem = lookup[itemId];
@@ -1245,6 +1246,7 @@ function getMethodTreeArrayToTree(items: Method[]): MethodTreeItem[] {
lookup[parentId] = { id: parentId, children: [] };
}
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
lookup[parentId]["children"].push(treeItem);
}
}
@@ -2390,6 +2392,7 @@ export async function upsertMakeMethodVersion(
if (currentMakeMethod.error) return currentMakeMethod;
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, version, ...data } = currentMakeMethod.data;
const insert = await client
diff --git a/apps/erp/app/modules/items/ui/Consumables/ConsumableForm.tsx b/apps/erp/app/modules/items/ui/Consumables/ConsumableForm.tsx
index 9885cf0dec..0605c098e6 100644
--- a/apps/erp/app/modules/items/ui/Consumables/ConsumableForm.tsx
+++ b/apps/erp/app/modules/items/ui/Consumables/ConsumableForm.tsx
@@ -1,5 +1,6 @@
import { ValidatedForm } from "@carbon/form";
import {
+ cn,
ModalCard,
ModalCardBody,
ModalCardContent,
@@ -8,7 +9,6 @@ import {
ModalCardHeader,
ModalCardProvider,
ModalCardTitle,
- cn,
toast
} from "@carbon/react";
import { useFetcher } from "@remix-run/react";
@@ -21,6 +21,7 @@ import {
Hidden,
Input,
InputControlled,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
Select,
Submit,
diff --git a/apps/erp/app/modules/items/ui/Consumables/ConsumableProperties.tsx b/apps/erp/app/modules/items/ui/Consumables/ConsumableProperties.tsx
index 872bb50008..3bd68ec6fb 100644
--- a/apps/erp/app/modules/items/ui/Consumables/ConsumableProperties.tsx
+++ b/apps/erp/app/modules/items/ui/Consumables/ConsumableProperties.tsx
@@ -10,19 +10,20 @@ import {
DropdownMenuItem,
DropdownMenuTrigger,
HStack,
- toast,
Tooltip,
TooltipContent,
TooltipTrigger,
+ toast,
VStack
} from "@carbon/react";
import { Await, useFetcher, useParams } from "@remix-run/react";
import { Suspense, useCallback, useEffect } from "react";
import { LuCopy, LuLink } from "react-icons/lu";
-import { zfd } from "zod-form-data";
import { z } from "zod/v3";
+import { zfd } from "zod-form-data";
import { MethodBadge, MethodIcon, TrackingTypeIcon } from "~/components";
import { Enumerable } from "~/components/Enumerable";
+// biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
import { Boolean, Tags } from "~/components/Form";
import CustomFormInlineFields from "~/components/Form/CustomFormInlineFields";
import { ItemThumbnailUpload } from "~/components/ItemThumnailUpload";
@@ -76,6 +77,7 @@ const ConsumableProperties = () => {
toast.error(fetcher.data.error.message);
}
}, [fetcher.data]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdate = useCallback(
(
field:
@@ -101,6 +103,7 @@ const ConsumableProperties = () => {
[itemId]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdateTags = useCallback(
(value: string[]) => {
const formData = new FormData();
@@ -121,6 +124,7 @@ const ConsumableProperties = () => {
[routeData?.consumableSummary?.readableId]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdateCustomFields = useCallback(
(value: string) => {
const formData = new FormData();
diff --git a/apps/erp/app/modules/items/ui/Consumables/ConsumablesTable.tsx b/apps/erp/app/modules/items/ui/Consumables/ConsumablesTable.tsx
index 9079e12f45..9ef5bb071d 100644
--- a/apps/erp/app/modules/items/ui/Consumables/ConsumablesTable.tsx
+++ b/apps/erp/app/modules/items/ui/Consumables/ConsumablesTable.tsx
@@ -276,6 +276,7 @@ const ConsumablesTable = memo(
toast.error(fetcher.data.error.message);
}
}, [fetcher.data]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onBulkUpdate = useCallback(
(
selectedRows: typeof data,
diff --git a/apps/erp/app/modules/items/ui/Item/BillOfMaterial.tsx b/apps/erp/app/modules/items/ui/Item/BillOfMaterial.tsx
index 0aa8d9952f..051f6db518 100644
--- a/apps/erp/app/modules/items/ui/Item/BillOfMaterial.tsx
+++ b/apps/erp/app/modules/items/ui/Item/BillOfMaterial.tsx
@@ -1,5 +1,6 @@
"use client";
import { useCarbon } from "@carbon/auth";
+import type { Database } from "@carbon/database";
import { ValidatedForm } from "@carbon/form";
import {
Badge,
@@ -18,14 +19,15 @@ import {
HStack,
IconButton,
Label,
- toast,
Tooltip,
TooltipContent,
TooltipTrigger,
+ toast,
useDisclosure,
useThrottle,
VStack
} from "@carbon/react";
+import { getItemReadableId } from "@carbon/utils";
import {
Link,
useFetcher,
@@ -54,36 +56,34 @@ import {
} from "react-icons/lu";
import type { z } from "zod/v3";
import { MethodIcon, MethodItemTypeIcon, TrackingTypeIcon } from "~/components";
+import { ConfigurationEditor } from "~/components/Configurator/ConfigurationEditor";
import type { Configuration } from "~/components/Configurator/types";
import {
DefaultMethodType,
Hidden,
Item,
Location,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
Select,
Shelf,
Submit,
UnitOfMeasure
} from "~/components/Form";
+import { useShelves } from "~/components/Form/Shelf";
+import { useUnitOfMeasure } from "~/components/Form/UnitOfMeasure";
import type {
Item as SortableItem,
SortableItemRenderProps
} from "~/components/SortableList";
import { SortableList, SortableListItem } from "~/components/SortableList";
import { usePermissions, useUser } from "~/hooks";
-
-import type { Database } from "@carbon/database";
-import { getItemReadableId } from "@carbon/utils";
-import { ConfigurationEditor } from "~/components/Configurator/ConfigurationEditor";
-import { useShelves } from "~/components/Form/Shelf";
-import { useUnitOfMeasure } from "~/components/Form/UnitOfMeasure";
import {
- methodType,
type MethodItemType,
- type MethodType
+ type MethodType,
+ methodType
} from "~/modules/shared";
-import { useBom, useItems, type Item as ItemType } from "~/stores";
+import { type Item as ItemType, useBom, useItems } from "~/stores";
import { path } from "~/utils/path";
import type { methodOperationValidator } from "../../items.models";
import { methodMaterialValidator } from "../../items.models";
diff --git a/apps/erp/app/modules/items/ui/Item/BillOfProcess.tsx b/apps/erp/app/modules/items/ui/Item/BillOfProcess.tsx
index e9bfd0b5f1..c3ee508d97 100644
--- a/apps/erp/app/modules/items/ui/Item/BillOfProcess.tsx
+++ b/apps/erp/app/modules/items/ui/Item/BillOfProcess.tsx
@@ -13,8 +13,8 @@ import {
CardContent,
CardHeader,
CardTitle,
- cn,
Count,
+ cn,
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
@@ -24,12 +24,12 @@ import {
IconButton,
Label,
Loading,
- toast,
ToggleGroup,
ToggleGroupItem,
Tooltip,
TooltipContent,
TooltipTrigger,
+ toast,
useDebounce,
useDisclosure,
useThrottle,
@@ -74,6 +74,7 @@ import type { Configuration } from "~/components/Configurator/types";
import {
Hidden,
InputControlled,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
NumberControlled,
Process,
@@ -2015,6 +2016,7 @@ function AttributesListItem({
const submitted = useRef(false);
const fetcher = useFetcher<typeof editMethodOperationStepAction>();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (submitted.current && fetcher.state === "idle") {
disclosure.onClose();
@@ -2503,6 +2505,7 @@ function ParametersListItem({
const submitted = useRef(false);
const fetcher = useFetcher<typeof editMethodOperationParameterAction>();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (submitted.current && fetcher.state === "idle") {
disclosure.onClose();
@@ -2774,6 +2777,7 @@ function ToolsListItem({
const submitted = useRef(false);
const fetcher = useFetcher<typeof editMethodOperationToolAction>();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (submitted.current && fetcher.state === "idle") {
disclosure.onClose();
diff --git a/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsx b/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsx
index a6f6d6da35..994bfec7c9 100644
--- a/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsx
+++ b/apps/erp/app/modules/items/ui/Item/BoMExplorer.tsx
@@ -1,7 +1,7 @@
import {
Badge,
- cn,
Copy,
+ cn,
DropdownMenu,
DropdownMenuContent,
DropdownMenuIcon,
@@ -86,6 +86,7 @@ const BoMExplorer = ({
} = useTree({
tree: methods,
selectedId,
+ // biome-ignore lint/suspicious/noEmptyBlockStatements: suppressed due to migration
onSelectedIdChanged: () => {},
estimatedRowHeight: () => 40,
parentRef,
@@ -393,6 +394,7 @@ function NodeData({ node }: { node: FlatTreeItem<Method> }) {
const integrations = useIntegrations();
const onShapeState = integrations.has("onshape")
? // @ts-expect-error
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
node.data.externalId?.["onshapeData"]?.["State"]
: null;
@@ -417,6 +419,7 @@ function NodePreview({ node }: { node: FlatTreeItem<Method> }) {
const integrations = useIntegrations();
const onShapeState = integrations.has("onshape")
? // @ts-expect-error
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
node.data.externalId?.["onshapeData"]?.["State"]
: null;
diff --git a/apps/erp/app/modules/items/ui/Item/ItemCostingForm.tsx b/apps/erp/app/modules/items/ui/Item/ItemCostingForm.tsx
index 4e16eb3fba..e555874b37 100644
--- a/apps/erp/app/modules/items/ui/Item/ItemCostingForm.tsx
+++ b/apps/erp/app/modules/items/ui/Item/ItemCostingForm.tsx
@@ -7,6 +7,7 @@ import {
CardTitle
} from "@carbon/react";
import type { z } from "zod/v3";
+// biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
import { CustomFormFields, Hidden, Number, Submit } from "~/components/Form";
import { usePermissions, useUser } from "~/hooks";
import { itemCostValidator } from "../../items.models";
diff --git a/apps/erp/app/modules/items/ui/Item/ItemForm.tsx b/apps/erp/app/modules/items/ui/Item/ItemForm.tsx
index ed05b0eacd..0c3b22da5a 100644
--- a/apps/erp/app/modules/items/ui/Item/ItemForm.tsx
+++ b/apps/erp/app/modules/items/ui/Item/ItemForm.tsx
@@ -22,6 +22,7 @@ import { LuEllipsisVertical } from "react-icons/lu";
import type { z } from "zod/v3";
import { TrackingTypeIcon } from "~/components";
import {
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Boolean,
DefaultMethodType,
Hidden,
diff --git a/apps/erp/app/modules/items/ui/Item/ItemManufacturingForm.tsx b/apps/erp/app/modules/items/ui/Item/ItemManufacturingForm.tsx
index feb5c59779..bac7fc404d 100644
--- a/apps/erp/app/modules/items/ui/Item/ItemManufacturingForm.tsx
+++ b/apps/erp/app/modules/items/ui/Item/ItemManufacturingForm.tsx
@@ -9,9 +9,11 @@ import {
import { useFetcher, useParams } from "@remix-run/react";
import type { z } from "zod/v3";
import {
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Boolean,
CustomFormFields,
Hidden,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
Submit
} from "~/components/Form";
diff --git a/apps/erp/app/modules/items/ui/Item/ItemPlanningChart.tsx b/apps/erp/app/modules/items/ui/Item/ItemPlanningChart.tsx
index c0d750f874..fc767cd864 100644
--- a/apps/erp/app/modules/items/ui/Item/ItemPlanningChart.tsx
+++ b/apps/erp/app/modules/items/ui/Item/ItemPlanningChart.tsx
@@ -160,6 +160,7 @@ export const ItemPlanningChart = ({
(order.quantity ?? 0) - (order.existingQuantity ?? 0);
const inventoryQuantityDelta = purchaseQuantityDelta * conversionFactor;
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
groupedData[periodId]["Planned"] += inventoryQuantityDelta;
}
});
@@ -216,6 +217,7 @@ export const ItemPlanningChart = ({
runningProjection +=
period["Purchase Order"] +
period["Production Order"] +
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
period["Planned"];
// Subtract demand (all values are already negative)
runningProjection +=
diff --git a/apps/erp/app/modules/items/ui/Item/ItemPlanningForm.tsx b/apps/erp/app/modules/items/ui/Item/ItemPlanningForm.tsx
index 7faa502a62..c649ac98bc 100644
--- a/apps/erp/app/modules/items/ui/Item/ItemPlanningForm.tsx
+++ b/apps/erp/app/modules/items/ui/Item/ItemPlanningForm.tsx
@@ -15,6 +15,7 @@ import type { z } from "zod/v3";
import {
CustomFormFields,
Hidden,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
Select as SelectForm,
Submit
diff --git a/apps/erp/app/modules/items/ui/Item/ItemPurchasingForm.tsx b/apps/erp/app/modules/items/ui/Item/ItemPurchasingForm.tsx
index e76b39e935..f44506e114 100644
--- a/apps/erp/app/modules/items/ui/Item/ItemPurchasingForm.tsx
+++ b/apps/erp/app/modules/items/ui/Item/ItemPurchasingForm.tsx
@@ -12,6 +12,7 @@ import type { z } from "zod/v3";
import {
ConversionFactor,
Hidden,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
Submit,
UnitOfMeasure
diff --git a/apps/erp/app/modules/items/ui/Item/ItemSalePriceForm.tsx b/apps/erp/app/modules/items/ui/Item/ItemSalePriceForm.tsx
index eec5168c25..3f89e61dc1 100644
--- a/apps/erp/app/modules/items/ui/Item/ItemSalePriceForm.tsx
+++ b/apps/erp/app/modules/items/ui/Item/ItemSalePriceForm.tsx
@@ -7,6 +7,7 @@ import {
CardTitle
} from "@carbon/react";
import type { z } from "zod/v3";
+// biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
import { CustomFormFields, Hidden, Number, Submit } from "~/components/Form";
import { usePermissions, useUser } from "~/hooks";
import { itemUnitSalePriceValidator } from "../../items.models";
diff --git a/apps/erp/app/modules/items/ui/Item/MakeMethodTools.tsx b/apps/erp/app/modules/items/ui/Item/MakeMethodTools.tsx
index 5e324ef82f..56732a33b3 100644
--- a/apps/erp/app/modules/items/ui/Item/MakeMethodTools.tsx
+++ b/apps/erp/app/modules/items/ui/Item/MakeMethodTools.tsx
@@ -1,3 +1,4 @@
+// biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
import { Number, Submit, ValidatedForm } from "@carbon/form";
import {
Alert,
@@ -5,6 +6,7 @@ import {
Badge,
Button,
Checkbox,
+ cn,
DropdownMenu,
DropdownMenuContent,
DropdownMenuIcon,
@@ -25,10 +27,9 @@ import {
ModalFooter,
ModalHeader,
ModalTitle,
- VStack,
- cn,
toast,
- useDisclosure
+ useDisclosure,
+ VStack
} from "@carbon/react";
import { Link, useFetcher, useParams } from "@remix-run/react";
import { useEffect, useState } from "react";
diff --git a/apps/erp/app/modules/items/ui/Item/RevisionForm.tsx b/apps/erp/app/modules/items/ui/Item/RevisionForm.tsx
index 5c682770be..a7069c8dba 100644
--- a/apps/erp/app/modules/items/ui/Item/RevisionForm.tsx
+++ b/apps/erp/app/modules/items/ui/Item/RevisionForm.tsx
@@ -44,6 +44,7 @@ const RevisionForm = ({
? !permissions.can("update", "parts")
: !permissions.can("create", "parts");
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (fetcher.data?.success) {
onClose();
diff --git a/apps/erp/app/modules/items/ui/Item/SupplierPartForm.tsx b/apps/erp/app/modules/items/ui/Item/SupplierPartForm.tsx
index 92cbfdd6be..b2d7336d1c 100644
--- a/apps/erp/app/modules/items/ui/Item/SupplierPartForm.tsx
+++ b/apps/erp/app/modules/items/ui/Item/SupplierPartForm.tsx
@@ -19,6 +19,7 @@ import {
CustomFormFields,
Hidden,
Input,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
Submit,
Supplier,
diff --git a/apps/erp/app/modules/items/ui/Materials/MaterialForm.tsx b/apps/erp/app/modules/items/ui/Materials/MaterialForm.tsx
index 96ed251438..91fb1a4059 100644
--- a/apps/erp/app/modules/items/ui/Materials/MaterialForm.tsx
+++ b/apps/erp/app/modules/items/ui/Materials/MaterialForm.tsx
@@ -1,5 +1,7 @@
+// biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
import { Array, ValidatedForm } from "@carbon/form";
import {
+ cn,
ModalCard,
ModalCardBody,
ModalCardContent,
@@ -8,7 +10,6 @@ import {
ModalCardHeader,
ModalCardProvider,
ModalCardTitle,
- cn,
toast
} from "@carbon/react";
import { getMaterialDescription, getMaterialId } from "@carbon/utils";
@@ -22,6 +23,7 @@ import {
DefaultMethodType,
Hidden,
InputControlled,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
Select,
Submit,
diff --git a/apps/erp/app/modules/items/ui/Materials/MaterialProperties.tsx b/apps/erp/app/modules/items/ui/Materials/MaterialProperties.tsx
index df4faf0aca..fed095851d 100644
--- a/apps/erp/app/modules/items/ui/Materials/MaterialProperties.tsx
+++ b/apps/erp/app/modules/items/ui/Materials/MaterialProperties.tsx
@@ -18,19 +18,20 @@ import {
ModalFooter,
ModalHeader,
ModalTitle,
- toast,
Tooltip,
TooltipContent,
TooltipTrigger,
+ toast,
useDisclosure,
VStack
} from "@carbon/react";
import { Await, useFetcher, useParams } from "@remix-run/react";
import { Suspense, useCallback, useEffect, useState } from "react";
import { LuCopy, LuKeySquare, LuLink, LuTriangleAlert } from "react-icons/lu";
-import { zfd } from "zod-form-data";
import { z } from "zod/v3";
+import { zfd } from "zod-form-data";
import { MethodBadge, MethodIcon, TrackingTypeIcon } from "~/components";
+// biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
import { Boolean, Tags, UnitOfMeasure } from "~/components/Form";
import CustomFormInlineFields from "~/components/Form/CustomFormInlineFields";
import MaterialDimension from "~/components/Form/MaterialDimension";
@@ -109,6 +110,7 @@ const MaterialProperties = () => {
const settings = useSettings();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdate = useCallback(
(
field:
@@ -187,6 +189,7 @@ const MaterialProperties = () => {
[confirmDisclosure, onUpdate, settings.materialGeneratedIds]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdateTags = useCallback(
(value: string[]) => {
const formData = new FormData();
@@ -206,6 +209,7 @@ const MaterialProperties = () => {
[routeData?.materialSummary?.readableId]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdateCustomFields = useCallback(
(value: string) => {
const formData = new FormData();
diff --git a/apps/erp/app/modules/items/ui/Materials/MaterialsTable.tsx b/apps/erp/app/modules/items/ui/Materials/MaterialsTable.tsx
index ba70468d21..e3a10ad3c1 100644
--- a/apps/erp/app/modules/items/ui/Materials/MaterialsTable.tsx
+++ b/apps/erp/app/modules/items/ui/Materials/MaterialsTable.tsx
@@ -408,6 +408,7 @@ const MaterialsTable = memo(({ data, tags, count }: MaterialsTableProps) => {
}
}, [fetcher.data]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onBulkUpdate = useCallback(
(
selectedRows: typeof data,
diff --git a/apps/erp/app/modules/items/ui/Parts/PartForm.tsx b/apps/erp/app/modules/items/ui/Parts/PartForm.tsx
index 05fe95ee26..d86e96b777 100644
--- a/apps/erp/app/modules/items/ui/Parts/PartForm.tsx
+++ b/apps/erp/app/modules/items/ui/Parts/PartForm.tsx
@@ -2,6 +2,7 @@ import { useCarbon } from "@carbon/auth";
import { ValidatedForm } from "@carbon/form";
import {
Button,
+ cn,
Loading,
ModalCard,
ModalCardBody,
@@ -11,9 +12,8 @@ import {
ModalCardHeader,
ModalCardProvider,
ModalCardTitle,
- VStack,
- cn,
- toast
+ toast,
+ VStack
} from "@carbon/react";
import { convertKbToString, supportedModelTypes } from "@carbon/utils";
import { useFetcher } from "@remix-run/react";
@@ -31,6 +31,7 @@ import {
Hidden,
Input,
InputControlled,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
Select,
Submit,
diff --git a/apps/erp/app/modules/items/ui/Parts/PartProperties.tsx b/apps/erp/app/modules/items/ui/Parts/PartProperties.tsx
index 25d8da9486..fbb6cd6d32 100644
--- a/apps/erp/app/modules/items/ui/Parts/PartProperties.tsx
+++ b/apps/erp/app/modules/items/ui/Parts/PartProperties.tsx
@@ -10,10 +10,10 @@ import {
DropdownMenuItem,
DropdownMenuTrigger,
HStack,
- toast,
Tooltip,
TooltipContent,
TooltipTrigger,
+ toast,
VStack
} from "@carbon/react";
import { Await, Link, useFetcher, useParams } from "@remix-run/react";
@@ -26,9 +26,10 @@ import {
LuLink,
LuMove3D
} from "react-icons/lu";
-import { zfd } from "zod-form-data";
import { z } from "zod/v3";
+import { zfd } from "zod-form-data";
import { MethodBadge, MethodIcon, TrackingTypeIcon } from "~/components";
+// biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
import { Boolean, Tags, UnitOfMeasure } from "~/components/Form";
import CustomFormInlineFields from "~/components/Form/CustomFormInlineFields";
import { ReplenishmentSystemIcon } from "~/components/Icons";
@@ -89,6 +90,7 @@ const PartProperties = () => {
}
}, [fetcher.data]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdate = useCallback(
(
field:
@@ -116,6 +118,7 @@ const PartProperties = () => {
[routeData?.partSummary?.id]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdateTags = useCallback(
(value: string[]) => {
const formData = new FormData();
@@ -135,6 +138,7 @@ const PartProperties = () => {
[routeData?.partSummary?.readableId]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdateCustomFields = useCallback(
(value: string) => {
const formData = new FormData();
diff --git a/apps/erp/app/modules/items/ui/Parts/PartsTable.tsx b/apps/erp/app/modules/items/ui/Parts/PartsTable.tsx
index 05e055c99b..00e35bfb5a 100644
--- a/apps/erp/app/modules/items/ui/Parts/PartsTable.tsx
+++ b/apps/erp/app/modules/items/ui/Parts/PartsTable.tsx
@@ -285,6 +285,7 @@ const PartsTable = memo(({ data, tags, count }: PartsTableProps) => {
}
}, [fetcher.data]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onBulkUpdate = useCallback(
(
selectedRows: typeof data,
diff --git a/apps/erp/app/modules/items/ui/Tools/ToolForm.tsx b/apps/erp/app/modules/items/ui/Tools/ToolForm.tsx
index 07e2463d5d..f9a150f58f 100644
--- a/apps/erp/app/modules/items/ui/Tools/ToolForm.tsx
+++ b/apps/erp/app/modules/items/ui/Tools/ToolForm.tsx
@@ -2,6 +2,7 @@ import { useCarbon } from "@carbon/auth";
import { ValidatedForm } from "@carbon/form";
import {
Button,
+ cn,
Loading,
ModalCard,
ModalCardBody,
@@ -11,9 +12,8 @@ import {
ModalCardHeader,
ModalCardProvider,
ModalCardTitle,
- VStack,
- cn,
- toast
+ toast,
+ VStack
} from "@carbon/react";
import { convertKbToString, supportedModelTypes } from "@carbon/utils";
import { useFetcher } from "@remix-run/react";
@@ -30,6 +30,7 @@ import {
Hidden,
Input,
InputControlled,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
Select,
Submit,
diff --git a/apps/erp/app/modules/items/ui/Tools/ToolProperties.tsx b/apps/erp/app/modules/items/ui/Tools/ToolProperties.tsx
index 0fc776c959..8430472854 100644
--- a/apps/erp/app/modules/items/ui/Tools/ToolProperties.tsx
+++ b/apps/erp/app/modules/items/ui/Tools/ToolProperties.tsx
@@ -10,20 +10,21 @@ import {
DropdownMenuItem,
DropdownMenuTrigger,
HStack,
- toast,
Tooltip,
TooltipContent,
TooltipTrigger,
+ toast,
VStack
} from "@carbon/react";
import { Await, useFetcher, useParams } from "@remix-run/react";
import type { PostgrestResponse } from "@supabase/supabase-js";
import { Suspense, useCallback, useEffect } from "react";
import { LuCopy, LuKeySquare, LuLink } from "react-icons/lu";
-import { zfd } from "zod-form-data";
import { z } from "zod/v3";
+import { zfd } from "zod-form-data";
import { MethodBadge, MethodIcon, TrackingTypeIcon } from "~/components";
import { Enumerable } from "~/components/Enumerable";
+// biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
import { Boolean, Tags } from "~/components/Form";
import CustomFormInlineFields from "~/components/Form/CustomFormInlineFields";
import { ReplenishmentSystemIcon } from "~/components/Icons";
@@ -84,6 +85,7 @@ const ToolProperties = () => {
}
}, [fetcher.data]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdate = useCallback(
(
field:
@@ -109,6 +111,7 @@ const ToolProperties = () => {
[itemId]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdateTags = useCallback(
(value: string[]) => {
const formData = new FormData();
@@ -128,6 +131,7 @@ const ToolProperties = () => {
[routeData?.toolSummary?.readableId]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdateCustomFields = useCallback(
(value: string) => {
const formData = new FormData();
diff --git a/apps/erp/app/modules/items/ui/Tools/ToolsTable.tsx b/apps/erp/app/modules/items/ui/Tools/ToolsTable.tsx
index 2d7f27a171..d94807ad87 100644
--- a/apps/erp/app/modules/items/ui/Tools/ToolsTable.tsx
+++ b/apps/erp/app/modules/items/ui/Tools/ToolsTable.tsx
@@ -299,6 +299,7 @@ const ToolsTable = memo(({ data, tags, count }: ToolsTableProps) => {
}
}, [fetcher.data]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onBulkUpdate = useCallback(
(
selectedRows: typeof data,
diff --git a/apps/erp/app/modules/people/ui/Attributes/AttributeCategoriesTable.tsx b/apps/erp/app/modules/people/ui/Attributes/AttributeCategoriesTable.tsx
index 007d7b20ad..ce31e08572 100644
--- a/apps/erp/app/modules/people/ui/Attributes/AttributeCategoriesTable.tsx
+++ b/apps/erp/app/modules/people/ui/Attributes/AttributeCategoriesTable.tsx
@@ -111,6 +111,7 @@ const AttributeCategoriesTable = memo(
];
}, [navigate, params]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const renderContextMenu = useCallback(
(row: AttributeCategory) => {
return (
diff --git a/apps/erp/app/modules/people/ui/Attributes/AttributeCategoryForm.tsx b/apps/erp/app/modules/people/ui/Attributes/AttributeCategoryForm.tsx
index cbc70c5f2b..31ce7592d4 100644
--- a/apps/erp/app/modules/people/ui/Attributes/AttributeCategoryForm.tsx
+++ b/apps/erp/app/modules/people/ui/Attributes/AttributeCategoryForm.tsx
@@ -11,6 +11,7 @@ import {
VStack
} from "@carbon/react";
import type { z } from "zod/v3";
+// biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
import { Boolean, EmojiPicker, Hidden, Input, Submit } from "~/components/Form";
import { usePermissions } from "~/hooks";
diff --git a/apps/erp/app/modules/people/ui/Attributes/AttributeForm.tsx b/apps/erp/app/modules/people/ui/Attributes/AttributeForm.tsx
index 241f7c6e89..122e9ee6a5 100644
--- a/apps/erp/app/modules/people/ui/Attributes/AttributeForm.tsx
+++ b/apps/erp/app/modules/people/ui/Attributes/AttributeForm.tsx
@@ -1,3 +1,4 @@
+import { ValidatedForm } from "@carbon/form";
import {
Button,
Drawer,
@@ -9,12 +10,12 @@ import {
HStack,
VStack
} from "@carbon/react";
-
-import { ValidatedForm } from "@carbon/form";
import { useState } from "react";
import type { z } from "zod/v3";
import {
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Array,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Boolean,
Hidden,
Input,
diff --git a/apps/erp/app/modules/people/ui/Shifts/ShiftForm.tsx b/apps/erp/app/modules/people/ui/Shifts/ShiftForm.tsx
index 02088ffab5..53c0ee6b8e 100644
--- a/apps/erp/app/modules/people/ui/Shifts/ShiftForm.tsx
+++ b/apps/erp/app/modules/people/ui/Shifts/ShiftForm.tsx
@@ -15,6 +15,7 @@ import {
import { useNavigate } from "@remix-run/react";
import type { z } from "zod/v3";
import {
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Boolean,
CustomFormFields,
Hidden,
diff --git a/apps/erp/app/modules/production/production.service.ts b/apps/erp/app/modules/production/production.service.ts
index 25156f4b25..ace72e91b5 100644
--- a/apps/erp/app/modules/production/production.service.ts
+++ b/apps/erp/app/modules/production/production.service.ts
@@ -1,5 +1,5 @@
import { getCarbonServiceRole } from "@carbon/auth";
-import { fetchAllFromTable, type Database, type Json } from "@carbon/database";
+import { type Database, fetchAllFromTable, type Json } from "@carbon/database";
import type { JSONContent } from "@carbon/react";
import { parseDate } from "@internationalized/date";
import type { FileObject, StorageError } from "@supabase/storage-js";
@@ -901,6 +901,7 @@ function getJobMethodTreeArrayToTree(items: JobMethod[]): JobMethodTreeItem[] {
lookup[itemId] = { id: itemId, children: [] };
}
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
lookup[itemId]["data"] = item;
const treeItem = lookup[itemId];
@@ -913,6 +914,7 @@ function getJobMethodTreeArrayToTree(items: JobMethod[]): JobMethodTreeItem[] {
lookup[parentId] = { id: parentId, children: [] };
}
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
lookup[parentId]["children"].push(treeItem);
}
}
@@ -2252,6 +2254,7 @@ export async function upsertProcedure(
attributes.length > 0
? client.from("procedureStep").insert(
attributes.map((attribute) => {
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, procedureId, ...rest } = attribute;
return {
...rest,
@@ -2264,6 +2267,7 @@ export async function upsertProcedure(
parameters.length > 0
? client.from("procedureParameter").insert(
parameters.map((parameter) => {
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, procedureId, ...rest } = parameter;
return {
...rest,
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobBillOfMaterial.tsx b/apps/erp/app/modules/production/ui/Jobs/JobBillOfMaterial.tsx
index d214ad26fa..79cec9fe1d 100644
--- a/apps/erp/app/modules/production/ui/Jobs/JobBillOfMaterial.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/JobBillOfMaterial.tsx
@@ -18,10 +18,10 @@ import {
HStack,
IconButton,
Label,
- toast,
Tooltip,
TooltipContent,
TooltipTrigger,
+ toast,
useDebounce,
useDisclosure,
VStack
@@ -51,6 +51,7 @@ import {
Hidden,
InputControlled,
Item,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
NumberControlled,
Select,
@@ -67,7 +68,7 @@ import { SortableList, SortableListItem } from "~/components/SortableList";
import { usePermissions, useRouteData, useUser } from "~/hooks";
import { getLinkToItemDetails } from "~/modules/items/ui/Item/ItemForm";
import type { MethodItemType, MethodType } from "~/modules/shared";
-import { useBom, useItems, type Item as ItemType } from "~/stores";
+import { type Item as ItemType, useBom, useItems } from "~/stores";
import { path } from "~/utils/path";
import type { jobOperationValidator } from "../../production.models";
import {
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx b/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx
index 0bf58929b5..a085ed3e46 100644
--- a/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx
@@ -16,8 +16,8 @@ import {
CardHeader,
CardTitle,
Checkbox,
- cn,
Count,
+ cn,
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
@@ -35,12 +35,12 @@ import {
ModalHeader,
ModalTitle,
ScrollArea,
- toast,
ToggleGroup,
ToggleGroupItem,
Tooltip,
TooltipContent,
TooltipTrigger,
+ toast,
useDebounce,
useDisclosure,
useMount,
@@ -93,6 +93,7 @@ import Activity from "~/components/Activity";
import {
Hidden,
InputControlled,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
NumberControlled,
Process,
@@ -369,6 +370,7 @@ const JobBillOfProcess = ({
salesOrderLineId,
customerId
}: JobBillOfProcessProps) => {
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { carbon, accessToken } = useCarbon();
const sortOrderFetcher = useFetcher<{}>();
const deleteOperationFetcher = useFetcher<{ success: boolean }>();
@@ -1358,11 +1360,13 @@ function StepsListItem({
}
try {
return JSON.parse(attribute.description);
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
} catch (e) {
return {};
}
});
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (submitted.current && fetcher.state === "idle") {
disclosure.onClose();
@@ -1872,6 +1876,7 @@ function ParametersListItem({
const submitted = useRef(false);
const fetcher = useFetcher<typeof editJobOperationParameterAction>();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (submitted.current && fetcher.state === "idle") {
disclosure.onClose();
@@ -2897,6 +2902,7 @@ function ToolsListItem({
const submitted = useRef(false);
const fetcher = useFetcher<typeof editJobOperationToolAction>();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (submitted.current && fetcher.state === "idle") {
disclosure.onClose();
@@ -3111,6 +3117,7 @@ function OperationChat({ jobOperationId }: { jobOperationId: string }) {
const [employees] = usePeople();
const [messages, setMessages] = useState<Message[]>([]);
const [isLoading, setIsLoading] = useState(false);
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { carbon, accessToken } = useCarbon();
const fetchChat = async () => {
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobBoMExplorer.tsx b/apps/erp/app/modules/production/ui/Jobs/JobBoMExplorer.tsx
index 1a897289c0..89d57e109d 100644
--- a/apps/erp/app/modules/production/ui/Jobs/JobBoMExplorer.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/JobBoMExplorer.tsx
@@ -1,7 +1,7 @@
import {
Badge,
- cn,
Copy,
+ cn,
DropdownMenu,
DropdownMenuContent,
DropdownMenuIcon,
@@ -70,6 +70,7 @@ const JobBoMExplorer = ({ method }: JobBoMExplorerProps) => {
virtualizer
} = useTree({
tree: method,
+ // biome-ignore lint/suspicious/noEmptyBlockStatements: suppressed due to migration
onSelectedIdChanged: () => {},
estimatedRowHeight: () => 32,
parentRef,
@@ -89,6 +90,7 @@ const JobBoMExplorer = ({ method }: JobBoMExplorerProps) => {
});
const [selectedMaterialId, setSelectedMaterialId] = useBom();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (selectedMaterialId) {
const node = method.find(
@@ -317,6 +319,7 @@ function NodeData({ node }: { node: FlatTreeItem<JobMethod> }) {
const integrations = useIntegrations();
const onShapeState = integrations.has("onshape")
? // @ts-expect-error
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
node.data.externalId?.["onshapeData"]?.["State"]
: null;
@@ -340,6 +343,7 @@ function NodePreview({ node }: { node: FlatTreeItem<JobMethod> }) {
const integrations = useIntegrations();
const onShapeState = integrations.has("onshape")
? // @ts-expect-error
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
node.data.externalId?.["onshapeData"]?.["State"]
: null;
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobDocuments.tsx b/apps/erp/app/modules/production/ui/Jobs/JobDocuments.tsx
index 1db2c74f03..759a969c3f 100644
--- a/apps/erp/app/modules/production/ui/Jobs/JobDocuments.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/JobDocuments.tsx
@@ -23,8 +23,8 @@ import {
Td,
Th,
Thead,
- toast,
Tr,
+ toast,
VStack
} from "@carbon/react";
import { convertKbToString } from "@carbon/utils";
@@ -132,6 +132,7 @@ const useJobDocuments = ({
[]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const download = useCallback(
async (file: FileObject & { bucket?: string }) => {
const bucket = file.bucket === "parts" ? "parts" : "job";
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobEstimatesVsActuals.tsx b/apps/erp/app/modules/production/ui/Jobs/JobEstimatesVsActuals.tsx
index e955799d5d..9aff838e2b 100644
--- a/apps/erp/app/modules/production/ui/Jobs/JobEstimatesVsActuals.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/JobEstimatesVsActuals.tsx
@@ -24,11 +24,11 @@ import {
Tfoot,
Th,
Thead,
- toast,
Tooltip,
TooltipContent,
TooltipTrigger,
Tr,
+ toast,
useDisclosure,
VStack
} from "@carbon/react";
@@ -129,6 +129,7 @@ const JobEstimatesVsActuals = ({
);
};
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
getCurrentUnitCosts(materials.map((m) => m.itemId));
}, [materials]);
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobMaterialForm.tsx b/apps/erp/app/modules/production/ui/Jobs/JobMaterialForm.tsx
index 53482763f3..d0c425d457 100644
--- a/apps/erp/app/modules/production/ui/Jobs/JobMaterialForm.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/JobMaterialForm.tsx
@@ -1,3 +1,5 @@
+import { useCarbon } from "@carbon/auth";
+import { ValidatedForm } from "@carbon/form";
import {
Card,
CardContent,
@@ -9,16 +11,13 @@ import {
toast,
VStack
} from "@carbon/react";
+import { getItemReadableId } from "@carbon/utils";
import {
useFetcher,
useLocation,
useNavigate,
useParams
} from "@remix-run/react";
-
-import { useCarbon } from "@carbon/auth";
-import { ValidatedForm } from "@carbon/form";
-import { getItemReadableId } from "@carbon/utils";
import { useEffect, useState } from "react";
import type { z } from "zod/v3";
import {
@@ -26,6 +25,7 @@ import {
Hidden,
InputControlled,
Item,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
NumberControlled,
Select,
@@ -130,6 +130,7 @@ const JobMaterialForm = ({
const [, setSelectedMaterialId] = useBom();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
const newPath = path.to.jobMakeMethod(
jobId,
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobMaterialsTable.tsx b/apps/erp/app/modules/production/ui/Jobs/JobMaterialsTable.tsx
index 8d1b208a89..1a17779d6d 100644
--- a/apps/erp/app/modules/production/ui/Jobs/JobMaterialsTable.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/JobMaterialsTable.tsx
@@ -159,6 +159,7 @@ const JobMaterialsTable = memo(({ data, count }: JobMaterialsTableProps) => {
}
});
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const columns = useMemo<ColumnDef<JobMaterial>[]>(() => {
return [
{
@@ -511,6 +512,7 @@ const StockTransferSessionWidget = ({ jobId }: { jobId: string }) => {
setStockTransferSession({ items: [] });
};
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (fetcher.data?.success) {
onClearAll();
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobOperationsTable.tsx b/apps/erp/app/modules/production/ui/Jobs/JobOperationsTable.tsx
index c25445f4cd..53a445a1cc 100644
--- a/apps/erp/app/modules/production/ui/Jobs/JobOperationsTable.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/JobOperationsTable.tsx
@@ -215,6 +215,7 @@ const JobOperationsTable = memo(({ data, count }: JobOperationsTableProps) => {
const pendingItems = usePendingItems();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const optimisticData = useMemo<typeof data>(() => {
if (pendingItems.length === 0) return data;
return data.map((item) => {
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobProperties.tsx b/apps/erp/app/modules/production/ui/Jobs/JobProperties.tsx
index b57b4b889d..9d5d5a4212 100644
--- a/apps/erp/app/modules/production/ui/Jobs/JobProperties.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/JobProperties.tsx
@@ -10,10 +10,10 @@ import {
Badge,
Button,
HStack,
- toast,
Tooltip,
TooltipContent,
TooltipTrigger,
+ toast,
VStack
} from "@carbon/react";
import { Await, useFetcher, useParams } from "@remix-run/react";
@@ -21,8 +21,8 @@ import type { PostgrestResponse } from "@supabase/supabase-js";
import { Suspense, useCallback, useEffect, useState } from "react";
import { LuCopy, LuLink, LuUnlink2 } from "react-icons/lu";
import { RiProgress8Line } from "react-icons/ri";
-import { zfd } from "zod-form-data";
import { z } from "zod/v3";
+import { zfd } from "zod-form-data";
import { Assignee, Hyperlink, useOptimisticAssignment } from "~/components";
import {
Customer,
@@ -64,6 +64,7 @@ const JobProperties = () => {
(routeData?.job?.itemType ?? "Part") as MethodItemType
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdate = useCallback(
(field: keyof Job, value: string | number | null) => {
if (value === routeData?.job[field]) {
@@ -83,6 +84,7 @@ const JobProperties = () => {
[jobId, routeData?.job]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdateCustomFields = useCallback(
(value: string) => {
const formData = new FormData();
@@ -100,6 +102,7 @@ const JobProperties = () => {
[jobId]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdateTags = useCallback(
(value: string[]) => {
const formData = new FormData();
@@ -119,6 +122,7 @@ const JobProperties = () => {
[jobId]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdateBatchNumber = useCallback(
(trackedEntityId: string, value: string) => {
const formData = new FormData();
diff --git a/apps/erp/app/modules/production/ui/Jobs/JobsTable.tsx b/apps/erp/app/modules/production/ui/Jobs/JobsTable.tsx
index 176a0702b6..3f3d344270 100644
--- a/apps/erp/app/modules/production/ui/Jobs/JobsTable.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/JobsTable.tsx
@@ -121,6 +121,7 @@ function useReadableTrackedEntities(data: Job[], companyId: string) {
}
}
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
getTrackedEntities(
data.reduce<string[]>((acc, curr) => {
@@ -170,6 +171,7 @@ const JobsTable = memo(({ data, count, tags }: JobsTableProps) => {
const todaysDate = useMemo(() => today(getLocalTimeZone()), []);
const customColumns = useCustomColumns<Job>("job");
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const columns = useMemo<ColumnDef<Job>[]>(() => {
const defaultColumns: ColumnDef<Job>[] = [
{
@@ -576,6 +578,7 @@ const JobsTable = memo(({ data, count, tags }: JobsTableProps) => {
}
}, [fetcher.data]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onBulkUpdate = useCallback(
(selectedRows: typeof data, field: "delete", value?: string) => {
const formData = new FormData();
@@ -627,6 +630,7 @@ const JobsTable = memo(({ data, count, tags }: JobsTableProps) => {
[onBulkUpdate, permissions]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const renderContextMenu = useCallback<(row: Job) => JSX.Element>(
(row) => (
<>
diff --git a/apps/erp/app/modules/production/ui/Jobs/ProductionEventsTable.tsx b/apps/erp/app/modules/production/ui/Jobs/ProductionEventsTable.tsx
index 1bad73bfc0..1cffeb355c 100644
--- a/apps/erp/app/modules/production/ui/Jobs/ProductionEventsTable.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/ProductionEventsTable.tsx
@@ -188,6 +188,7 @@ const ProductionEventsTable = memo(
const navigate = useNavigate();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const renderContextMenu = useCallback<
(row: ProductionEvent) => JSX.Element
>(
diff --git a/apps/erp/app/modules/production/ui/Jobs/ProductionQuantitiesTable.tsx b/apps/erp/app/modules/production/ui/Jobs/ProductionQuantitiesTable.tsx
index 4448b81e71..d54f2374ee 100644
--- a/apps/erp/app/modules/production/ui/Jobs/ProductionQuantitiesTable.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/ProductionQuantitiesTable.tsx
@@ -165,6 +165,7 @@ const ProductionQuantitiesTable = memo(
const navigate = useNavigate();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const renderContextMenu = useCallback<
(row: ProductionQuantity) => JSX.Element
>(
diff --git a/apps/erp/app/modules/production/ui/Jobs/ProductionQuantityForm.tsx b/apps/erp/app/modules/production/ui/Jobs/ProductionQuantityForm.tsx
index 0894178663..7f8bc6984e 100644
--- a/apps/erp/app/modules/production/ui/Jobs/ProductionQuantityForm.tsx
+++ b/apps/erp/app/modules/production/ui/Jobs/ProductionQuantityForm.tsx
@@ -17,6 +17,7 @@ import type { z } from "zod/v3";
import {
Employee,
Hidden,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
Select,
Submit,
diff --git a/apps/erp/app/modules/production/ui/Planning/ProductionPlanningOrderDrawer.tsx b/apps/erp/app/modules/production/ui/Planning/ProductionPlanningOrderDrawer.tsx
index 27ac4c12c6..a03b002225 100644
--- a/apps/erp/app/modules/production/ui/Planning/ProductionPlanningOrderDrawer.tsx
+++ b/apps/erp/app/modules/production/ui/Planning/ProductionPlanningOrderDrawer.tsx
@@ -23,8 +23,8 @@ import {
Td,
Th,
Thead,
- toast,
Tr,
+ toast,
useMount,
VStack
} from "@carbon/react";
@@ -237,6 +237,7 @@ export const ProductionPlanningOrderDrawer = memo(
[row, orders, setOrders]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (fetcher.data?.success === false && fetcher?.data?.message) {
toast.error(fetcher.data.message);
diff --git a/apps/erp/app/modules/production/ui/Planning/ProductionPlanningTable.tsx b/apps/erp/app/modules/production/ui/Planning/ProductionPlanningTable.tsx
index 5d136a0ef8..d18d7a6b4a 100644
--- a/apps/erp/app/modules/production/ui/Planning/ProductionPlanningTable.tsx
+++ b/apps/erp/app/modules/production/ui/Planning/ProductionPlanningTable.tsx
@@ -9,10 +9,10 @@ import {
HStack,
Loading,
PulsingDot,
- toast,
Tooltip,
TooltipContent,
TooltipTrigger,
+ toast,
VStack
} from "@carbon/react";
import { getLocalTimeZone, parseDate } from "@internationalized/date";
@@ -90,10 +90,12 @@ const ProductionPlanningTable = ({
}, [mrpFetcher.state, mrpFetcher.data]);
// Clear local state when data changes (e.g., filters, search)
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
setOrdersMap({});
}, [data]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (
bulkUpdateFetcher.data?.success === false &&
@@ -117,6 +119,7 @@ const ProductionPlanningTable = ({
{}
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onBulkUpdate = useCallback(
(selectedRows: typeof data, action: "order") => {
const payload = {
@@ -190,6 +193,7 @@ const ProductionPlanningTable = ({
>(new Map());
const [isPending, startTransition] = useTransition();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
startTransition(() => {
const ordersByItemId = new Map<string, ProductionOrder[]>();
@@ -203,6 +207,7 @@ const ProductionPlanningTable = ({
});
}, [data]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const columns = useMemo<ColumnDef<ProductionPlanningItem>[]>(() => {
const periodColumns: ColumnDef<ProductionPlanningItem>[] = periods.map(
(period, index) => {
diff --git a/apps/erp/app/modules/production/ui/Procedures/ProcedureExplorer.tsx b/apps/erp/app/modules/production/ui/Procedures/ProcedureExplorer.tsx
index 3b12a11403..1a99aa69fc 100644
--- a/apps/erp/app/modules/production/ui/Procedures/ProcedureExplorer.tsx
+++ b/apps/erp/app/modules/production/ui/Procedures/ProcedureExplorer.tsx
@@ -3,6 +3,7 @@ import {
Array as ArrayInput,
Hidden,
Input,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
SelectControlled,
Submit,
@@ -31,12 +32,12 @@ import {
TabsContent,
TabsList,
TabsTrigger,
- toast,
ToggleGroup,
ToggleGroupItem,
Tooltip,
TooltipContent,
TooltipTrigger,
+ toast,
useDebounce,
useDisclosure,
useKeyboardShortcuts,
diff --git a/apps/erp/app/modules/production/ui/Procedures/ProcedureForm.tsx b/apps/erp/app/modules/production/ui/Procedures/ProcedureForm.tsx
index fcb804cc56..0228fb8b8f 100644
--- a/apps/erp/app/modules/production/ui/Procedures/ProcedureForm.tsx
+++ b/apps/erp/app/modules/production/ui/Procedures/ProcedureForm.tsx
@@ -13,6 +13,7 @@ import {
import { useFetcher } from "@remix-run/react";
import type { PostgrestResponse } from "@supabase/supabase-js";
import type { z } from "zod/v3";
+// biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
import { Hidden, Input, Number, Process, Submit } from "~/components/Form";
import { usePermissions } from "~/hooks";
import { path } from "~/utils/path";
diff --git a/apps/erp/app/modules/production/ui/Procedures/ProcedureHeader.tsx b/apps/erp/app/modules/production/ui/Procedures/ProcedureHeader.tsx
index 02d6c796b9..410cfb9503 100644
--- a/apps/erp/app/modules/production/ui/Procedures/ProcedureHeader.tsx
+++ b/apps/erp/app/modules/production/ui/Procedures/ProcedureHeader.tsx
@@ -50,6 +50,7 @@ const ProcedureHeader = () => {
const newVersionDisclosure = useDisclosure();
const deleteDisclosure = useDisclosure();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
newVersionDisclosure.onClose();
}, [id]);
diff --git a/apps/erp/app/modules/production/ui/Procedures/ProcedureProperties.tsx b/apps/erp/app/modules/production/ui/Procedures/ProcedureProperties.tsx
index 5c9b8d8613..8e43b3d104 100644
--- a/apps/erp/app/modules/production/ui/Procedures/ProcedureProperties.tsx
+++ b/apps/erp/app/modules/production/ui/Procedures/ProcedureProperties.tsx
@@ -2,10 +2,10 @@ import { Select, ValidatedForm } from "@carbon/form";
import {
Button,
HStack,
- toast,
Tooltip,
TooltipContent,
TooltipTrigger,
+ toast,
VStack
} from "@carbon/react";
import { useFetcher, useParams } from "@remix-run/react";
@@ -39,6 +39,7 @@ const ProcedureProperties = () => {
}
}, [fetcher.data]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdate = useCallback(
(field: "name" | "processId" | "status", value: string | null) => {
const formData = new FormData();
diff --git a/apps/erp/app/modules/production/ui/Projection/DemandProjectionForm.tsx b/apps/erp/app/modules/production/ui/Projection/DemandProjectionForm.tsx
index 84a33d5ec2..8e3d56d1e1 100644
--- a/apps/erp/app/modules/production/ui/Projection/DemandProjectionForm.tsx
+++ b/apps/erp/app/modules/production/ui/Projection/DemandProjectionForm.tsx
@@ -13,6 +13,7 @@ import {
import { getLocalTimeZone, startOfWeek, today } from "@internationalized/date";
import { useFetcher, useLoaderData } from "@remix-run/react";
import type { z } from "zod/v3";
+// biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
import { Hidden, Item, Location, Number, Submit } from "~/components/Form";
import { usePermissions } from "~/hooks";
import { path } from "~/utils/path";
diff --git a/apps/erp/app/modules/production/ui/Schedule/Kanban/components/JobCard.tsx b/apps/erp/app/modules/production/ui/Schedule/Kanban/components/JobCard.tsx
index 6e0070c083..07bee21b27 100644
--- a/apps/erp/app/modules/production/ui/Schedule/Kanban/components/JobCard.tsx
+++ b/apps/erp/app/modules/production/ui/Schedule/Kanban/components/JobCard.tsx
@@ -19,7 +19,10 @@ import {
import { formatDate } from "@carbon/utils";
import { useSortable } from "@dnd-kit/sortable";
import { CSS } from "@dnd-kit/utilities";
+import { Link } from "@remix-run/react";
import { cva } from "class-variance-authority";
+import { AiOutlinePartition } from "react-icons/ai";
+import { FaTasks } from "react-icons/fa";
import {
LuCalendarDays,
LuEllipsisVertical,
@@ -31,13 +34,8 @@ import {
LuTriangleAlert,
LuUsers
} from "react-icons/lu";
-
-import { Link } from "@remix-run/react";
import { RiProgress8Line } from "react-icons/ri";
import { Assignee, EmployeeAvatarGroup } from "~/components";
-
-import { AiOutlinePartition } from "react-icons/ai";
-import { FaTasks } from "react-icons/fa";
import { getDeadlineIcon } from "~/modules/production/ui/Jobs/Deadline";
import { useCustomers } from "~/stores";
import { getPrivateUrl, path } from "~/utils/path";
@@ -111,6 +109,7 @@ type JobCardProps = {
};
export function JobCard({ item, isOverlay, progressByItemId }: JobCardProps) {
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { displaySettings, selectedGroup, setSelectedGroup, tags } =
useKanban();
const {
diff --git a/apps/erp/app/modules/purchasing/ui/Planning/PurchasingPlanningOrderDrawer.tsx b/apps/erp/app/modules/purchasing/ui/Planning/PurchasingPlanningOrderDrawer.tsx
index 5713864f5b..7e98caa6b0 100644
--- a/apps/erp/app/modules/purchasing/ui/Planning/PurchasingPlanningOrderDrawer.tsx
+++ b/apps/erp/app/modules/purchasing/ui/Planning/PurchasingPlanningOrderDrawer.tsx
@@ -27,8 +27,8 @@ import {
Td,
Th,
Thead,
- toast,
Tr,
+ toast,
useDisclosure,
useMount,
VStack
@@ -176,6 +176,7 @@ export const PurchasingPlanningOrderDrawer = memo(
}
});
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (selectedItem.id) {
getExistingOrders();
@@ -282,6 +283,7 @@ export const PurchasingPlanningOrderDrawer = memo(
[selectedItem, orders, setOrders]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (fetcher.data?.success === false && fetcher?.data?.message) {
toast.error(fetcher.data.message);
diff --git a/apps/erp/app/modules/purchasing/ui/Planning/PurchasingPlanningTable.tsx b/apps/erp/app/modules/purchasing/ui/Planning/PurchasingPlanningTable.tsx
index 93865854da..27bd0855cc 100644
--- a/apps/erp/app/modules/purchasing/ui/Planning/PurchasingPlanningTable.tsx
+++ b/apps/erp/app/modules/purchasing/ui/Planning/PurchasingPlanningTable.tsx
@@ -133,10 +133,12 @@ const PlanningTable = memo(
}, [mrpFetcher.state, mrpFetcher.data]);
// Clear local state when data changes (e.g., filters, search)
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
setOrdersMap({});
}, [data]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onBulkUpdate = useCallback(
(selectedRows: typeof data, action: "order") => {
const payload = {
@@ -208,6 +210,7 @@ const PlanningTable = memo(
>(new Map());
const [isPending, startTransition] = useTransition();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
startTransition(() => {
const ordersByItemId = new Map<string, PlannedOrder[]>();
@@ -226,6 +229,7 @@ const PlanningTable = memo(
});
}, [data]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const columns = useMemo<ColumnDef<PurchasingPlanningItem>[]>(() => {
const periodColumns: ColumnDef<PurchasingPlanningItem>[] = periods.map(
(period, index) => {
diff --git a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderDeliveryForm.tsx b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderDeliveryForm.tsx
index 7a2b837544..ae62e767a0 100644
--- a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderDeliveryForm.tsx
+++ b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderDeliveryForm.tsx
@@ -10,14 +10,16 @@ import { useFetcher, useParams } from "@remix-run/react";
import { forwardRef, useImperativeHandle, useRef, useState } from "react";
import type { z } from "zod/v3";
import {
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Boolean,
- CustomFormFields,
Customer,
CustomerLocation,
+ CustomFormFields,
DatePicker,
Hidden,
Input,
Location,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
ShippingMethod,
Submit
diff --git a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderLineForm.tsx b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderLineForm.tsx
index b490b5091f..1fc8d16de4 100644
--- a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderLineForm.tsx
+++ b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderLineForm.tsx
@@ -591,6 +591,7 @@ function JobOperationSelect(initialValues: { jobId?: string }) {
const jobOperationFetcher =
useFetcher<PostgrestResponse<{ id: string; description: string }>>();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (jobId) {
jobOperationFetcher.load(path.to.api.outsideOperations(jobId));
diff --git a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderPaymentForm.tsx b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderPaymentForm.tsx
index f7cef2f1c9..94516c0b23 100644
--- a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderPaymentForm.tsx
+++ b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderPaymentForm.tsx
@@ -10,6 +10,7 @@ import { useFetcher, useParams } from "@remix-run/react";
import { useState } from "react";
import type { z } from "zod/v3";
import {
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Boolean,
CustomFormFields,
Hidden,
diff --git a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderProperties.tsx b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderProperties.tsx
index 79a649f5fb..712a6fbc68 100644
--- a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderProperties.tsx
+++ b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderProperties.tsx
@@ -5,10 +5,10 @@ import {
Button,
HStack,
IconButton,
- toast,
Tooltip,
TooltipContent,
TooltipTrigger,
+ toast,
VStack
} from "@carbon/react";
import { useLocale } from "@react-aria/i18n";
@@ -22,8 +22,8 @@ import {
LuLink,
LuRefreshCcw
} from "react-icons/lu";
-import { zfd } from "zod-form-data";
import { z } from "zod/v3";
+import { zfd } from "zod-form-data";
import { Assignee, Hyperlink, useOptimisticAssignment } from "~/components";
import {
Currency,
@@ -68,6 +68,7 @@ const PurchaseOrderProperties = () => {
[locale]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdate = useCallback(
(field: keyof PurchaseOrder, value: string | null) => {
if (value === routeData?.purchaseOrder[field]) {
@@ -87,6 +88,7 @@ const PurchaseOrderProperties = () => {
[orderId, routeData?.purchaseOrder]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdateCustomFields = useCallback(
(value: string) => {
const formData = new FormData();
diff --git a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrdersTable.tsx b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrdersTable.tsx
index 46c744e0e1..2150e27fa4 100644
--- a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrdersTable.tsx
+++ b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrdersTable.tsx
@@ -338,6 +338,7 @@ const PurchaseOrdersTable = memo(
}
}, [fetcher.data]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onBulkUpdate = useCallback(
(selectedRows: typeof data, field: "delete", value?: string) => {
const formData = new FormData();
diff --git a/apps/erp/app/modules/purchasing/ui/Supplier/SupplierHeader.tsx b/apps/erp/app/modules/purchasing/ui/Supplier/SupplierHeader.tsx
index 21863544d4..341db1f1b9 100644
--- a/apps/erp/app/modules/purchasing/ui/Supplier/SupplierHeader.tsx
+++ b/apps/erp/app/modules/purchasing/ui/Supplier/SupplierHeader.tsx
@@ -48,6 +48,7 @@ const SupplierHeader = () => {
(status) => status.id === routeData?.supplier?.supplierStatusId
)?.name;
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdateTags = useCallback(
(value: string[]) => {
const formData = new FormData();
diff --git a/apps/erp/app/modules/purchasing/ui/Supplier/SupplierProcessForm.tsx b/apps/erp/app/modules/purchasing/ui/Supplier/SupplierProcessForm.tsx
index e34ec52b11..8e719be051 100644
--- a/apps/erp/app/modules/purchasing/ui/Supplier/SupplierProcessForm.tsx
+++ b/apps/erp/app/modules/purchasing/ui/Supplier/SupplierProcessForm.tsx
@@ -19,6 +19,7 @@ import type { z } from "zod/v3";
import {
CustomFormFields,
Hidden,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
Process,
Submit,
diff --git a/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteProperties.tsx b/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteProperties.tsx
index 6552351fec..e098ac8dd1 100644
--- a/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteProperties.tsx
+++ b/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteProperties.tsx
@@ -4,18 +4,18 @@ import {
Button,
HStack,
IconButton,
- toast,
Tooltip,
TooltipContent,
TooltipTrigger,
+ toast,
VStack
} from "@carbon/react";
import { useLocale } from "@react-aria/i18n";
import { useFetcher, useParams } from "@remix-run/react";
import { useCallback, useEffect, useMemo } from "react";
import { LuCopy, LuInfo, LuLink, LuRefreshCcw } from "react-icons/lu";
-import { zfd } from "zod-form-data";
import { z } from "zod/v3";
+import { zfd } from "zod-form-data";
import { Assignee, useOptimisticAssignment } from "~/components";
import {
Currency,
@@ -58,6 +58,7 @@ const SupplierQuoteProperties = () => {
[locale]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdate = useCallback(
(field: keyof SupplierQuote, value: string | null) => {
if (value === routeData?.quote[field]) {
@@ -77,6 +78,7 @@ const SupplierQuoteProperties = () => {
[id, routeData?.quote]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdateCustomFields = useCallback(
(value: string) => {
const formData = new FormData();
diff --git a/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteToOrderDrawer.tsx b/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteToOrderDrawer.tsx
index feefce9c0c..0af2973759 100644
--- a/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteToOrderDrawer.tsx
+++ b/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteToOrderDrawer.tsx
@@ -243,6 +243,7 @@ const LinePricingOptions = ({
supplierTaxAmount: 0
});
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (selectedValue === "custom") {
setSelectedLines((prev) => ({
diff --git a/apps/erp/app/modules/quality/quality.models.ts b/apps/erp/app/modules/quality/quality.models.ts
index 4d27218c87..cb4535e8e2 100644
--- a/apps/erp/app/modules/quality/quality.models.ts
+++ b/apps/erp/app/modules/quality/quality.models.ts
@@ -1,5 +1,5 @@
-import { zfd } from "zod-form-data";
import { z } from "zod/v3";
+import { zfd } from "zod-form-data";
import { procedureStepType } from "../shared/shared.models";
export const disposition = [
@@ -109,6 +109,7 @@ export const gaugeCalibrationRecordValidator = z.object({
.transform((val) => {
try {
return val ? JSON.parse(val) : {};
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
} catch (e) {
return {};
}
@@ -188,6 +189,7 @@ export const issueWorkflowValidator = z.object({
.transform((val) => {
try {
return JSON.parse(val);
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
} catch (e) {
return {};
}
@@ -201,6 +203,7 @@ export const issueWorkflowValidator = z.object({
if (!val) return [];
try {
return JSON.parse(val) as string[];
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
} catch (e) {
return [];
}
diff --git a/apps/erp/app/modules/quality/quality.service.ts b/apps/erp/app/modules/quality/quality.service.ts
index 5c7e60a175..2903fa7e57 100644
--- a/apps/erp/app/modules/quality/quality.service.ts
+++ b/apps/erp/app/modules/quality/quality.service.ts
@@ -1,4 +1,4 @@
-import { fetchAllFromTable, type Database, type Json } from "@carbon/database";
+import { type Database, fetchAllFromTable, type Json } from "@carbon/database";
import type { JSONContent } from "@carbon/react";
import { parseDate } from "@internationalized/date";
import type { SupabaseClient } from "@supabase/supabase-js";
@@ -1373,6 +1373,7 @@ export async function upsertIssue(
return result;
} else {
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { items, ...data } = nonConformance;
return client
.from("nonConformance")
@@ -1516,6 +1517,7 @@ export async function upsertQualityDocument(
steps.length > 0
? client.from("qualityDocumentStep").insert(
steps.map((step) => {
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, qualityDocumentId, ...rest } = step;
return {
...rest,
diff --git a/apps/erp/app/modules/quality/ui/Calibrations/GaugeCalibrationRecordForm.tsx b/apps/erp/app/modules/quality/ui/Calibrations/GaugeCalibrationRecordForm.tsx
index aa15e78644..6821ab4ec5 100644
--- a/apps/erp/app/modules/quality/ui/Calibrations/GaugeCalibrationRecordForm.tsx
+++ b/apps/erp/app/modules/quality/ui/Calibrations/GaugeCalibrationRecordForm.tsx
@@ -1,9 +1,11 @@
import { useCarbon } from "@carbon/auth";
import type { Database } from "@carbon/database";
import {
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Boolean,
DatePicker,
Input,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
ValidatedForm
} from "@carbon/form";
@@ -36,8 +38,8 @@ import {
Table,
Tbody,
Td,
- toast,
Tr,
+ toast,
useDisclosure,
VStack
} from "@carbon/react";
@@ -105,6 +107,7 @@ const GaugeCalibrationRecordForm = ({
const { carbon } = useCarbon();
const { options: gaugeOptions, gaugeTypes } = useGauges();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (initialValues.gaugeId) {
onGaugeSelected(initialValues.gaugeId);
diff --git a/apps/erp/app/modules/quality/ui/Documents/QualityDocumentExplorer.tsx b/apps/erp/app/modules/quality/ui/Documents/QualityDocumentExplorer.tsx
index b175eddbfe..314b790b48 100644
--- a/apps/erp/app/modules/quality/ui/Documents/QualityDocumentExplorer.tsx
+++ b/apps/erp/app/modules/quality/ui/Documents/QualityDocumentExplorer.tsx
@@ -3,6 +3,7 @@ import {
Array as ArrayInput,
Hidden,
Input,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
SelectControlled,
Submit,
@@ -27,12 +28,12 @@ import {
IconButton,
Kbd,
Label,
- toast,
ToggleGroup,
ToggleGroupItem,
Tooltip,
TooltipContent,
TooltipTrigger,
+ toast,
useDebounce,
useDisclosure,
useKeyboardShortcuts,
diff --git a/apps/erp/app/modules/quality/ui/Documents/QualityDocumentForm.tsx b/apps/erp/app/modules/quality/ui/Documents/QualityDocumentForm.tsx
index c832bcb7bc..ea8149135e 100644
--- a/apps/erp/app/modules/quality/ui/Documents/QualityDocumentForm.tsx
+++ b/apps/erp/app/modules/quality/ui/Documents/QualityDocumentForm.tsx
@@ -13,6 +13,7 @@ import {
import { useFetcher } from "@remix-run/react";
import type { PostgrestResponse } from "@supabase/supabase-js";
import type { z } from "zod/v3";
+// biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
import { Hidden, Input, Number, Submit } from "~/components/Form";
import { usePermissions } from "~/hooks";
import { path } from "~/utils/path";
diff --git a/apps/erp/app/modules/quality/ui/Documents/QualityDocumentHeader.tsx b/apps/erp/app/modules/quality/ui/Documents/QualityDocumentHeader.tsx
index fc14cf5290..639507b8b4 100644
--- a/apps/erp/app/modules/quality/ui/Documents/QualityDocumentHeader.tsx
+++ b/apps/erp/app/modules/quality/ui/Documents/QualityDocumentHeader.tsx
@@ -50,6 +50,7 @@ const QualityDocumentHeader = () => {
const newVersionDisclosure = useDisclosure();
const deleteDisclosure = useDisclosure();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
newVersionDisclosure.onClose();
}, [id]);
diff --git a/apps/erp/app/modules/quality/ui/Documents/QualityDocumentProperties.tsx b/apps/erp/app/modules/quality/ui/Documents/QualityDocumentProperties.tsx
index d9de7d4cc7..bc70ff17dd 100644
--- a/apps/erp/app/modules/quality/ui/Documents/QualityDocumentProperties.tsx
+++ b/apps/erp/app/modules/quality/ui/Documents/QualityDocumentProperties.tsx
@@ -2,10 +2,10 @@ import { Select, ValidatedForm } from "@carbon/form";
import {
Button,
HStack,
- toast,
Tooltip,
TooltipContent,
TooltipTrigger,
+ toast,
VStack
} from "@carbon/react";
import { useFetcher, useParams } from "@remix-run/react";
@@ -39,6 +39,7 @@ const QualityDocumentProperties = () => {
}
}, [fetcher.data]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdate = useCallback(
(field: "name" | "status", value: string | null) => {
const formData = new FormData();
diff --git a/apps/erp/app/modules/quality/ui/Issue/AssociatedItemsList.tsx b/apps/erp/app/modules/quality/ui/Issue/AssociatedItemsList.tsx
index 2b9e1b302c..7eec77c176 100644
--- a/apps/erp/app/modules/quality/ui/Issue/AssociatedItemsList.tsx
+++ b/apps/erp/app/modules/quality/ui/Issue/AssociatedItemsList.tsx
@@ -1,3 +1,4 @@
+// biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
import { Number, Select, ValidatedForm } from "@carbon/form";
import { Card, CardContent, CardHeader, CardTitle, toast } from "@carbon/react";
import { useFetcher } from "@remix-run/react";
diff --git a/apps/erp/app/modules/quality/ui/Issue/IssueAssociations.tsx b/apps/erp/app/modules/quality/ui/Issue/IssueAssociations.tsx
index d6e08e3a5a..9e9dc78ce3 100644
--- a/apps/erp/app/modules/quality/ui/Issue/IssueAssociations.tsx
+++ b/apps/erp/app/modules/quality/ui/Issue/IssueAssociations.tsx
@@ -1,9 +1,10 @@
import { useCarbon } from "@carbon/auth";
+// biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
import { Combobox, Hidden, Number, Submit, ValidatedForm } from "@carbon/form";
import {
Button,
- cn,
Count,
+ cn,
DropdownMenu,
DropdownMenuContent,
DropdownMenuIcon,
diff --git a/apps/erp/app/modules/quality/ui/Issue/IssueProperties.tsx b/apps/erp/app/modules/quality/ui/Issue/IssueProperties.tsx
index a4bc49e24d..f9101dee49 100644
--- a/apps/erp/app/modules/quality/ui/Issue/IssueProperties.tsx
+++ b/apps/erp/app/modules/quality/ui/Issue/IssueProperties.tsx
@@ -9,10 +9,10 @@ import {
import {
Button,
HStack,
- toast,
Tooltip,
TooltipContent,
TooltipTrigger,
+ toast,
VStack
} from "@carbon/react";
import { useFetcher, useParams } from "@remix-run/react";
@@ -73,6 +73,7 @@ const IssueProperties = () => {
}
}, [fetcher.data]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdate = useCallback(
(
field:
@@ -108,6 +109,7 @@ const IssueProperties = () => {
[id]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdateTags = useCallback(
(value: string[]) => {
const formData = new FormData();
@@ -127,6 +129,7 @@ const IssueProperties = () => {
[id]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdateCustomFields = useCallback(
(value: string) => {
const formData = new FormData();
diff --git a/apps/erp/app/modules/quality/ui/Issue/Linear/CreateIssue.tsx b/apps/erp/app/modules/quality/ui/Issue/Linear/CreateIssue.tsx
index 51eb21a9f1..c1c76e7066 100644
--- a/apps/erp/app/modules/quality/ui/Issue/Linear/CreateIssue.tsx
+++ b/apps/erp/app/modules/quality/ui/Issue/Linear/CreateIssue.tsx
@@ -102,6 +102,7 @@ const useLinearTeams = (teamId?: string) => {
members: LinearUser[];
}>();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
fetcher.load(
path.to.api.linearCreateIssue + (teamId ? `?teamId=${teamId}` : "")
diff --git a/apps/erp/app/modules/quality/ui/Issue/ReviewersList.tsx b/apps/erp/app/modules/quality/ui/Issue/ReviewersList.tsx
index ed8ac2d4b9..ec2bcaa29e 100644
--- a/apps/erp/app/modules/quality/ui/Issue/ReviewersList.tsx
+++ b/apps/erp/app/modules/quality/ui/Issue/ReviewersList.tsx
@@ -39,6 +39,7 @@ export function ReviewersList({
const fetcher = useFetcher<typeof reviewAction>();
const submitted = useRef(false);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (fetcher.data?.success && submitted.current) {
disclosure.onClose();
diff --git a/apps/erp/app/modules/quality/ui/RequiredActions/RequiredActionForm.tsx b/apps/erp/app/modules/quality/ui/RequiredActions/RequiredActionForm.tsx
index 2981761a29..5104dcabcb 100644
--- a/apps/erp/app/modules/quality/ui/RequiredActions/RequiredActionForm.tsx
+++ b/apps/erp/app/modules/quality/ui/RequiredActions/RequiredActionForm.tsx
@@ -9,14 +9,15 @@ import {
ModalDrawerHeader,
ModalDrawerProvider,
ModalDrawerTitle,
- VStack,
- toast
+ toast,
+ VStack
} from "@carbon/react";
import { useFetcher } from "@remix-run/react";
import type { PostgrestResponse } from "@supabase/supabase-js";
import { useEffect } from "react";
import type { z } from "zod/v3";
import {
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Boolean,
CustomFormFields,
Hidden,
diff --git a/apps/erp/app/modules/resources/ui/Contractors/ContractorForm.tsx b/apps/erp/app/modules/resources/ui/Contractors/ContractorForm.tsx
index 0675586114..7a36515326 100644
--- a/apps/erp/app/modules/resources/ui/Contractors/ContractorForm.tsx
+++ b/apps/erp/app/modules/resources/ui/Contractors/ContractorForm.tsx
@@ -1,3 +1,4 @@
+import { ValidatedForm } from "@carbon/form";
import {
Button,
Drawer,
@@ -10,13 +11,12 @@ import {
HStack,
VStack
} from "@carbon/react";
-
-import { ValidatedForm } from "@carbon/form";
import { useLocation, useNavigate } from "@remix-run/react";
import { useState } from "react";
import type { z } from "zod/v3";
import {
CustomFormFields,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
Submit,
Supplier,
diff --git a/apps/erp/app/modules/resources/ui/Processes/ProcessForm.tsx b/apps/erp/app/modules/resources/ui/Processes/ProcessForm.tsx
index 2788efe085..adf9625f47 100644
--- a/apps/erp/app/modules/resources/ui/Processes/ProcessForm.tsx
+++ b/apps/erp/app/modules/resources/ui/Processes/ProcessForm.tsx
@@ -15,9 +15,9 @@ import {
ModalDrawerHeader,
ModalDrawerProvider,
ModalDrawerTitle,
- VStack,
toast,
- useDisclosure
+ useDisclosure,
+ VStack
} from "@carbon/react";
import { useFetcher, useNavigate } from "@remix-run/react";
import type { PostgrestResponse } from "@supabase/supabase-js";
@@ -31,6 +31,7 @@ import {
import type { z } from "zod/v3";
import { SupplierAvatar } from "~/components";
import {
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Boolean,
CustomFormFields,
Hidden,
diff --git a/apps/erp/app/modules/resources/ui/Training/TrainingAssignmentForm.tsx b/apps/erp/app/modules/resources/ui/Training/TrainingAssignmentForm.tsx
index b8de0529b3..d37302b489 100644
--- a/apps/erp/app/modules/resources/ui/Training/TrainingAssignmentForm.tsx
+++ b/apps/erp/app/modules/resources/ui/Training/TrainingAssignmentForm.tsx
@@ -2,8 +2,8 @@ import { Select, ValidatedForm } from "@carbon/form";
import {
Badge,
Button,
- cn,
Count,
+ cn,
HStack,
Input,
ModalDrawer,
@@ -24,11 +24,11 @@ import {
import { useFetcher } from "@remix-run/react";
import { memo, useMemo, useState } from "react";
import {
- LuTriangleAlert,
LuCalendar,
LuCircleCheck,
LuClock,
- LuSearch
+ LuSearch,
+ LuTriangleAlert
} from "react-icons/lu";
import type { z } from "zod/v3";
import { EmployeeAvatar, Empty } from "~/components";
@@ -228,7 +228,9 @@ const StatusList = memo(
value="Completed"
>
<LuCircleCheck className="mr-1 size-3" />
- Completed <Count count={statusCounts["Completed"] || 0} />
+ Completed{" "}
+ {/** biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration */}
+ <Count count={statusCounts["Completed"] || 0} />
</ToggleGroupItem>
<ToggleGroupItem
className="flex gap-1.5 items-center"
@@ -236,7 +238,9 @@ const StatusList = memo(
value="Pending"
>
<LuClock className="mr-1 size-3" />
- Pending <Count count={statusCounts["Pending"] || 0} />
+ Pending{" "}
+ {/** biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration */}
+ <Count count={statusCounts["Pending"] || 0} />
</ToggleGroupItem>
<ToggleGroupItem
className="flex gap-1.5 items-center"
@@ -244,7 +248,9 @@ const StatusList = memo(
value="Overdue"
>
<LuTriangleAlert className="mr-1 size-3" />
- Overdue <Count count={statusCounts["Overdue"] || 0} />
+ Overdue{" "}
+ {/** biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration */}
+ <Count count={statusCounts["Overdue"] || 0} />
</ToggleGroupItem>
<ToggleGroupItem
className="flex gap-1.5 items-center"
diff --git a/apps/erp/app/modules/resources/ui/Training/TrainingExplorer.tsx b/apps/erp/app/modules/resources/ui/Training/TrainingExplorer.tsx
index 6d804d4295..c3d9839743 100644
--- a/apps/erp/app/modules/resources/ui/Training/TrainingExplorer.tsx
+++ b/apps/erp/app/modules/resources/ui/Training/TrainingExplorer.tsx
@@ -3,6 +3,7 @@ import {
Hidden,
Input,
MultiSelect,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
Select,
SelectControlled,
@@ -44,13 +45,13 @@ import { useEffect, useMemo, useRef, useState } from "react";
import { flushSync } from "react-dom";
import {
LuArrowRightLeft,
- LuSquareCheck,
LuCircleDot,
LuCirclePlus,
LuEllipsisVertical,
LuGripVertical,
LuHash,
LuPencil,
+ LuSquareCheck,
LuToggleLeft,
LuTrash
} from "react-icons/lu";
@@ -58,11 +59,11 @@ import type { z } from "zod/v3";
import { Empty } from "~/components";
import { ConfirmDelete } from "~/components/Modals";
import { usePermissions, useRouteData } from "~/hooks";
+import type { Training, TrainingQuestion } from "~/modules/resources";
import {
trainingQuestionType,
trainingQuestionValidator
} from "~/modules/resources";
-import type { Training, TrainingQuestion } from "~/modules/resources";
import { path } from "~/utils/path";
export default function TrainingExplorer() {
diff --git a/apps/erp/app/modules/resources/ui/Training/TrainingProperties.tsx b/apps/erp/app/modules/resources/ui/Training/TrainingProperties.tsx
index ab75fb401f..ed5f48bb5f 100644
--- a/apps/erp/app/modules/resources/ui/Training/TrainingProperties.tsx
+++ b/apps/erp/app/modules/resources/ui/Training/TrainingProperties.tsx
@@ -3,10 +3,10 @@ import {
Badge,
Button,
HStack,
- toast,
Tooltip,
TooltipContent,
TooltipTrigger,
+ toast,
VStack
} from "@carbon/react";
import { useFetcher, useParams } from "@remix-run/react";
@@ -44,6 +44,7 @@ const TrainingProperties = () => {
}
}, [fetcher.data]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdate = useCallback(
(
field:
diff --git a/apps/erp/app/modules/resources/ui/WorkCenters/WorkCenterForm.tsx b/apps/erp/app/modules/resources/ui/WorkCenters/WorkCenterForm.tsx
index 1cd6764e19..a38fe13489 100644
--- a/apps/erp/app/modules/resources/ui/WorkCenters/WorkCenterForm.tsx
+++ b/apps/erp/app/modules/resources/ui/WorkCenters/WorkCenterForm.tsx
@@ -9,8 +9,8 @@ import {
ModalDrawerHeader,
ModalDrawerProvider,
ModalDrawerTitle,
- VStack,
- toast
+ toast,
+ VStack
} from "@carbon/react";
import { useFetcher } from "@remix-run/react";
import type { PostgrestResponse } from "@supabase/supabase-js";
@@ -22,6 +22,7 @@ import {
Hidden,
Input,
Location,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
Processes,
StandardFactor,
diff --git a/apps/erp/app/modules/resources/ui/WorkCenters/WorkCentersTable.tsx b/apps/erp/app/modules/resources/ui/WorkCenters/WorkCentersTable.tsx
index 6409dfad81..10b35ec6ab 100644
--- a/apps/erp/app/modules/resources/ui/WorkCenters/WorkCentersTable.tsx
+++ b/apps/erp/app/modules/resources/ui/WorkCenters/WorkCentersTable.tsx
@@ -96,6 +96,7 @@ const WorkCentersTable = memo(
};
const customColumns = useCustomColumns<WorkCenter>("workCenter");
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const columns = useMemo<ColumnDef<WorkCenter>[]>(() => {
const defaultColumns: ColumnDef<WorkCenter>[] = [
{
@@ -265,6 +266,7 @@ const WorkCentersTable = memo(
return [...defaultColumns, ...customColumns];
}, [params, customColumns]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const renderContextMenu = useCallback<(row: WorkCenter) => JSX.Element>(
(row) => (
<>
diff --git a/apps/erp/app/modules/sales/sales.service.ts b/apps/erp/app/modules/sales/sales.service.ts
index 7dd47e2834..f80c9b7dc5 100644
--- a/apps/erp/app/modules/sales/sales.service.ts
+++ b/apps/erp/app/modules/sales/sales.service.ts
@@ -1,4 +1,4 @@
-import { fetchAllFromTable, type Database, type Json } from "@carbon/database";
+import { type Database, fetchAllFromTable, type Json } from "@carbon/database";
import { getLocalTimeZone, now, today } from "@internationalized/date";
import {
FunctionRegion,
@@ -41,8 +41,8 @@ import type {
salesOrderShipmentValidator,
salesOrderStatusType,
salesOrderValidator,
- salesRfqLineValidator,
salesRFQStatusType,
+ salesRfqLineValidator,
salesRfqValidator,
selectedLinesValidator
} from "./sales.models";
@@ -906,6 +906,7 @@ function getQuoteMethodTreeArrayToTree(
lookup[itemId] = { id: itemId, children: [] };
}
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
lookup[itemId]["data"] = item;
const treeItem = lookup[itemId];
@@ -918,6 +919,7 @@ function getQuoteMethodTreeArrayToTree(
lookup[parentId] = { id: parentId, children: [] };
}
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
lookup[parentId]["children"].push(treeItem);
}
}
diff --git a/apps/erp/app/modules/sales/ui/Customer/CustomerForm.tsx b/apps/erp/app/modules/sales/ui/Customer/CustomerForm.tsx
index 9fe24c973b..8d6b369f2b 100644
--- a/apps/erp/app/modules/sales/ui/Customer/CustomerForm.tsx
+++ b/apps/erp/app/modules/sales/ui/Customer/CustomerForm.tsx
@@ -1,5 +1,6 @@
import { PhoneInput, ValidatedForm } from "@carbon/form";
import {
+ cn,
HStack,
ModalCard,
ModalCardBody,
@@ -9,7 +10,6 @@ import {
ModalCardHeader,
ModalCardProvider,
ModalCardTitle,
- cn,
toast
} from "@carbon/react";
import { useFetcher } from "@remix-run/react";
@@ -18,12 +18,13 @@ import { useEffect } from "react";
import type { z } from "zod/v3";
import {
Currency,
- CustomFormFields,
CustomerStatus,
CustomerType,
+ CustomFormFields,
Employee,
Hidden,
Input,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
Submit
} from "~/components/Form";
diff --git a/apps/erp/app/modules/sales/ui/Customer/CustomerHeader.tsx b/apps/erp/app/modules/sales/ui/Customer/CustomerHeader.tsx
index 3f2278ac16..3c5191ba6d 100644
--- a/apps/erp/app/modules/sales/ui/Customer/CustomerHeader.tsx
+++ b/apps/erp/app/modules/sales/ui/Customer/CustomerHeader.tsx
@@ -47,6 +47,7 @@ const CustomerHeader = () => {
(status) => status.id === routeData?.customer?.customerStatusId
)?.name;
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdateTags = useCallback(
(value: string[]) => {
const formData = new FormData();
diff --git a/apps/erp/app/modules/sales/ui/Opportunity/OpportunityLineDocuments.tsx b/apps/erp/app/modules/sales/ui/Opportunity/OpportunityLineDocuments.tsx
index 2b9ec2e9ce..c80636b1ef 100644
--- a/apps/erp/app/modules/sales/ui/Opportunity/OpportunityLineDocuments.tsx
+++ b/apps/erp/app/modules/sales/ui/Opportunity/OpportunityLineDocuments.tsx
@@ -23,8 +23,8 @@ import {
Td,
Th,
Thead,
- toast,
Tr,
+ toast,
VStack
} from "@carbon/react";
import { convertKbToString } from "@carbon/utils";
@@ -180,6 +180,7 @@ const useOpportunityLineDocuments = ({
[]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const download = useCallback(
async (file: FileObject & { bucket?: string }) => {
const bucket = file.bucket === "parts" ? "parts" : "opportunity-line";
diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfMaterial.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfMaterial.tsx
index 6b14125ed5..8b38c392d6 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfMaterial.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfMaterial.tsx
@@ -19,10 +19,10 @@ import {
HStack,
IconButton,
Label,
- toast,
Tooltip,
TooltipContent,
TooltipTrigger,
+ toast,
useDebounce,
useDisclosure,
VStack
@@ -52,6 +52,7 @@ import {
Hidden,
InputControlled,
Item,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
NumberControlled,
Select,
@@ -68,7 +69,7 @@ import { SortableList, SortableListItem } from "~/components/SortableList";
import { usePermissions, useRouteData, useUser } from "~/hooks";
import { getLinkToItemDetails } from "~/modules/items/ui/Item/ItemForm";
import type { MethodItemType, MethodType } from "~/modules/shared";
-import { useBom, useItems, type Item as ItemType } from "~/stores";
+import { type Item as ItemType, useBom, useItems } from "~/stores";
import { path } from "~/utils/path";
import type { quoteOperationValidator } from "../../sales.models";
import { quoteMaterialValidator } from "../../sales.models";
diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsx
index 731d6c256c..1684762621 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsx
@@ -13,8 +13,8 @@ import {
CardContent,
CardHeader,
CardTitle,
- cn,
Count,
+ cn,
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
@@ -24,12 +24,12 @@ import {
IconButton,
Label,
Loading,
- toast,
ToggleGroup,
ToggleGroupItem,
Tooltip,
TooltipContent,
TooltipTrigger,
+ toast,
useDebounce,
useDisclosure,
VStack
@@ -64,6 +64,7 @@ import { DirectionAwareTabs, EmployeeAvatar, TimeTypeIcon } from "~/components";
import {
Hidden,
InputControlled,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
NumberControlled,
Process,
@@ -1163,6 +1164,7 @@ function AttributesListItem({
const submitted = useRef(false);
const fetcher = useFetcher<typeof editQuoteOperationStepAction>();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (submitted.current && fetcher.state === "idle") {
disclosure.onClose();
@@ -1556,6 +1558,7 @@ function ParametersListItem({
const submitted = useRef(false);
const fetcher = useFetcher<typeof editQuoteOperationParameterAction>();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (submitted.current && fetcher.state === "idle") {
disclosure.onClose();
@@ -2428,6 +2431,7 @@ function ToolsListItem({
const submitted = useRef(false);
const fetcher = useFetcher<typeof editQuoteOperationToolAction>();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (submitted.current && fetcher.state === "idle") {
disclosure.onClose();
diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteBoMExplorer.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteBoMExplorer.tsx
index 340b27c562..b1e75c49da 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteBoMExplorer.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteBoMExplorer.tsx
@@ -1,7 +1,7 @@
import {
Badge,
- cn,
Copy,
+ cn,
HoverCard,
HoverCardContent,
HoverCardTrigger,
@@ -73,6 +73,7 @@ const QuoteBoMExplorer = ({
tree: methods,
// selectedId,
// collapsedIds,
+ // biome-ignore lint/suspicious/noEmptyBlockStatements: suppressed due to migration
onSelectedIdChanged: () => {},
estimatedRowHeight: () => 32,
parentRef,
@@ -93,6 +94,7 @@ const QuoteBoMExplorer = ({
const params = useParams();
const [selectedMaterialId, setSelectedMaterialId] = useBom();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (selectedMaterialId) {
const node = methods.find(
@@ -246,6 +248,7 @@ function NodeData({ node }: { node: FlatTreeItem<QuoteMethod> }) {
const integrations = useIntegrations();
const onShapeState = integrations.has("onshape")
? // @ts-expect-error
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
node.data.externalId?.["onshapeData"]?.["State"]
: null;
@@ -269,6 +272,7 @@ function NodePreview({ node }: { node: FlatTreeItem<QuoteMethod> }) {
const integrations = useIntegrations();
const onShapeState = integrations.has("onshape")
? // @ts-expect-error
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
node.data.externalId?.["onshapeData"]?.["State"]
: null;
diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteHeader.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteHeader.tsx
index 1467ca2f35..2add9fb870 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteHeader.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteHeader.tsx
@@ -19,10 +19,10 @@ import {
ModalFooter,
ModalHeader,
ModalTitle,
- toast,
Tooltip,
TooltipContent,
TooltipTrigger,
+ toast,
useDisclosure
} from "@carbon/react";
@@ -414,6 +414,7 @@ function CreateRevisionModal({
| { success: true; data: { newQuoteId: string } }
>();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (fetcher.data?.success === false) {
toast.error(fetcher.data?.message);
diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteLineForm.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteLineForm.tsx
index 8a4f71e97f..60cdb0b527 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteLineForm.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteLineForm.tsx
@@ -1,3 +1,5 @@
+import { useCarbon } from "@carbon/auth";
+import { TextArea, ValidatedForm } from "@carbon/form";
import {
Badge,
Button,
@@ -21,37 +23,33 @@ import {
useDisclosure,
VStack
} from "@carbon/react";
-
-import { useCarbon } from "@carbon/auth";
-import { TextArea, ValidatedForm } from "@carbon/form";
+import { getItemReadableId } from "@carbon/utils";
import { Link, useFetcher, useParams } from "@remix-run/react";
import { useState } from "react";
import { BsThreeDotsVertical } from "react-icons/bs";
import { LuTrash } from "react-icons/lu";
import type { z } from "zod/v3";
+import { MethodIcon, MethodItemTypeIcon } from "~/components";
+import { ConfiguratorModal } from "~/components/Configurator/ConfiguratorForm";
import {
ArrayNumeric,
CustomFormFields,
Hidden,
InputControlled,
Item,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
Select,
SelectControlled,
Submit
} from "~/components/Form";
+import { QuoteLineStatusIcon } from "~/components/Icons";
import {
usePercentFormatter,
usePermissions,
useRouteData,
useUser
} from "~/hooks";
-import type { Quotation, QuotationLine } from "../../types";
-
-import { getItemReadableId } from "@carbon/utils";
-import { MethodIcon, MethodItemTypeIcon } from "~/components";
-import { ConfiguratorModal } from "~/components/Configurator/ConfiguratorForm";
-import { QuoteLineStatusIcon } from "~/components/Icons";
import type {
ConfigurationParameter,
ConfigurationParameterGroup
@@ -62,6 +60,7 @@ import type { action } from "~/routes/x+/quote+/$quoteId.new";
import { useItems } from "~/stores";
import { path } from "~/utils/path";
import { quoteLineStatusType, quoteLineValidator } from "../../sales.models";
+import type { Quotation, QuotationLine } from "../../types";
import DeleteQuoteLine from "./DeleteQuoteLine";
type QuoteLineFormProps = {
diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteLineMethodForm.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteLineMethodForm.tsx
index c1ba49193d..b507df76f7 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteLineMethodForm.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteLineMethodForm.tsx
@@ -23,6 +23,7 @@ export function QuoteLineMethodForm() {
quoteFetcher.load(path.to.api.quotes);
});
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (quote) {
quoteLineFetcher.load(path.to.api.quoteLines(quote));
diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteMaterialForm.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteMaterialForm.tsx
index b3cc46bf36..e4e9dbd632 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteMaterialForm.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteMaterialForm.tsx
@@ -1,3 +1,5 @@
+import { useCarbon } from "@carbon/auth";
+import { ValidatedForm } from "@carbon/form";
import {
Card,
CardContent,
@@ -9,16 +11,13 @@ import {
toast,
VStack
} from "@carbon/react";
+import { getItemReadableId } from "@carbon/utils";
import {
useFetcher,
useLocation,
useNavigate,
useParams
} from "@remix-run/react";
-
-import { useCarbon } from "@carbon/auth";
-import { ValidatedForm } from "@carbon/form";
-import { getItemReadableId } from "@carbon/utils";
import { useEffect, useState } from "react";
import type { z } from "zod/v3";
import {
@@ -26,6 +25,7 @@ import {
Hidden,
InputControlled,
Item,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
NumberControlled,
Select,
@@ -124,6 +124,7 @@ const QuoteMaterialForm = ({
const [, setSelectedMaterialId] = useBom();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
const newPath = path.to.quoteLineMakeMethod(
quoteId,
diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteProperties.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteProperties.tsx
index 34cec12cbf..c69604da8b 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteProperties.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteProperties.tsx
@@ -4,18 +4,18 @@ import {
Button,
HStack,
IconButton,
- toast,
Tooltip,
TooltipContent,
TooltipTrigger,
+ toast,
VStack
} from "@carbon/react";
import { useLocale } from "@react-aria/i18n";
import { useFetcher, useParams } from "@remix-run/react";
import { useCallback, useEffect, useMemo } from "react";
import { LuCopy, LuInfo, LuLink, LuRefreshCcw } from "react-icons/lu";
-import { zfd } from "zod-form-data";
import { z } from "zod/v3";
+import { zfd } from "zod-form-data";
import { Assignee, useOptimisticAssignment } from "~/components";
import {
Currency,
@@ -60,6 +60,7 @@ const QuoteProperties = () => {
[locale]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdate = useCallback(
(field: keyof Quotation, value: string | null) => {
if (value === routeData?.quote[field]) {
@@ -79,6 +80,7 @@ const QuoteProperties = () => {
[quoteId, routeData?.quote]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdateCustomFields = useCallback(
(value: string) => {
const formData = new FormData();
diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteShipmentForm.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteShipmentForm.tsx
index 87966a03e6..cc6e97e5e6 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteShipmentForm.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteShipmentForm.tsx
@@ -13,6 +13,7 @@ import {
DatePicker,
Hidden,
Location,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
ShippingMethod,
Submit
diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteSummary.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteSummary.tsx
index cfc49bd92e..705524a6ed 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteSummary.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteSummary.tsx
@@ -90,6 +90,7 @@ const LineItems = ({
const [openItems, setOpenItems] = useState<string[]>([]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
Object.entries(selectedLines).forEach(([lineId, line]) => {
if (line.quantity === 0 && openItems.includes(lineId)) {
diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteToOrderDrawer.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteToOrderDrawer.tsx
index f78f22700e..3c344e7d2d 100644
--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteToOrderDrawer.tsx
+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteToOrderDrawer.tsx
@@ -23,8 +23,8 @@ import {
Td,
Th,
Thead,
- toast,
Tr,
+ toast,
VStack
} from "@carbon/react";
import { formatDate } from "@carbon/utils";
@@ -461,6 +461,7 @@ const LinePricingOptions = ({
convertedShippingCost: 0
});
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (selectedValue === "custom") {
setSelectedLines((prev) => ({
diff --git a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderHeader.tsx b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderHeader.tsx
index a67a8ecfcb..b1ea0cb117 100644
--- a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderHeader.tsx
+++ b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderHeader.tsx
@@ -81,6 +81,7 @@ const SalesOrderConfirmModal = ({
canEmail ? "Email" : "None"
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (fetcher.data?.success) {
onClose();
diff --git a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderLineForm.tsx b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderLineForm.tsx
index a2e3451508..b82660ba35 100644
--- a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderLineForm.tsx
+++ b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderLineForm.tsx
@@ -1,3 +1,6 @@
+import { useCarbon } from "@carbon/auth";
+
+import { ValidatedForm } from "@carbon/form";
import {
Badge,
CardAction,
@@ -20,8 +23,7 @@ import {
useDisclosure,
VStack
} from "@carbon/react";
-
-import { ValidatedForm } from "@carbon/form";
+import { getItemReadableId } from "@carbon/utils";
import { useParams } from "@remix-run/react";
import { useState } from "react";
import { BsThreeDotsVertical } from "react-icons/bs";
@@ -35,6 +37,7 @@ import {
InputControlled,
Item,
Location,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
NumberControlled,
SelectControlled,
@@ -49,9 +52,6 @@ import {
useRouteData,
useUser
} from "~/hooks";
-
-import { useCarbon } from "@carbon/auth";
-import { getItemReadableId } from "@carbon/utils";
import { getDefaultShelfForJob } from "~/modules/inventory/inventory.service";
import { methodType } from "~/modules/shared";
import { useItems } from "~/stores";
diff --git a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderProperties.tsx b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderProperties.tsx
index d59474fa56..24c687d858 100644
--- a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderProperties.tsx
+++ b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderProperties.tsx
@@ -4,18 +4,18 @@ import {
Button,
HStack,
IconButton,
- toast,
Tooltip,
TooltipContent,
TooltipTrigger,
+ toast,
VStack
} from "@carbon/react";
import { useLocale } from "@react-aria/i18n";
import { useFetcher, useParams } from "@remix-run/react";
import { useCallback, useEffect, useMemo } from "react";
import { LuCopy, LuInfo, LuLink, LuRefreshCcw } from "react-icons/lu";
-import { zfd } from "zod-form-data";
import { z } from "zod/v3";
+import { zfd } from "zod-form-data";
import { Assignee, useOptimisticAssignment } from "~/components";
import {
Currency,
@@ -60,6 +60,7 @@ const SalesOrderProperties = () => {
[locale]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdate = useCallback(
(
field: keyof SalesOrder | "receiptRequestedDate" | "receiptPromisedDate",
@@ -82,6 +83,7 @@ const SalesOrderProperties = () => {
[orderId, routeData?.salesOrder]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdateCustomFields = useCallback(
(value: string) => {
const formData = new FormData();
diff --git a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderShipmentForm.tsx b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderShipmentForm.tsx
index 54fb48b034..b2b78149ae 100644
--- a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderShipmentForm.tsx
+++ b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderShipmentForm.tsx
@@ -10,14 +10,16 @@ import { useFetcher, useParams } from "@remix-run/react";
import { forwardRef, useImperativeHandle, useRef, useState } from "react";
import type { z } from "zod/v3";
import {
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Boolean,
- CustomFormFields,
Customer,
CustomerLocation,
+ CustomFormFields,
DatePicker,
Hidden,
Input,
Location,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Number,
ShippingMethod,
Submit
diff --git a/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQProperties.tsx b/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQProperties.tsx
index d22fcce48a..47ab65987d 100644
--- a/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQProperties.tsx
+++ b/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQProperties.tsx
@@ -3,17 +3,17 @@ import { DatePicker, InputControlled, ValidatedForm } from "@carbon/form";
import {
Button,
HStack,
- toast,
Tooltip,
TooltipContent,
TooltipTrigger,
+ toast,
VStack
} from "@carbon/react";
import { useFetcher, useParams } from "@remix-run/react";
import { useCallback, useEffect } from "react";
import { LuCopy, LuLink } from "react-icons/lu";
-import { zfd } from "zod-form-data";
import { z } from "zod/v3";
+import { zfd } from "zod-form-data";
import { Assignee, useOptimisticAssignment } from "~/components";
import {
Customer,
@@ -44,6 +44,7 @@ const SalesRFQProperties = () => {
}
}, [fetcher.data]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdate = useCallback(
(field: keyof SalesRFQ, value: string | null) => {
if (value === routeData?.rfqSummary[field]) {
@@ -63,6 +64,7 @@ const SalesRFQProperties = () => {
[rfqId, routeData?.rfqSummary]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const onUpdateCustomFields = useCallback(
(value: string) => {
const formData = new FormData();
diff --git a/apps/erp/app/modules/settings/ui/ApiKeys/ApiKeysForm.tsx b/apps/erp/app/modules/settings/ui/ApiKeys/ApiKeysForm.tsx
index d1ebcb0560..f59c50ce55 100644
--- a/apps/erp/app/modules/settings/ui/ApiKeys/ApiKeysForm.tsx
+++ b/apps/erp/app/modules/settings/ui/ApiKeys/ApiKeysForm.tsx
@@ -40,6 +40,7 @@ const ApiKeyForm = ({ initialValues, onClose }: ApiKeyFormProps) => {
const [key, setKey] = useState<string | null>(null);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (fetcher.data?.key) {
setKey(fetcher.data.key);
diff --git a/apps/erp/app/modules/settings/ui/ApiKeys/ApiKeysTable.tsx b/apps/erp/app/modules/settings/ui/ApiKeys/ApiKeysTable.tsx
index aa12e4020a..0cc2787678 100644
--- a/apps/erp/app/modules/settings/ui/ApiKeys/ApiKeysTable.tsx
+++ b/apps/erp/app/modules/settings/ui/ApiKeys/ApiKeysTable.tsx
@@ -79,6 +79,7 @@ const ApiKeysTable = memo(({ data, count }: ApiKeysTableProps) => {
];
}, [people]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const renderContextMenu = useCallback(
(row: (typeof data)[number]) => {
return (
diff --git a/apps/erp/app/modules/settings/ui/CustomFields/CustomFieldForm.tsx b/apps/erp/app/modules/settings/ui/CustomFields/CustomFieldForm.tsx
index 23f21e9aa9..90c0e5b058 100644
--- a/apps/erp/app/modules/settings/ui/CustomFields/CustomFieldForm.tsx
+++ b/apps/erp/app/modules/settings/ui/CustomFields/CustomFieldForm.tsx
@@ -1,3 +1,4 @@
+import { SelectControlled, ValidatedForm } from "@carbon/form";
import {
Button,
cn,
@@ -10,8 +11,6 @@ import {
HStack,
VStack
} from "@carbon/react";
-
-import { SelectControlled, ValidatedForm } from "@carbon/form";
import { useParams } from "@remix-run/react";
import { useState } from "react";
import {
@@ -25,6 +24,7 @@ import {
LuUser
} from "react-icons/lu";
import type { z } from "zod/v3";
+// biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
import { Array, Hidden, Input, Submit, Tags } from "~/components/Form";
import { usePermissions, useRouteData } from "~/hooks";
import type { AttributeDataType } from "~/modules/people";
diff --git a/apps/erp/app/modules/settings/ui/CustomFields/CustomFieldsTable.tsx b/apps/erp/app/modules/settings/ui/CustomFields/CustomFieldsTable.tsx
index 313b0c50e1..39b8d65b27 100644
--- a/apps/erp/app/modules/settings/ui/CustomFields/CustomFieldsTable.tsx
+++ b/apps/erp/app/modules/settings/ui/CustomFields/CustomFieldsTable.tsx
@@ -77,6 +77,7 @@ const CustomFieldsTable = memo(({ data, count }: CustomFieldsTableProps) => {
];
}, [params]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const renderContextMenu = useCallback(
(row: (typeof data)[number]) => {
return (
diff --git a/apps/erp/app/modules/settings/ui/Integrations/IntegrationForm.tsx b/apps/erp/app/modules/settings/ui/Integrations/IntegrationForm.tsx
index 123ac656bd..52826f11ab 100644
--- a/apps/erp/app/modules/settings/ui/Integrations/IntegrationForm.tsx
+++ b/apps/erp/app/modules/settings/ui/Integrations/IntegrationForm.tsx
@@ -1,6 +1,8 @@
import { integrations as availableIntegrations } from "@carbon/ee";
import {
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Array,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
Boolean,
Input,
Select,
diff --git a/apps/erp/app/modules/settings/ui/Sequences/SequenceForm.tsx b/apps/erp/app/modules/settings/ui/Sequences/SequenceForm.tsx
index cee297cdb9..5c4b407d6e 100644
--- a/apps/erp/app/modules/settings/ui/Sequences/SequenceForm.tsx
+++ b/apps/erp/app/modules/settings/ui/Sequences/SequenceForm.tsx
@@ -14,6 +14,7 @@ import {
import { useNavigate } from "@remix-run/react";
import { useState } from "react";
import type { z } from "zod/v3";
+// biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
import { Hidden, Input, Number, Submit } from "~/components/Form";
import { usePermissions } from "~/hooks";
import { sequenceValidator } from "~/modules/settings";
diff --git a/apps/erp/app/modules/settings/ui/Webhooks/WebhookForm.tsx b/apps/erp/app/modules/settings/ui/Webhooks/WebhookForm.tsx
index 2495f2a861..384d37f780 100644
--- a/apps/erp/app/modules/settings/ui/Webhooks/WebhookForm.tsx
+++ b/apps/erp/app/modules/settings/ui/Webhooks/WebhookForm.tsx
@@ -1,3 +1,4 @@
+// biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
import { Boolean, Input, Select, ValidatedForm } from "@carbon/form";
import {
Badge,
@@ -12,9 +13,9 @@ import {
FormLabel,
HStack,
Separator,
- VStack,
toast,
- useMount
+ useMount,
+ VStack
} from "@carbon/react";
import { useFetcher } from "@remix-run/react";
import type { PostgrestResponse } from "@supabase/supabase-js";
diff --git a/apps/erp/app/modules/settings/ui/Webhooks/WebhooksTable.tsx b/apps/erp/app/modules/settings/ui/Webhooks/WebhooksTable.tsx
index c85f9efd8b..377d009a28 100644
--- a/apps/erp/app/modules/settings/ui/Webhooks/WebhooksTable.tsx
+++ b/apps/erp/app/modules/settings/ui/Webhooks/WebhooksTable.tsx
@@ -156,6 +156,7 @@ const WebhooksTable = memo(({ data, count }: WebhooksTableProps) => {
];
}, [people, webhookTables]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const renderContextMenu = useCallback(
(row: (typeof data)[number]) => {
return (
diff --git a/apps/erp/app/modules/shared/shared.models.ts b/apps/erp/app/modules/shared/shared.models.ts
index c5295dcfb5..9263e1dddc 100644
--- a/apps/erp/app/modules/shared/shared.models.ts
+++ b/apps/erp/app/modules/shared/shared.models.ts
@@ -1,5 +1,5 @@
-import { zfd } from "zod-form-data";
import { z } from "zod/v3";
+import { zfd } from "zod-form-data";
export const chartIntervals = [
{ key: "week", label: "Week" },
@@ -107,6 +107,7 @@ export const operationStepValidator = z
.transform((val) => {
try {
return JSON.parse(val);
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
} catch (e) {
return {};
}
diff --git a/apps/erp/app/modules/users/ui/Customers/CreateCustomerModal.tsx b/apps/erp/app/modules/users/ui/Customers/CreateCustomerModal.tsx
index 027f34ab98..56c65bfdd5 100644
--- a/apps/erp/app/modules/users/ui/Customers/CreateCustomerModal.tsx
+++ b/apps/erp/app/modules/users/ui/Customers/CreateCustomerModal.tsx
@@ -135,6 +135,7 @@ const CustomerContact = ({
const customerContactFetcher =
useFetcher<Awaited<ReturnType<typeof getCustomerContacts>>>();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (customer) {
customerContactFetcher.load(path.to.api.customerContacts(customer));
@@ -175,6 +176,7 @@ const CustomerContact = ({
};
// so that we can call onChange on load
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (value && value === defaultValue) {
handleChange(value);
diff --git a/apps/erp/app/modules/users/ui/Employees/EmployeesTable.tsx b/apps/erp/app/modules/users/ui/Employees/EmployeesTable.tsx
index 61e3a6980d..fc623509c1 100644
--- a/apps/erp/app/modules/users/ui/Employees/EmployeesTable.tsx
+++ b/apps/erp/app/modules/users/ui/Employees/EmployeesTable.tsx
@@ -68,6 +68,7 @@ const EmployeesTable = memo(
const canEdit = permissions.can("update", "users");
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const columns = useMemo<ColumnDef<(typeof data)[number]>[]>(() => {
return [
{
diff --git a/apps/erp/app/modules/users/ui/Suppliers/CreateSupplierModal/CreateSupplierModal.tsx b/apps/erp/app/modules/users/ui/Suppliers/CreateSupplierModal/CreateSupplierModal.tsx
index e7edcb4649..cfe585a258 100644
--- a/apps/erp/app/modules/users/ui/Suppliers/CreateSupplierModal/CreateSupplierModal.tsx
+++ b/apps/erp/app/modules/users/ui/Suppliers/CreateSupplierModal/CreateSupplierModal.tsx
@@ -134,6 +134,7 @@ const SupplierContact = ({
const supplierContactFetcher =
useFetcher<Awaited<ReturnType<typeof getSupplierContacts>>>();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (supplier) {
supplierContactFetcher.load(path.to.api.supplierContacts(supplier));
@@ -173,6 +174,7 @@ const SupplierContact = ({
};
// so that we can call onChange on load
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (value && value === defaultValue) {
handleChange(value);
diff --git a/apps/erp/app/modules/users/users.server.ts b/apps/erp/app/modules/users/users.server.ts
index 6a5a0a7714..9868be5769 100644
--- a/apps/erp/app/modules/users/users.server.ts
+++ b/apps/erp/app/modules/users/users.server.ts
@@ -805,18 +805,22 @@ export function makeCompanyPermissionsFromClaims(
} else {
switch (action) {
case "view":
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
permissions[module]["view"] =
value.includes("0") || value.includes(companyId);
break;
case "create":
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
permissions[module]["create"] =
value.includes("0") || value.includes(companyId);
break;
case "update":
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
permissions[module]["update"] =
value.includes("0") || value.includes(companyId);
break;
case "delete":
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
permissions[module]["delete"] =
value.includes("0") || value.includes(companyId);
break;
@@ -826,10 +830,12 @@ export function makeCompanyPermissionsFromClaims(
});
if ("role" in claims) {
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
role = claims["role"] as string;
}
if ("items" in permissions) {
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
delete permissions["items"];
}
@@ -855,15 +861,19 @@ export function makePermissionsFromClaims(claims: Json[] | null) {
switch (action) {
case "view":
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
permissions[module]["view"] = value as string[];
break;
case "create":
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
permissions[module]["create"] = value as string[];
break;
case "update":
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
permissions[module]["update"] = value as string[];
break;
case "delete":
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
permissions[module]["delete"] = value as string[];
break;
}
@@ -871,10 +881,12 @@ export function makePermissionsFromClaims(claims: Json[] | null) {
});
if ("role" in claims) {
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
role = claims["role"] as string;
}
if ("items" in permissions) {
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
delete permissions["items"];
}
@@ -917,6 +929,7 @@ export function makeCompanyPermissionsFromEmployeeType(
});
if ("items" in result) {
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
delete result["items"];
}
@@ -1064,6 +1077,7 @@ export async function updatePermissions(
? {}
: claims.data
) as Record<string, string[]>;
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
delete updatedPermissions["role"];
// add any missing claims to the current claims
diff --git a/apps/erp/app/routes/api+/integrations.onshape.d.$did.v.$vid.e.$eid.bom.ts b/apps/erp/app/routes/api+/integrations.onshape.d.$did.v.$vid.e.$eid.bom.ts
index 3804a63d75..e756449af0 100644
--- a/apps/erp/app/routes/api+/integrations.onshape.d.$did.v.$vid.e.$eid.bom.ts
+++ b/apps/erp/app/routes/api+/integrations.onshape.d.$did.v.$vid.e.$eid.bom.ts
@@ -98,7 +98,9 @@ export async function loader({ request, params }: LoaderFunctionArgs) {
const uniquePartNumbers = new Set(
flattenedData.map((row) =>
getReadableIdWithRevision(
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
row["Part number"] || row["Name"],
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
row["Revision"]
)
)
@@ -137,7 +139,9 @@ export async function loader({ request, params }: LoaderFunctionArgs) {
const flattenedDataWithMetadata = flattenedData.map((row) => {
const item = itemsMap?.get(
getReadableIdWithRevision(
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
row["Part number"] || row["Name"],
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
row["Revision"]
)
);
@@ -158,18 +162,24 @@ export async function loader({ request, params }: LoaderFunctionArgs) {
}
return {
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
index: row["Item"],
readableId: row["Part number"],
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
revision: row["Revision"],
readableIdWithRevision: getReadableIdWithRevision(
row["Part number"],
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
row["Revision"]
),
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
name: row["Name"],
id: item?.itemId ?? undefined,
replenishmentSystem,
defaultMethodType,
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
quantity: row["Quantity"],
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
level: row["Item"].toString().split(".").length,
data: row
};
diff --git a/apps/erp/app/routes/api+/integrations.onshape.sync.ts b/apps/erp/app/routes/api+/integrations.onshape.sync.ts
index d71c7cae03..020aeb7a53 100644
--- a/apps/erp/app/routes/api+/integrations.onshape.sync.ts
+++ b/apps/erp/app/routes/api+/integrations.onshape.sync.ts
@@ -2,7 +2,7 @@ import { getCarbonServiceRole } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { onShapeDataValidator } from "@carbon/ee/onshape";
import { FunctionRegion } from "@supabase/supabase-js";
-import { json, type ActionFunctionArgs } from "@vercel/remix";
+import { type ActionFunctionArgs, json } from "@vercel/remix";
export async function action({ request }: ActionFunctionArgs) {
const { client, companyId, userId } = await requirePermissions(request, {
@@ -76,6 +76,7 @@ export async function action({ request }: ActionFunctionArgs) {
const currentExternalId =
(item.data?.externalId as Record<string, any>) ?? {};
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
currentExternalId["onshape"] = {
documentId,
versionId,
@@ -89,6 +90,7 @@ export async function action({ request }: ActionFunctionArgs) {
externalId: currentExternalId
})
.eq("id", record.data?.itemId as string);
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
} catch (error) {
console.error("Failed to sync onshape data");
return json(
diff --git a/apps/erp/app/routes/api+/integrations.slack.oauth.ts b/apps/erp/app/routes/api+/integrations.slack.oauth.ts
index df0071b272..37481befb5 100644
--- a/apps/erp/app/routes/api+/integrations.slack.oauth.ts
+++ b/apps/erp/app/routes/api+/integrations.slack.oauth.ts
@@ -12,7 +12,7 @@ import {
slackOAuthCallbackSchema,
slackOAuthTokenResponseSchema
} from "@carbon/ee/slack.server";
-import { json, redirect, type LoaderFunctionArgs } from "@vercel/remix";
+import { json, type LoaderFunctionArgs, redirect } from "@vercel/remix";
import { z } from "zod/v3";
import { upsertCompanyIntegration } from "~/modules/settings/settings.server";
import { path } from "~/utils/path";
@@ -89,6 +89,7 @@ export async function loader({ request }: LoaderFunctionArgs) {
let responseData;
try {
responseData = JSON.parse(responseText);
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
} catch (parseError) {
return json(
{ error: "Invalid JSON response from Slack" },
@@ -157,6 +158,7 @@ export async function loader({ request }: LoaderFunctionArgs) {
}
]
});
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
} catch (err) {
// Silently fail if welcome message can't be posted
}
@@ -177,6 +179,7 @@ export async function loader({ request }: LoaderFunctionArgs) {
{ status: 500 }
);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
} catch (err) {
return json(
{ error: "Failed to exchange code for token" },
diff --git a/apps/erp/app/routes/api+/purchasing.digital-quote.$id.tsx b/apps/erp/app/routes/api+/purchasing.digital-quote.$id.tsx
index 89958452f4..9f6a5d2008 100644
--- a/apps/erp/app/routes/api+/purchasing.digital-quote.$id.tsx
+++ b/apps/erp/app/routes/api+/purchasing.digital-quote.$id.tsx
@@ -110,6 +110,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
let parsedData: unknown;
try {
parsedData = JSON.parse(selectedLinesRaw);
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
} catch (e) {
return json({
success: false,
diff --git a/apps/erp/app/routes/api+/webhook.paperless-parts.$companyId.ts b/apps/erp/app/routes/api+/webhook.paperless-parts.$companyId.ts
index 07a8fa1ec1..ad6d438173 100644
--- a/apps/erp/app/routes/api+/webhook.paperless-parts.$companyId.ts
+++ b/apps/erp/app/routes/api+/webhook.paperless-parts.$companyId.ts
@@ -107,6 +107,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
});
return json({ success: true });
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
} catch (err) {
return json({ success: false }, { status: 500 });
}
diff --git a/apps/erp/app/routes/onboarding+/company.tsx b/apps/erp/app/routes/onboarding+/company.tsx
index 1150f5d3c7..4e40611e3c 100644
--- a/apps/erp/app/routes/onboarding+/company.tsx
+++ b/apps/erp/app/routes/onboarding+/company.tsx
@@ -21,7 +21,7 @@ import { Edition } from "@carbon/utils";
import { getLocalTimeZone } from "@internationalized/date";
import { Link, useLoaderData } from "@remix-run/react";
import { tasks } from "@trigger.dev/sdk";
-import { json, redirect, type ActionFunctionArgs } from "@vercel/remix";
+import { type ActionFunctionArgs, json, redirect } from "@vercel/remix";
import {
AddressAutocomplete,
Currency,
@@ -134,6 +134,7 @@ export async function action({ request }: ActionFunctionArgs) {
});
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { baseCurrencyCode, website, ...locationData } = data;
// TODO: move all of this to transaction
diff --git a/apps/erp/app/routes/onboarding+/theme.tsx b/apps/erp/app/routes/onboarding+/theme.tsx
index 5f85ac31ff..c426ca0d02 100644
--- a/apps/erp/app/routes/onboarding+/theme.tsx
+++ b/apps/erp/app/routes/onboarding+/theme.tsx
@@ -83,6 +83,7 @@ export default function OnboardingTheme() {
});
};
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
const t = themes.find((t) => t.name === theme);
if (t) {
diff --git a/apps/erp/app/routes/share+/quote.$id.tsx b/apps/erp/app/routes/share+/quote.$id.tsx
index 41fbf86c09..7bb0d9627f 100644
--- a/apps/erp/app/routes/share+/quote.$id.tsx
+++ b/apps/erp/app/routes/share+/quote.$id.tsx
@@ -28,8 +28,8 @@ import {
Td,
Th,
Thead,
- toast,
Tr,
+ toast,
useDisclosure,
VStack
} from "@carbon/react";
@@ -375,6 +375,7 @@ const Header = ({
)}
{quote?.expirationDate && (
<p className="text-lg text-muted-foreground">
+ {/** biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration */}
{strings["Expires"]} {formatDate(quote.expirationDate)}
</p>
)}
@@ -467,6 +468,7 @@ const LineItems = ({
? quoteLines.map((line) => line.id!).filter(Boolean)
: []
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
Object.entries(selectedLines).forEach(([lineId, line]) => {
if (line.quantity === 0 && openItems.includes(lineId)) {
@@ -1002,6 +1004,7 @@ const Quote = ({
const mode = useMode();
const logo = mode === "dark" ? company?.logoDark : company?.logoLight;
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (fetcher.state === "idle" && submitted.current) {
confirmQuoteModal.onClose();
diff --git a/apps/erp/app/routes/share+/scar.$id.tsx b/apps/erp/app/routes/share+/scar.$id.tsx
index a614463f75..d83a06b63f 100644
--- a/apps/erp/app/routes/share+/scar.$id.tsx
+++ b/apps/erp/app/routes/share+/scar.$id.tsx
@@ -4,6 +4,8 @@ import {
getCarbonServiceRole,
success
} from "@carbon/auth";
+import { flash } from "@carbon/auth/session.server";
+import { validationError, validator } from "@carbon/form";
import type { JSONContent } from "@carbon/react";
import {
Button,
@@ -19,9 +21,6 @@ import {
useDisclosure,
VStack
} from "@carbon/react";
-
-import { flash } from "@carbon/auth/session.server";
-import { validationError, validator } from "@carbon/form";
import { Editor } from "@carbon/react/Editor";
import { useMode } from "@carbon/remix";
import {
@@ -154,6 +153,7 @@ export const scarValidator = z.object({
}
try {
return JSON.parse(str);
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
} catch (e) {
ctx.addIssue({ code: "custom", message: "Invalid JSON" });
return z.NEVER;
diff --git a/apps/erp/app/routes/share+/training.$id.tsx b/apps/erp/app/routes/share+/training.$id.tsx
index 0f1f17a207..e7424ff019 100644
--- a/apps/erp/app/routes/share+/training.$id.tsx
+++ b/apps/erp/app/routes/share+/training.$id.tsx
@@ -255,6 +255,7 @@ export default function TrainingWizard() {
if (actionData) {
setIsSubmitted(true);
if (actionData.passed && audioRef.current) {
+ // biome-ignore lint/suspicious/noEmptyBlockStatements: suppressed due to migration
audioRef.current.play().catch(() => {});
}
}
diff --git a/apps/erp/app/routes/x+/account+/$userId.attribute.tsx b/apps/erp/app/routes/x+/account+/$userId.attribute.tsx
index d98f4f2016..8295752078 100644
--- a/apps/erp/app/routes/x+/account+/$userId.attribute.tsx
+++ b/apps/erp/app/routes/x+/account+/$userId.attribute.tsx
@@ -34,6 +34,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
const clientClaims = await getUserClaims(userId, companyId);
const canUpdateAnyUser =
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
clientClaims.permissions["users"]?.update?.includes(companyId);
if (!canUpdateAnyUser && userId !== targetUserId) {
diff --git a/apps/erp/app/routes/x+/account+/$userId.delete.attribute.tsx b/apps/erp/app/routes/x+/account+/$userId.delete.attribute.tsx
index b160a92901..6dec99cec1 100644
--- a/apps/erp/app/routes/x+/account+/$userId.delete.attribute.tsx
+++ b/apps/erp/app/routes/x+/account+/$userId.delete.attribute.tsx
@@ -27,6 +27,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
const clientClaims = await getUserClaims(userId, companyId);
const canUpdateAnyUser =
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
clientClaims.permissions["resources"]?.update?.includes(companyId);
if (!canUpdateAnyUser && userId !== targetUserId) {
diff --git a/apps/erp/app/routes/x+/accounting+/categories.list.$categoryId.new.tsx b/apps/erp/app/routes/x+/accounting+/categories.list.$categoryId.new.tsx
index d648303fb4..10f9f01050 100644
--- a/apps/erp/app/routes/x+/accounting+/categories.list.$categoryId.new.tsx
+++ b/apps/erp/app/routes/x+/accounting+/categories.list.$categoryId.new.tsx
@@ -1,16 +1,15 @@
-import { useNavigate, useParams } from "@remix-run/react";
-import {
- accountSubcategoryValidator,
- upsertAccountSubcategory
-} from "~/modules/accounting";
-import { AccountSubcategoryForm } from "~/modules/accounting/ui/AccountCategories";
-
import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
+import { useNavigate, useParams } from "@remix-run/react";
import type { ActionFunctionArgs } from "@vercel/remix";
import { json, redirect } from "@vercel/remix";
+import {
+ accountSubcategoryValidator,
+ upsertAccountSubcategory
+} from "~/modules/accounting";
+import { AccountSubcategoryForm } from "~/modules/accounting/ui/AccountCategories";
import { setCustomFields } from "~/utils/form";
import { getParams, path } from "~/utils/path";
@@ -30,6 +29,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const createSubcategory = await upsertAccountSubcategory(client, {
diff --git a/apps/erp/app/routes/x+/accounting+/categories.new.tsx b/apps/erp/app/routes/x+/accounting+/categories.new.tsx
index 0bd2590b98..597753bd6e 100644
--- a/apps/erp/app/routes/x+/accounting+/categories.new.tsx
+++ b/apps/erp/app/routes/x+/accounting+/categories.new.tsx
@@ -30,6 +30,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const createAccountCategory = await upsertAccountCategory(client, {
diff --git a/apps/erp/app/routes/x+/accounting+/charts.new.tsx b/apps/erp/app/routes/x+/accounting+/charts.new.tsx
index 49161c9642..e9f5c5533c 100644
--- a/apps/erp/app/routes/x+/accounting+/charts.new.tsx
+++ b/apps/erp/app/routes/x+/accounting+/charts.new.tsx
@@ -36,6 +36,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const insertAccount = await upsertAccount(client, {
diff --git a/apps/erp/app/routes/x+/accounting+/payment-terms.new.tsx b/apps/erp/app/routes/x+/accounting+/payment-terms.new.tsx
index 0ae21b8abd..d2830e37ea 100644
--- a/apps/erp/app/routes/x+/accounting+/payment-terms.new.tsx
+++ b/apps/erp/app/routes/x+/accounting+/payment-terms.new.tsx
@@ -36,6 +36,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const insertPaymentTerm = await upsertPaymentTerm(client, {
diff --git a/apps/erp/app/routes/x+/accounting+/subcategory.$subcategoryId.tsx b/apps/erp/app/routes/x+/accounting+/subcategory.$subcategoryId.tsx
index b72a708fc2..ed9f462dd1 100644
--- a/apps/erp/app/routes/x+/accounting+/subcategory.$subcategoryId.tsx
+++ b/apps/erp/app/routes/x+/accounting+/subcategory.$subcategoryId.tsx
@@ -29,6 +29,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const update = await upsertAccountSubcategory(client, {
diff --git a/apps/erp/app/routes/x+/api+/$lang.rpc.$id.tsx b/apps/erp/app/routes/x+/api+/$lang.rpc.$id.tsx
index b8f9f65001..da90098c64 100644
--- a/apps/erp/app/routes/x+/api+/$lang.rpc.$id.tsx
+++ b/apps/erp/app/routes/x+/api+/$lang.rpc.$id.tsx
@@ -7,6 +7,7 @@ const functionPath = "rpc/";
export default function Route() {
const swaggerDocsSchema = useSwaggerDocs();
//
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { rpcs } = Object.entries(swaggerDocsSchema?.paths || {}).reduce(
(a, [name]) => {
const trimmedName = name.slice(1);
@@ -33,6 +34,7 @@ export default function Route() {
},
{ rpcs: {} }
);
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const selectedLang = useSelectedLang();
return null;
diff --git a/apps/erp/app/routes/x+/consumable+/$itemId.view.purchasing.new.tsx b/apps/erp/app/routes/x+/consumable+/$itemId.view.purchasing.new.tsx
index fac76ead6a..ed50b922a2 100644
--- a/apps/erp/app/routes/x+/consumable+/$itemId.view.purchasing.new.tsx
+++ b/apps/erp/app/routes/x+/consumable+/$itemId.view.purchasing.new.tsx
@@ -27,6 +27,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const createConsumableSupplier = await upsertSupplierPart(client, {
diff --git a/apps/erp/app/routes/x+/customer+/$customerId.contacts.new.tsx b/apps/erp/app/routes/x+/customer+/$customerId.contacts.new.tsx
index 36e37a6d0a..aa98c4816f 100644
--- a/apps/erp/app/routes/x+/customer+/$customerId.contacts.new.tsx
+++ b/apps/erp/app/routes/x+/customer+/$customerId.contacts.new.tsx
@@ -44,6 +44,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, contactId, customerLocationId, ...contact } = validation.data;
const createCustomerContact = await insertCustomerContact(client, {
diff --git a/apps/erp/app/routes/x+/customer+/$customerId.locations.$customerLocationId.tsx b/apps/erp/app/routes/x+/customer+/$customerId.locations.$customerLocationId.tsx
index 7583b7141d..45c940c712 100644
--- a/apps/erp/app/routes/x+/customer+/$customerId.locations.$customerLocationId.tsx
+++ b/apps/erp/app/routes/x+/customer+/$customerId.locations.$customerLocationId.tsx
@@ -66,6 +66,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, addressId, name, ...address } = validation.data;
if (addressId === undefined)
diff --git a/apps/erp/app/routes/x+/customer+/$customerId.locations.new.tsx b/apps/erp/app/routes/x+/customer+/$customerId.locations.new.tsx
index b3df5a3b03..c219ed4273 100644
--- a/apps/erp/app/routes/x+/customer+/$customerId.locations.new.tsx
+++ b/apps/erp/app/routes/x+/customer+/$customerId.locations.new.tsx
@@ -36,6 +36,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, addressId, name, ...address } = validation.data;
const createCustomerLocation = await insertCustomerLocation(client, {
diff --git a/apps/erp/app/routes/x+/customer+/new.tsx b/apps/erp/app/routes/x+/customer+/new.tsx
index e2f17c4587..23e3c03ac8 100644
--- a/apps/erp/app/routes/x+/customer+/new.tsx
+++ b/apps/erp/app/routes/x+/customer+/new.tsx
@@ -32,6 +32,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const createCustomer = await upsertCustomer(client, {
diff --git a/apps/erp/app/routes/x+/inventory+/kanbans.new.tsx b/apps/erp/app/routes/x+/inventory+/kanbans.new.tsx
index ab4cb83435..5c44d4bb66 100644
--- a/apps/erp/app/routes/x+/inventory+/kanbans.new.tsx
+++ b/apps/erp/app/routes/x+/inventory+/kanbans.new.tsx
@@ -31,6 +31,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const createKanban = await upsertKanban(client, {
diff --git a/apps/erp/app/routes/x+/inventory+/shelves.new.tsx b/apps/erp/app/routes/x+/inventory+/shelves.new.tsx
index f06d8c4aff..69e43084ab 100644
--- a/apps/erp/app/routes/x+/inventory+/shelves.new.tsx
+++ b/apps/erp/app/routes/x+/inventory+/shelves.new.tsx
@@ -35,6 +35,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const createShelf = await upsertShelf(client, {
diff --git a/apps/erp/app/routes/x+/inventory+/shipping-methods.new.tsx b/apps/erp/app/routes/x+/inventory+/shipping-methods.new.tsx
index d7594c497f..44a947984d 100644
--- a/apps/erp/app/routes/x+/inventory+/shipping-methods.new.tsx
+++ b/apps/erp/app/routes/x+/inventory+/shipping-methods.new.tsx
@@ -41,6 +41,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const insertShippingMethod = await upsertShippingMethod(client, {
diff --git a/apps/erp/app/routes/x+/issue+/new.tsx b/apps/erp/app/routes/x+/issue+/new.tsx
index 99ef092617..4784b7ca8f 100644
--- a/apps/erp/app/routes/x+/issue+/new.tsx
+++ b/apps/erp/app/routes/x+/issue+/new.tsx
@@ -78,6 +78,7 @@ export async function action({ request }: ActionFunctionArgs) {
);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...nonConformance } = validation.data;
const createIssue = await upsertIssue(serviceRole, {
diff --git a/apps/erp/app/routes/x+/issue-workflow+/new.tsx b/apps/erp/app/routes/x+/issue-workflow+/new.tsx
index 650c53c54b..fdee659464 100644
--- a/apps/erp/app/routes/x+/issue-workflow+/new.tsx
+++ b/apps/erp/app/routes/x+/issue-workflow+/new.tsx
@@ -38,6 +38,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const insertIssueWorkflow = await upsertIssueWorkflow(client, {
diff --git a/apps/erp/app/routes/x+/items+/dimensions.new.tsx b/apps/erp/app/routes/x+/items+/dimensions.new.tsx
index 3eed55525f..61b9090fe3 100644
--- a/apps/erp/app/routes/x+/items+/dimensions.new.tsx
+++ b/apps/erp/app/routes/x+/items+/dimensions.new.tsx
@@ -39,6 +39,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const settings = await getCompanySettings(client, companyId);
diff --git a/apps/erp/app/routes/x+/items+/finishes.new.tsx b/apps/erp/app/routes/x+/items+/finishes.new.tsx
index 5a7c127a7b..5f23663c5d 100644
--- a/apps/erp/app/routes/x+/items+/finishes.new.tsx
+++ b/apps/erp/app/routes/x+/items+/finishes.new.tsx
@@ -35,6 +35,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const insertMaterialFinish = await upsertMaterialFinish(client, {
diff --git a/apps/erp/app/routes/x+/items+/forms.new.tsx b/apps/erp/app/routes/x+/items+/forms.new.tsx
index 34b2e14c49..2df134af84 100644
--- a/apps/erp/app/routes/x+/items+/forms.new.tsx
+++ b/apps/erp/app/routes/x+/items+/forms.new.tsx
@@ -33,6 +33,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const insertMaterialForm = await upsertMaterialForm(client, {
diff --git a/apps/erp/app/routes/x+/items+/grades.new.tsx b/apps/erp/app/routes/x+/items+/grades.new.tsx
index 32916a6249..481ec18c7c 100644
--- a/apps/erp/app/routes/x+/items+/grades.new.tsx
+++ b/apps/erp/app/routes/x+/items+/grades.new.tsx
@@ -33,6 +33,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const insertMaterialGrade = await upsertMaterialGrade(client, {
diff --git a/apps/erp/app/routes/x+/items+/groups.new.tsx b/apps/erp/app/routes/x+/items+/groups.new.tsx
index 28f9c7b48e..b3999b41b3 100644
--- a/apps/erp/app/routes/x+/items+/groups.new.tsx
+++ b/apps/erp/app/routes/x+/items+/groups.new.tsx
@@ -38,6 +38,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const insertItemPostingGroup = await upsertItemPostingGroup(client, {
diff --git a/apps/erp/app/routes/x+/items+/substances.new.tsx b/apps/erp/app/routes/x+/items+/substances.new.tsx
index b7d2e4ae6e..79e4ff581a 100644
--- a/apps/erp/app/routes/x+/items+/substances.new.tsx
+++ b/apps/erp/app/routes/x+/items+/substances.new.tsx
@@ -38,6 +38,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const insertMaterialSubstance = await upsertMaterialSubstance(client, {
diff --git a/apps/erp/app/routes/x+/items+/types.new.tsx b/apps/erp/app/routes/x+/items+/types.new.tsx
index 2c589f7006..97e53dca0e 100644
--- a/apps/erp/app/routes/x+/items+/types.new.tsx
+++ b/apps/erp/app/routes/x+/items+/types.new.tsx
@@ -35,6 +35,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const insertMaterialType = await upsertMaterialType(client, {
diff --git a/apps/erp/app/routes/x+/items+/uom.new.tsx b/apps/erp/app/routes/x+/items+/uom.new.tsx
index fb052b633c..6b4bb9d29f 100644
--- a/apps/erp/app/routes/x+/items+/uom.new.tsx
+++ b/apps/erp/app/routes/x+/items+/uom.new.tsx
@@ -35,6 +35,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const insertUnitOfMeasure = await upsertUnitOfMeasure(client, {
diff --git a/apps/erp/app/routes/x+/job+/$jobId.events.new.tsx b/apps/erp/app/routes/x+/job+/$jobId.events.new.tsx
index ec51f10537..8e8fabe62c 100644
--- a/apps/erp/app/routes/x+/job+/$jobId.events.new.tsx
+++ b/apps/erp/app/routes/x+/job+/$jobId.events.new.tsx
@@ -54,6 +54,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const insert = await upsertProductionEvent(client, {
diff --git a/apps/erp/app/routes/x+/job+/$jobId.materials.session.new.tsx b/apps/erp/app/routes/x+/job+/$jobId.materials.session.new.tsx
index 67aa7f6d6e..3872fd2859 100644
--- a/apps/erp/app/routes/x+/job+/$jobId.materials.session.new.tsx
+++ b/apps/erp/app/routes/x+/job+/$jobId.materials.session.new.tsx
@@ -40,6 +40,7 @@ const jobMaterialsSessionValidator = z.object({
})
);
return itemsSchema.parse(parsed);
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
} catch (error) {
ctx.addIssue({
code: z.ZodIssueCode.custom,
diff --git a/apps/erp/app/routes/x+/material+/$itemId.view.purchasing.new.tsx b/apps/erp/app/routes/x+/material+/$itemId.view.purchasing.new.tsx
index a78057c2c4..e7642fad04 100644
--- a/apps/erp/app/routes/x+/material+/$itemId.view.purchasing.new.tsx
+++ b/apps/erp/app/routes/x+/material+/$itemId.view.purchasing.new.tsx
@@ -27,6 +27,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const createMaterialSupplier = await upsertSupplierPart(client, {
diff --git a/apps/erp/app/routes/x+/part+/$itemId.view.purchasing.new.tsx b/apps/erp/app/routes/x+/part+/$itemId.view.purchasing.new.tsx
index 59783cee47..3f72d065ba 100644
--- a/apps/erp/app/routes/x+/part+/$itemId.view.purchasing.new.tsx
+++ b/apps/erp/app/routes/x+/part+/$itemId.view.purchasing.new.tsx
@@ -30,6 +30,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
});
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const createPartSupplier = await upsertSupplierPart(client, {
diff --git a/apps/erp/app/routes/x+/part+/$itemId.view.sales.customer-parts.$customerPartToItemId.tsx b/apps/erp/app/routes/x+/part+/$itemId.view.sales.customer-parts.$customerPartToItemId.tsx
index 90419d6902..64668c835a 100644
--- a/apps/erp/app/routes/x+/part+/$itemId.view.sales.customer-parts.$customerPartToItemId.tsx
+++ b/apps/erp/app/routes/x+/part+/$itemId.view.sales.customer-parts.$customerPartToItemId.tsx
@@ -60,6 +60,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const updatedCustomerPart = await upsertItemCustomerPart(client, {
diff --git a/apps/erp/app/routes/x+/part+/$itemId.view.sales.customer-parts.new.tsx b/apps/erp/app/routes/x+/part+/$itemId.view.sales.customer-parts.new.tsx
index 8c783cc944..d2f62d1c10 100644
--- a/apps/erp/app/routes/x+/part+/$itemId.view.sales.customer-parts.new.tsx
+++ b/apps/erp/app/routes/x+/part+/$itemId.view.sales.customer-parts.new.tsx
@@ -46,6 +46,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const createCustomerPart = await upsertItemCustomerPart(client, {
diff --git a/apps/erp/app/routes/x+/people+/departments.new.tsx b/apps/erp/app/routes/x+/people+/departments.new.tsx
index c7b99ea4e3..6cd5670fdb 100644
--- a/apps/erp/app/routes/x+/people+/departments.new.tsx
+++ b/apps/erp/app/routes/x+/people+/departments.new.tsx
@@ -25,6 +25,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const createDepartment = await upsertDepartment(client, {
diff --git a/apps/erp/app/routes/x+/people+/holidays.new.tsx b/apps/erp/app/routes/x+/people+/holidays.new.tsx
index 652c427d60..64a6d36107 100644
--- a/apps/erp/app/routes/x+/people+/holidays.new.tsx
+++ b/apps/erp/app/routes/x+/people+/holidays.new.tsx
@@ -22,6 +22,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const createHoliday = await upsertHoliday(client, {
diff --git a/apps/erp/app/routes/x+/people+/shifts.new.tsx b/apps/erp/app/routes/x+/people+/shifts.new.tsx
index 0a989a3737..428e5fdc5d 100644
--- a/apps/erp/app/routes/x+/people+/shifts.new.tsx
+++ b/apps/erp/app/routes/x+/people+/shifts.new.tsx
@@ -22,6 +22,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const createShift = await upsertShift(client, {
diff --git a/apps/erp/app/routes/x+/procedure+/$id.parameters.new.tsx b/apps/erp/app/routes/x+/procedure+/$id.parameters.new.tsx
index 17a9387fab..b615f082fc 100644
--- a/apps/erp/app/routes/x+/procedure+/$id.parameters.new.tsx
+++ b/apps/erp/app/routes/x+/procedure+/$id.parameters.new.tsx
@@ -1,12 +1,11 @@
-import { json } from "@remix-run/react";
-
import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validator } from "@carbon/form";
+import { json } from "@remix-run/react";
import type { ActionFunctionArgs } from "@vercel/remix";
-import { upsertProcedureParameter } from "~/modules/production/production.service";
import { procedureParameterValidator } from "~/modules/production/production.models";
+import { upsertProcedureParameter } from "~/modules/production/production.service";
export async function action({ request, params }: ActionFunctionArgs) {
assertIsPost(request);
@@ -31,6 +30,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const create = await upsertProcedureParameter(client, {
diff --git a/apps/erp/app/routes/x+/procedure+/$id.steps.new.tsx b/apps/erp/app/routes/x+/procedure+/$id.steps.new.tsx
index 8ce0d7efc6..460ef9e59a 100644
--- a/apps/erp/app/routes/x+/procedure+/$id.steps.new.tsx
+++ b/apps/erp/app/routes/x+/procedure+/$id.steps.new.tsx
@@ -1,9 +1,8 @@
-import { json } from "@remix-run/react";
-
import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validator } from "@carbon/form";
+import { json } from "@remix-run/react";
import type { ActionFunctionArgs } from "@vercel/remix";
import { procedureStepValidator } from "~/modules/production/production.models";
import { upsertProcedureStep } from "~/modules/production/production.service";
@@ -28,6 +27,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const create = await upsertProcedureStep(client, {
diff --git a/apps/erp/app/routes/x+/production+/_index.tsx b/apps/erp/app/routes/x+/production+/_index.tsx
index 037167645d..75ee8ed509 100644
--- a/apps/erp/app/routes/x+/production+/_index.tsx
+++ b/apps/erp/app/routes/x+/production+/_index.tsx
@@ -154,6 +154,7 @@ export default function ProductionDashboard() {
return dateRange.end.compare(dateRange.start) * 24 * 60 * 60 * 1000;
}, [dateRange]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
kpiFetcher.load(
`${path.to.api.productionKpi(
@@ -726,6 +727,7 @@ function WorkCenterCards({
return acc;
}, {});
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { carbon, accessToken } = useCarbon();
const {
company: { id: companyId }
diff --git a/apps/erp/app/routes/x+/production+/procedures.new.tsx b/apps/erp/app/routes/x+/production+/procedures.new.tsx
index 8332619deb..cbad9b10ba 100644
--- a/apps/erp/app/routes/x+/production+/procedures.new.tsx
+++ b/apps/erp/app/routes/x+/production+/procedures.new.tsx
@@ -32,11 +32,13 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, content, ...data } = validation.data;
let contentJSON;
try {
contentJSON = content ? JSON.parse(content) : {};
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
} catch (e) {
return json(
{},
diff --git a/apps/erp/app/routes/x+/production+/scrap-reasons.new.tsx b/apps/erp/app/routes/x+/production+/scrap-reasons.new.tsx
index c1354b9047..74a5276e1c 100644
--- a/apps/erp/app/routes/x+/production+/scrap-reasons.new.tsx
+++ b/apps/erp/app/routes/x+/production+/scrap-reasons.new.tsx
@@ -33,6 +33,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const insertScrapReason = await upsertScrapReason(client, {
diff --git a/apps/erp/app/routes/x+/purchase-invoice+/$invoiceId.$lineId.details.tsx b/apps/erp/app/routes/x+/purchase-invoice+/$invoiceId.$lineId.details.tsx
index 3d8025f957..5e253b54bb 100644
--- a/apps/erp/app/routes/x+/purchase-invoice+/$invoiceId.$lineId.details.tsx
+++ b/apps/erp/app/routes/x+/purchase-invoice+/$invoiceId.$lineId.details.tsx
@@ -11,8 +11,8 @@ import { defer, redirect } from "@vercel/remix";
import { Suspense } from "react";
import { Fragment } from "react/jsx-runtime";
import {
- PurchaseInvoiceLineForm,
getPurchaseInvoiceLine,
+ PurchaseInvoiceLineForm,
purchaseInvoiceLineValidator,
upsertPurchaseInvoiceLine
} from "~/modules/invoicing";
@@ -61,6 +61,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
// if (data.invoiceLineType === "G/L Account") {
diff --git a/apps/erp/app/routes/x+/purchase-invoice+/$invoiceId.new.tsx b/apps/erp/app/routes/x+/purchase-invoice+/$invoiceId.new.tsx
index a5233c3e1f..ed5fe7390c 100644
--- a/apps/erp/app/routes/x+/purchase-invoice+/$invoiceId.new.tsx
+++ b/apps/erp/app/routes/x+/purchase-invoice+/$invoiceId.new.tsx
@@ -35,6 +35,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const createPurchaseInvoiceLine = await upsertPurchaseInvoiceLine(client, {
diff --git a/apps/erp/app/routes/x+/purchase-invoice+/$invoiceId.post.tsx b/apps/erp/app/routes/x+/purchase-invoice+/$invoiceId.post.tsx
index 49d01390f2..f4eb10979a 100644
--- a/apps/erp/app/routes/x+/purchase-invoice+/$invoiceId.post.tsx
+++ b/apps/erp/app/routes/x+/purchase-invoice+/$invoiceId.post.tsx
@@ -87,6 +87,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
});
}
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
} catch (error) {
await client
.from("purchaseInvoice")
diff --git a/apps/erp/app/routes/x+/purchase-invoice+/new.tsx b/apps/erp/app/routes/x+/purchase-invoice+/new.tsx
index 550e474173..3febb6d10f 100644
--- a/apps/erp/app/routes/x+/purchase-invoice+/new.tsx
+++ b/apps/erp/app/routes/x+/purchase-invoice+/new.tsx
@@ -78,6 +78,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
let invoiceId = data.invoiceId;
const useNextSequence = !invoiceId;
diff --git a/apps/erp/app/routes/x+/purchase-order+/$orderId.$lineId.details.tsx b/apps/erp/app/routes/x+/purchase-order+/$orderId.$lineId.details.tsx
index a116a1a214..a35124a6fa 100644
--- a/apps/erp/app/routes/x+/purchase-order+/$orderId.$lineId.details.tsx
+++ b/apps/erp/app/routes/x+/purchase-order+/$orderId.$lineId.details.tsx
@@ -69,6 +69,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
// if (data.purchaseOrderLineType === "G/L Account") {
diff --git a/apps/erp/app/routes/x+/purchase-order+/$orderId.new.tsx b/apps/erp/app/routes/x+/purchase-order+/$orderId.new.tsx
index b39c813967..ca083e0929 100644
--- a/apps/erp/app/routes/x+/purchase-order+/$orderId.new.tsx
+++ b/apps/erp/app/routes/x+/purchase-order+/$orderId.new.tsx
@@ -32,6 +32,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const createPurchaseOrderLine = await upsertPurchaseOrderLine(client, {
diff --git a/apps/erp/app/routes/x+/purchasing+/_index.tsx b/apps/erp/app/routes/x+/purchasing+/_index.tsx
index 956eb2df2b..80667bb04a 100644
--- a/apps/erp/app/routes/x+/purchasing+/_index.tsx
+++ b/apps/erp/app/routes/x+/purchasing+/_index.tsx
@@ -209,6 +209,7 @@ export default function PurchaseDashboard() {
chartIntervals.find((i) => i.key === interval) || chartIntervals[1];
const selectedKpiData = KPIs.find((k) => k.key === selectedKpi) || KPIs[0];
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
kpiFetcher.load(
`${path.to.api.purchasingKpi(
diff --git a/apps/erp/app/routes/x+/purchasing+/supplier-statuses.new.tsx b/apps/erp/app/routes/x+/purchasing+/supplier-statuses.new.tsx
index ce60e21b97..c92ce660a6 100644
--- a/apps/erp/app/routes/x+/purchasing+/supplier-statuses.new.tsx
+++ b/apps/erp/app/routes/x+/purchasing+/supplier-statuses.new.tsx
@@ -38,6 +38,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const insertSupplierStatus = await upsertSupplierStatus(client, {
diff --git a/apps/erp/app/routes/x+/purchasing+/supplier-types.new.tsx b/apps/erp/app/routes/x+/purchasing+/supplier-types.new.tsx
index af3e2ebeec..e47cb1ad29 100644
--- a/apps/erp/app/routes/x+/purchasing+/supplier-types.new.tsx
+++ b/apps/erp/app/routes/x+/purchasing+/supplier-types.new.tsx
@@ -38,6 +38,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const insertSupplierType = await upsertSupplierType(client, {
diff --git a/apps/erp/app/routes/x+/quality+/documents.new.tsx b/apps/erp/app/routes/x+/quality+/documents.new.tsx
index f24c2df277..3e1ee4a390 100644
--- a/apps/erp/app/routes/x+/quality+/documents.new.tsx
+++ b/apps/erp/app/routes/x+/quality+/documents.new.tsx
@@ -32,11 +32,13 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, content, ...data } = validation.data;
let contentJSON;
try {
contentJSON = content ? JSON.parse(content) : {};
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
} catch (e) {
return json(
{},
diff --git a/apps/erp/app/routes/x+/quality+/gauge-types.new.tsx b/apps/erp/app/routes/x+/quality+/gauge-types.new.tsx
index 5513a19ca4..b1f2e6873d 100644
--- a/apps/erp/app/routes/x+/quality+/gauge-types.new.tsx
+++ b/apps/erp/app/routes/x+/quality+/gauge-types.new.tsx
@@ -33,6 +33,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const insertGaugeType = await upsertGaugeType(client, {
diff --git a/apps/erp/app/routes/x+/quality+/issue-types.new.tsx b/apps/erp/app/routes/x+/quality+/issue-types.new.tsx
index 81f868e49a..ab06a2faf0 100644
--- a/apps/erp/app/routes/x+/quality+/issue-types.new.tsx
+++ b/apps/erp/app/routes/x+/quality+/issue-types.new.tsx
@@ -33,6 +33,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const insertIssueType = await upsertIssueType(client, {
diff --git a/apps/erp/app/routes/x+/quality-document+/$id.steps.new.tsx b/apps/erp/app/routes/x+/quality-document+/$id.steps.new.tsx
index 59b17a0c88..9bcef68f35 100644
--- a/apps/erp/app/routes/x+/quality-document+/$id.steps.new.tsx
+++ b/apps/erp/app/routes/x+/quality-document+/$id.steps.new.tsx
@@ -1,9 +1,8 @@
-import { json } from "@remix-run/react";
-
import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validator } from "@carbon/form";
+import { json } from "@remix-run/react";
import type { ActionFunctionArgs } from "@vercel/remix";
import { qualityDocumentStepValidator } from "~/modules/quality/quality.models";
import { upsertQualityDocumentStep } from "~/modules/quality/quality.service";
@@ -28,6 +27,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const create = await upsertQualityDocumentStep(client, {
diff --git a/apps/erp/app/routes/x+/quote+/$quoteId.$lineId.details.tsx b/apps/erp/app/routes/x+/quote+/$quoteId.$lineId.details.tsx
index 3d996a3850..bef9b73347 100644
--- a/apps/erp/app/routes/x+/quote+/$quoteId.$lineId.details.tsx
+++ b/apps/erp/app/routes/x+/quote+/$quoteId.$lineId.details.tsx
@@ -98,6 +98,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const updateQuotationLine = await upsertQuoteLine(client, {
diff --git a/apps/erp/app/routes/x+/quote+/$quoteId.new.tsx b/apps/erp/app/routes/x+/quote+/$quoteId.new.tsx
index b891736768..98cd7c00bd 100644
--- a/apps/erp/app/routes/x+/quote+/$quoteId.new.tsx
+++ b/apps/erp/app/routes/x+/quote+/$quoteId.new.tsx
@@ -28,6 +28,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
let configuration = undefined;
if (data.configuration) {
diff --git a/apps/erp/app/routes/x+/receipt+/$receiptId.post.tsx b/apps/erp/app/routes/x+/receipt+/$receiptId.post.tsx
index 9ab4b324fd..71b6f94cb4 100644
--- a/apps/erp/app/routes/x+/receipt+/$receiptId.post.tsx
+++ b/apps/erp/app/routes/x+/receipt+/$receiptId.post.tsx
@@ -55,6 +55,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
await flash(request, error(postReceipt.error, "Failed to post receipt"))
);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
} catch (error) {
await client
.from("receipt")
diff --git a/apps/erp/app/routes/x+/resources+/assignments.$trainingId.tsx b/apps/erp/app/routes/x+/resources+/assignments.$trainingId.tsx
index 652102cf54..21d2c619e2 100644
--- a/apps/erp/app/routes/x+/resources+/assignments.$trainingId.tsx
+++ b/apps/erp/app/routes/x+/resources+/assignments.$trainingId.tsx
@@ -4,8 +4,8 @@ import { flash } from "@carbon/auth/session.server";
import {
Badge,
Button,
- cn,
Count,
+ cn,
Drawer,
DrawerBody,
DrawerContent,
@@ -286,7 +286,9 @@ export default function TrainingAssignmentDetailRoute() {
value="Completed"
>
<LuCircleCheck className="mr-1 size-3" />
- Completed <Count count={statusCounts["Completed"] || 0} />
+ Completed{" "}
+ {/** biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration */}
+ <Count count={statusCounts["Completed"] || 0} />
</ToggleGroupItem>
<ToggleGroupItem
className="flex gap-1.5 items-center"
@@ -294,7 +296,9 @@ export default function TrainingAssignmentDetailRoute() {
value="Pending"
>
<LuClock className="mr-1 size-3" />
- Pending <Count count={statusCounts["Pending"] || 0} />
+ Pending{" "}
+ {/** biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration */}
+ <Count count={statusCounts["Pending"] || 0} />
</ToggleGroupItem>
<ToggleGroupItem
className="flex gap-1.5 items-center"
@@ -302,7 +306,9 @@ export default function TrainingAssignmentDetailRoute() {
value="Overdue"
>
<LuTriangleAlert className="mr-1 size-3" />
- Overdue <Count count={statusCounts["Overdue"] || 0} />
+ Overdue{" "}
+ {/** biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration */}
+ <Count count={statusCounts["Overdue"] || 0} />
</ToggleGroupItem>
<ToggleGroupItem
className="flex gap-1.5 items-center"
diff --git a/apps/erp/app/routes/x+/resources+/contractors.$supplierContactId.tsx b/apps/erp/app/routes/x+/resources+/contractors.$supplierContactId.tsx
index bac636414f..0a7e657b84 100644
--- a/apps/erp/app/routes/x+/resources+/contractors.$supplierContactId.tsx
+++ b/apps/erp/app/routes/x+/resources+/contractors.$supplierContactId.tsx
@@ -49,6 +49,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, supplierId, ...data } = validation.data;
if (!id) throw notFound("Contractor ID was not found");
diff --git a/apps/erp/app/routes/x+/resources+/locations.new.tsx b/apps/erp/app/routes/x+/resources+/locations.new.tsx
index 3d44ad7630..54ebfee008 100644
--- a/apps/erp/app/routes/x+/resources+/locations.new.tsx
+++ b/apps/erp/app/routes/x+/resources+/locations.new.tsx
@@ -32,6 +32,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const createLocation = await upsertLocation(client, {
diff --git a/apps/erp/app/routes/x+/resources+/partners.$supplierLocationId.$abilityId.tsx b/apps/erp/app/routes/x+/resources+/partners.$supplierLocationId.$abilityId.tsx
index d56213c5d5..f161fb7e9d 100644
--- a/apps/erp/app/routes/x+/resources+/partners.$supplierLocationId.$abilityId.tsx
+++ b/apps/erp/app/routes/x+/resources+/partners.$supplierLocationId.$abilityId.tsx
@@ -6,8 +6,8 @@ import { useLoaderData } from "@remix-run/react";
import type { ActionFunctionArgs, LoaderFunctionArgs } from "@vercel/remix";
import { json, redirect } from "@vercel/remix";
import {
- PartnerForm,
getPartner,
+ PartnerForm,
partnerValidator,
upsertPartner
} from "~/modules/resources";
@@ -50,6 +50,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { supplierId, ...data } = validation.data;
const updatePartner = await upsertPartner(client, {
diff --git a/apps/erp/app/routes/x+/resources+/partners.new.tsx b/apps/erp/app/routes/x+/resources+/partners.new.tsx
index 554cbd07c6..286ff01d46 100644
--- a/apps/erp/app/routes/x+/resources+/partners.new.tsx
+++ b/apps/erp/app/routes/x+/resources+/partners.new.tsx
@@ -26,6 +26,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { supplierId, ...data } = validation.data;
const createPartner = await upsertPartner(client, {
diff --git a/apps/erp/app/routes/x+/resources+/processes.new.tsx b/apps/erp/app/routes/x+/resources+/processes.new.tsx
index f7ac3d0720..64f18bed22 100644
--- a/apps/erp/app/routes/x+/resources+/processes.new.tsx
+++ b/apps/erp/app/routes/x+/resources+/processes.new.tsx
@@ -30,6 +30,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const createProcess = await upsertProcess(client, {
diff --git a/apps/erp/app/routes/x+/resources+/training.new.tsx b/apps/erp/app/routes/x+/resources+/training.new.tsx
index b92beefd66..3b7ea0ff91 100644
--- a/apps/erp/app/routes/x+/resources+/training.new.tsx
+++ b/apps/erp/app/routes/x+/resources+/training.new.tsx
@@ -6,9 +6,9 @@ import { useNavigate } from "@remix-run/react";
import type { ActionFunctionArgs, LoaderFunctionArgs } from "@vercel/remix";
import { json, redirect } from "@vercel/remix";
import {
+ TrainingForm,
trainingValidator,
- upsertTraining,
- TrainingForm
+ upsertTraining
} from "~/modules/resources";
import { path } from "~/utils/path";
@@ -32,11 +32,13 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, content, ...data } = validation.data;
let contentJSON;
try {
contentJSON = content ? JSON.parse(content) : {};
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
} catch (e) {
return json(
{},
diff --git a/apps/erp/app/routes/x+/resources+/work-centers.new.tsx b/apps/erp/app/routes/x+/resources+/work-centers.new.tsx
index 82a9cf1a08..4b7e069884 100644
--- a/apps/erp/app/routes/x+/resources+/work-centers.new.tsx
+++ b/apps/erp/app/routes/x+/resources+/work-centers.new.tsx
@@ -8,8 +8,8 @@ import type { ActionFunctionArgs } from "@vercel/remix";
import { json, redirect } from "@vercel/remix";
import { useUser } from "~/hooks";
import {
- WorkCenterForm,
upsertWorkCenter,
+ WorkCenterForm,
workCenterValidator
} from "~/modules/resources";
import { setCustomFields } from "~/utils/form";
@@ -31,6 +31,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const createWorkCenter = await upsertWorkCenter(client, {
diff --git a/apps/erp/app/routes/x+/sales+/_index.tsx b/apps/erp/app/routes/x+/sales+/_index.tsx
index 2d0479389a..e23f53801c 100644
--- a/apps/erp/app/routes/x+/sales+/_index.tsx
+++ b/apps/erp/app/routes/x+/sales+/_index.tsx
@@ -8,8 +8,8 @@ import {
CardDescription,
CardHeader,
CardTitle,
- cn,
Combobox,
+ cn,
DateRangePicker,
DropdownMenu,
DropdownMenuContent,
@@ -231,6 +231,7 @@ export default function SalesDashboard() {
chartIntervals.find((i) => i.key === interval) || chartIntervals[1];
const selectedKpiData = KPIs.find((k) => k.key === selectedKpi) || KPIs[0];
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
kpiFetcher.load(
`${path.to.api.salesKpi(
diff --git a/apps/erp/app/routes/x+/sales+/customer-statuses.new.tsx b/apps/erp/app/routes/x+/sales+/customer-statuses.new.tsx
index c9324f9feb..2f5d83dee3 100644
--- a/apps/erp/app/routes/x+/sales+/customer-statuses.new.tsx
+++ b/apps/erp/app/routes/x+/sales+/customer-statuses.new.tsx
@@ -35,6 +35,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const insertCustomerStatus = await upsertCustomerStatus(client, {
diff --git a/apps/erp/app/routes/x+/sales+/customer-types.new.tsx b/apps/erp/app/routes/x+/sales+/customer-types.new.tsx
index fcab54f4a2..d975cb741f 100644
--- a/apps/erp/app/routes/x+/sales+/customer-types.new.tsx
+++ b/apps/erp/app/routes/x+/sales+/customer-types.new.tsx
@@ -35,6 +35,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const insertCustomerType = await upsertCustomerType(client, {
diff --git a/apps/erp/app/routes/x+/sales+/no-quote-reasons.new.tsx b/apps/erp/app/routes/x+/sales+/no-quote-reasons.new.tsx
index 47fafc32ca..f3a0c89105 100644
--- a/apps/erp/app/routes/x+/sales+/no-quote-reasons.new.tsx
+++ b/apps/erp/app/routes/x+/sales+/no-quote-reasons.new.tsx
@@ -34,6 +34,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const insertNoQuoteReason = await upsertNoQuoteReason(client, {
diff --git a/apps/erp/app/routes/x+/sales-invoice+/$invoiceId.$lineId.details.tsx b/apps/erp/app/routes/x+/sales-invoice+/$invoiceId.$lineId.details.tsx
index 416221fe89..dd2e35e76f 100644
--- a/apps/erp/app/routes/x+/sales-invoice+/$invoiceId.$lineId.details.tsx
+++ b/apps/erp/app/routes/x+/sales-invoice+/$invoiceId.$lineId.details.tsx
@@ -63,6 +63,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
// if (data.invoiceLineType === "G/L Account") {
diff --git a/apps/erp/app/routes/x+/sales-invoice+/$invoiceId.new.tsx b/apps/erp/app/routes/x+/sales-invoice+/$invoiceId.new.tsx
index 0361380a92..500608620c 100644
--- a/apps/erp/app/routes/x+/sales-invoice+/$invoiceId.new.tsx
+++ b/apps/erp/app/routes/x+/sales-invoice+/$invoiceId.new.tsx
@@ -35,6 +35,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const createSalesInvoiceLine = await upsertSalesInvoiceLine(client, {
diff --git a/apps/erp/app/routes/x+/sales-invoice+/$invoiceId.post.tsx b/apps/erp/app/routes/x+/sales-invoice+/$invoiceId.post.tsx
index b62d0705ad..57fbb19e39 100644
--- a/apps/erp/app/routes/x+/sales-invoice+/$invoiceId.post.tsx
+++ b/apps/erp/app/routes/x+/sales-invoice+/$invoiceId.post.tsx
@@ -84,6 +84,7 @@ export async function action(args: ActionFunctionArgs) {
message: "Failed to post sales invoice"
};
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
} catch (err) {
await client
.from("salesInvoice")
@@ -175,6 +176,7 @@ export async function action(args: ActionFunctionArgs) {
message: "Failed to create document"
};
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
} catch (err) {
return {
success: false,
@@ -305,6 +307,7 @@ export async function action(args: ActionFunctionArgs) {
],
companyId
});
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
} catch (err) {
return {
success: false,
diff --git a/apps/erp/app/routes/x+/sales-invoice+/new.tsx b/apps/erp/app/routes/x+/sales-invoice+/new.tsx
index beb4f00667..05a80946df 100644
--- a/apps/erp/app/routes/x+/sales-invoice+/new.tsx
+++ b/apps/erp/app/routes/x+/sales-invoice+/new.tsx
@@ -99,6 +99,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
let invoiceId = data.invoiceId;
const useNextSequence = !invoiceId;
diff --git a/apps/erp/app/routes/x+/sales-order+/$orderId.$lineId.details.tsx b/apps/erp/app/routes/x+/sales-order+/$orderId.$lineId.details.tsx
index be96eeda65..7a9f160961 100644
--- a/apps/erp/app/routes/x+/sales-order+/$orderId.$lineId.details.tsx
+++ b/apps/erp/app/routes/x+/sales-order+/$orderId.$lineId.details.tsx
@@ -99,6 +99,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
if (data.salesOrderLineType === "Comment") {
diff --git a/apps/erp/app/routes/x+/sales-order+/$orderId.confirm.tsx b/apps/erp/app/routes/x+/sales-order+/$orderId.confirm.tsx
index 2e2f8867da..e67540aad1 100644
--- a/apps/erp/app/routes/x+/sales-order+/$orderId.confirm.tsx
+++ b/apps/erp/app/routes/x+/sales-order+/$orderId.confirm.tsx
@@ -7,7 +7,7 @@ import { getSalesOrderStatus } from "@carbon/utils";
import { getLocalTimeZone, today } from "@internationalized/date";
import { renderAsync } from "@react-email/components";
import { tasks } from "@trigger.dev/sdk";
-import { json, type ActionFunctionArgs } from "@vercel/remix";
+import { type ActionFunctionArgs, json } from "@vercel/remix";
import { parseAcceptLanguage } from "intl-parse-accept-language";
import { getPaymentTermsList } from "~/modules/accounting";
import { upsertDocument } from "~/modules/documents";
@@ -127,6 +127,7 @@ export async function action(args: ActionFunctionArgs) {
message: "Failed to create document"
});
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
} catch (err) {
return json({
success: false,
@@ -249,6 +250,7 @@ export async function action(args: ActionFunctionArgs) {
],
companyId
});
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
} catch (err) {
return json({
success: false,
diff --git a/apps/erp/app/routes/x+/sales-order+/$orderId.new.tsx b/apps/erp/app/routes/x+/sales-order+/$orderId.new.tsx
index ba37c37ffa..4d8defd008 100644
--- a/apps/erp/app/routes/x+/sales-order+/$orderId.new.tsx
+++ b/apps/erp/app/routes/x+/sales-order+/$orderId.new.tsx
@@ -30,6 +30,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const createSalesOrderLine = await upsertSalesOrderLine(client, {
diff --git a/apps/erp/app/routes/x+/sales-order+/new.tsx b/apps/erp/app/routes/x+/sales-order+/new.tsx
index 5c511c4d90..6e9f2b8eee 100644
--- a/apps/erp/app/routes/x+/sales-order+/new.tsx
+++ b/apps/erp/app/routes/x+/sales-order+/new.tsx
@@ -31,6 +31,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
let salesOrderId = data.salesOrderId;
const useNextSequence = !salesOrderId;
diff --git a/apps/erp/app/routes/x+/sales-rfq+/$rfqId.$lineId.details.tsx b/apps/erp/app/routes/x+/sales-rfq+/$rfqId.$lineId.details.tsx
index 4900c2e1cc..edda76fb67 100644
--- a/apps/erp/app/routes/x+/sales-rfq+/$rfqId.$lineId.details.tsx
+++ b/apps/erp/app/routes/x+/sales-rfq+/$rfqId.$lineId.details.tsx
@@ -70,6 +70,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const updateLine = await upsertSalesRFQLine(client, {
diff --git a/apps/erp/app/routes/x+/sales-rfq+/$rfqId.new.tsx b/apps/erp/app/routes/x+/sales-rfq+/$rfqId.new.tsx
index 6f2021b97f..68950f07f6 100644
--- a/apps/erp/app/routes/x+/sales-rfq+/$rfqId.new.tsx
+++ b/apps/erp/app/routes/x+/sales-rfq+/$rfqId.new.tsx
@@ -2,7 +2,7 @@ import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
-import { redirect, type ActionFunctionArgs } from "@vercel/remix";
+import { type ActionFunctionArgs, redirect } from "@vercel/remix";
import { salesRfqLineValidator, upsertSalesRFQLine } from "~/modules/sales";
import { setCustomFields } from "~/utils/form";
import { path } from "~/utils/path";
@@ -25,6 +25,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const insertLine = await upsertSalesRFQLine(client, {
diff --git a/apps/erp/app/routes/x+/schedule+/dates.tsx b/apps/erp/app/routes/x+/schedule+/dates.tsx
index 9e9ce25abe..2519ba0a00 100644
--- a/apps/erp/app/routes/x+/schedule+/dates.tsx
+++ b/apps/erp/app/routes/x+/schedule+/dates.tsx
@@ -1,6 +1,3 @@
-import type { Handle } from "~/utils/handle";
-import { path } from "~/utils/path";
-
import { error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
@@ -35,7 +32,7 @@ import {
toCalendarDate
} from "@internationalized/date";
import { useLoaderData, useNavigate, useSearchParams } from "@remix-run/react";
-import { json, redirect, type LoaderFunctionArgs } from "@vercel/remix";
+import { json, type LoaderFunctionArgs, redirect } from "@vercel/remix";
import { useCallback, useEffect, useMemo, useState } from "react";
import { LuChevronLeft, LuChevronRight, LuSettings2 } from "react-icons/lu";
import { SearchFilter } from "~/components";
@@ -52,6 +49,8 @@ import { getLocationsList } from "~/modules/resources";
import { getTagsList } from "~/modules/shared";
import { getUserDefaults } from "~/modules/users/users.server";
import { usePeople } from "~/stores";
+import type { Handle } from "~/utils/handle";
+import { path } from "~/utils/path";
export const handle: Handle = {
breadcrumb: "Schedule",
@@ -473,6 +472,7 @@ export async function loader({ request }: LoaderFunctionArgs) {
allJobs.reduce(
(acc, job) => {
if (job.tags) {
+ // biome-ignore lint/suspicious/useIterableCallbackReturn: suppressed due to migration
job.tags.forEach((tag: string) => (acc[tag] = true));
}
return acc;
diff --git a/apps/erp/app/routes/x+/schedule+/operations.tsx b/apps/erp/app/routes/x+/schedule+/operations.tsx
index cb40dcf622..22f2cde15a 100644
--- a/apps/erp/app/routes/x+/schedule+/operations.tsx
+++ b/apps/erp/app/routes/x+/schedule+/operations.tsx
@@ -285,6 +285,7 @@ export async function loader({ request }: LoaderFunctionArgs) {
filteredOperations.reduce(
(acc, op) => {
if (op.tags) {
+ // biome-ignore lint/suspicious/useIterableCallbackReturn: suppressed due to migration
op.tags.forEach((tag) => (acc[tag] = true));
}
return acc;
@@ -662,6 +663,7 @@ function useProgressByOperation(
setProgressByOperation(progress);
}, 5000);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (Object.keys(productionEventsByOperation).length > 0) {
const { progress } = getProgress();
diff --git a/apps/erp/app/routes/x+/settings+/api-keys.new.tsx b/apps/erp/app/routes/x+/settings+/api-keys.new.tsx
index e9cfc196dc..99da398499 100644
--- a/apps/erp/app/routes/x+/settings+/api-keys.new.tsx
+++ b/apps/erp/app/routes/x+/settings+/api-keys.new.tsx
@@ -28,6 +28,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const insertApiKey = await upsertApiKey(client, {
diff --git a/apps/erp/app/routes/x+/settings+/company.new.tsx b/apps/erp/app/routes/x+/settings+/company.new.tsx
index b0654acc74..36745d4442 100644
--- a/apps/erp/app/routes/x+/settings+/company.new.tsx
+++ b/apps/erp/app/routes/x+/settings+/company.new.tsx
@@ -48,6 +48,7 @@ export async function action({ request }: ActionFunctionArgs) {
}
// TODO: move all of this to transaction
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { baseCurrencyCode, ...locationData } = validation.data;
const [locationInsert] = await Promise.all([
upsertLocation(client, {
diff --git a/apps/erp/app/routes/x+/settings+/custom-fields.$table.new.tsx b/apps/erp/app/routes/x+/settings+/custom-fields.$table.new.tsx
index e29e8cd7ab..ec257cd737 100644
--- a/apps/erp/app/routes/x+/settings+/custom-fields.$table.new.tsx
+++ b/apps/erp/app/routes/x+/settings+/custom-fields.$table.new.tsx
@@ -1,16 +1,15 @@
-import { json, redirect, useNavigate, useParams } from "@remix-run/react";
-import { useRouteData } from "~/hooks";
-import type { AttributeDataType } from "~/modules/people";
-import { CustomFieldForm, customFieldValidator } from "~/modules/settings";
-import { DataType } from "~/modules/shared";
-import { getParams, path } from "~/utils/path";
-
import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
+import { json, redirect, useNavigate, useParams } from "@remix-run/react";
import type { ActionFunctionArgs } from "@vercel/remix";
+import { useRouteData } from "~/hooks";
+import type { AttributeDataType } from "~/modules/people";
+import { CustomFieldForm, customFieldValidator } from "~/modules/settings";
import { upsertCustomField } from "~/modules/settings/settings.server";
+import { DataType } from "~/modules/shared";
+import { getParams, path } from "~/utils/path";
export async function action({ request, params }: ActionFunctionArgs) {
assertIsPost(request);
@@ -29,6 +28,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const create = await upsertCustomField(client, {
diff --git a/apps/erp/app/routes/x+/settings+/integrations.$id.tsx b/apps/erp/app/routes/x+/settings+/integrations.$id.tsx
index 92c24d284a..3c9478d1a9 100644
--- a/apps/erp/app/routes/x+/settings+/integrations.$id.tsx
+++ b/apps/erp/app/routes/x+/settings+/integrations.$id.tsx
@@ -5,7 +5,7 @@ import { integrations as availableIntegrations } from "@carbon/ee";
import { validationError, validator } from "@carbon/form";
import { redirect, useLoaderData, useNavigate } from "@remix-run/react";
import type { ActionFunctionArgs, LoaderFunctionArgs } from "@vercel/remix";
-import { IntegrationForm, getIntegration } from "~/modules/settings";
+import { getIntegration, IntegrationForm } from "~/modules/settings";
import { upsertCompanyIntegration } from "~/modules/settings/settings.server";
import { path } from "~/utils/path";
@@ -60,6 +60,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { active, ...data } = validation.data;
const update = await upsertCompanyIntegration(client, {
diff --git a/apps/erp/app/routes/x+/settings+/items.tsx b/apps/erp/app/routes/x+/settings+/items.tsx
index c95bd57409..fa4c4af724 100644
--- a/apps/erp/app/routes/x+/settings+/items.tsx
+++ b/apps/erp/app/routes/x+/settings+/items.tsx
@@ -1,3 +1,8 @@
+import { error } from "@carbon/auth";
+import { requirePermissions } from "@carbon/auth/auth.server";
+import { flash } from "@carbon/auth/session.server";
+// biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
+import { Boolean, Submit, ValidatedForm, validator } from "@carbon/form";
import {
Card,
CardContent,
@@ -10,14 +15,9 @@ import {
toast,
VStack
} from "@carbon/react";
+import { useFetcher, useLoaderData } from "@remix-run/react";
import type { ActionFunctionArgs, LoaderFunctionArgs } from "@vercel/remix";
import { json, redirect } from "@vercel/remix";
-
-import { error } from "@carbon/auth";
-import { requirePermissions } from "@carbon/auth/auth.server";
-import { flash } from "@carbon/auth/session.server";
-import { Boolean, Submit, ValidatedForm, validator } from "@carbon/form";
-import { useFetcher, useLoaderData } from "@remix-run/react";
import { useEffect } from "react";
import {
getCompanySettings,
diff --git a/apps/erp/app/routes/x+/settings+/sales.tsx b/apps/erp/app/routes/x+/settings+/sales.tsx
index 779cf580a6..8a5929fa45 100644
--- a/apps/erp/app/routes/x+/settings+/sales.tsx
+++ b/apps/erp/app/routes/x+/settings+/sales.tsx
@@ -1,3 +1,9 @@
+import { error, useCarbon } from "@carbon/auth";
+import { requirePermissions } from "@carbon/auth/auth.server";
+import { flash } from "@carbon/auth/session.server";
+// biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
+import { Boolean, Submit, ValidatedForm, validator } from "@carbon/form";
+import type { JSONContent } from "@carbon/react";
import {
Badge,
Card,
@@ -16,16 +22,15 @@ import {
useDebounce,
VStack
} from "@carbon/react";
+import { Editor } from "@carbon/react/Editor";
+import { getLocalTimeZone, today } from "@internationalized/date";
+import { useFetcher, useLoaderData } from "@remix-run/react";
import type { ActionFunctionArgs, LoaderFunctionArgs } from "@vercel/remix";
import { json, redirect } from "@vercel/remix";
-
-import { error, useCarbon } from "@carbon/auth";
-import { requirePermissions } from "@carbon/auth/auth.server";
-import { flash } from "@carbon/auth/session.server";
-import { Boolean, Submit, ValidatedForm, validator } from "@carbon/form";
-import { useFetcher, useLoaderData } from "@remix-run/react";
import { useEffect, useState } from "react";
+import { LuCircleCheck } from "react-icons/lu";
import { Users } from "~/components/Form";
+import { usePermissions, useUser } from "~/hooks";
import {
digitalQuoteValidator,
getCompanySettings,
@@ -37,12 +42,6 @@ import {
import type { Handle } from "~/utils/handle";
import { path } from "~/utils/path";
-import type { JSONContent } from "@carbon/react";
-import { Editor } from "@carbon/react/Editor";
-import { getLocalTimeZone, today } from "@internationalized/date";
-import { LuCircleCheck } from "react-icons/lu";
-import { usePermissions, useUser } from "~/hooks";
-
export const handle: Handle = {
breadcrumb: "Sales",
to: path.to.salesSettings
diff --git a/apps/erp/app/routes/x+/shared+/view.order.tsx b/apps/erp/app/routes/x+/shared+/view.order.tsx
index 4b51159138..afabc05f21 100644
--- a/apps/erp/app/routes/x+/shared+/view.order.tsx
+++ b/apps/erp/app/routes/x+/shared+/view.order.tsx
@@ -1,8 +1,7 @@
-import { json, type ActionFunctionArgs } from "@vercel/remix";
-
import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
+import { type ActionFunctionArgs, json } from "@vercel/remix";
import { updateSavedViewOrder } from "~/modules/shared/shared.service";
export async function action({ request }: ActionFunctionArgs) {
@@ -35,6 +34,7 @@ export async function action({ request }: ActionFunctionArgs) {
error(updateSortOrders, "Failed to update sort order")
)
);
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
} catch (err) {
await flash(request, error(null, "Failed to parse updates"));
}
diff --git a/apps/erp/app/routes/x+/shared+/views.tsx b/apps/erp/app/routes/x+/shared+/views.tsx
index 4d6dfa33f3..3ec8ac2b0f 100644
--- a/apps/erp/app/routes/x+/shared+/views.tsx
+++ b/apps/erp/app/routes/x+/shared+/views.tsx
@@ -1,7 +1,7 @@
import { assertIsPost } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { validator } from "@carbon/form";
-import { json, type ActionFunctionArgs } from "@vercel/remix";
+import { type ActionFunctionArgs, json } from "@vercel/remix";
import {
savedViewStateValidator,
savedViewValidator
@@ -59,6 +59,7 @@ export async function action({ request }: ActionFunctionArgs) {
id: result.data.id,
message: "View saved"
});
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
} catch (error) {
return json({
success: false,
diff --git a/apps/erp/app/routes/x+/shipment+/$shipmentId.post.tsx b/apps/erp/app/routes/x+/shipment+/$shipmentId.post.tsx
index d0e751f797..da6cabcecf 100644
--- a/apps/erp/app/routes/x+/shipment+/$shipmentId.post.tsx
+++ b/apps/erp/app/routes/x+/shipment+/$shipmentId.post.tsx
@@ -134,6 +134,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
)
);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
} catch (error) {
await client
.from("shipment")
diff --git a/apps/erp/app/routes/x+/stock-transfer+/$id.line.new.tsx b/apps/erp/app/routes/x+/stock-transfer+/$id.line.new.tsx
index 0a39bbd8cf..931cdcadf6 100644
--- a/apps/erp/app/routes/x+/stock-transfer+/$id.line.new.tsx
+++ b/apps/erp/app/routes/x+/stock-transfer+/$id.line.new.tsx
@@ -42,6 +42,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id: lineId, ...data } = validation.data;
const insertStockTransferLine = await upsertStockTransferLine(client, {
diff --git a/apps/erp/app/routes/x+/stock-transfer+/$id.scan.$lineId.tsx b/apps/erp/app/routes/x+/stock-transfer+/$id.scan.$lineId.tsx
index 1b1d3668d7..577cf5bcf8 100644
--- a/apps/erp/app/routes/x+/stock-transfer+/$id.scan.$lineId.tsx
+++ b/apps/erp/app/routes/x+/stock-transfer+/$id.scan.$lineId.tsx
@@ -225,6 +225,7 @@ export default function StockTransferScan() {
setIsValid(true);
onPick(trackedEntityId);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
} catch (error) {
setValidationError("Error validating serial number");
setIsValid(false);
diff --git a/apps/erp/app/routes/x+/supplier+/$supplierId.contacts.new.tsx b/apps/erp/app/routes/x+/supplier+/$supplierId.contacts.new.tsx
index bbdfce088f..8b22e6e1ce 100644
--- a/apps/erp/app/routes/x+/supplier+/$supplierId.contacts.new.tsx
+++ b/apps/erp/app/routes/x+/supplier+/$supplierId.contacts.new.tsx
@@ -44,6 +44,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, contactId, supplierLocationId, ...contact } = validation.data;
const createSupplierContact = await insertSupplierContact(client, {
diff --git a/apps/erp/app/routes/x+/supplier+/$supplierId.locations.$supplierLocationId.tsx b/apps/erp/app/routes/x+/supplier+/$supplierId.locations.$supplierLocationId.tsx
index 4e81c0a296..42a21dfcc0 100644
--- a/apps/erp/app/routes/x+/supplier+/$supplierId.locations.$supplierLocationId.tsx
+++ b/apps/erp/app/routes/x+/supplier+/$supplierId.locations.$supplierLocationId.tsx
@@ -66,6 +66,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, addressId, name, ...address } = validation.data;
if (addressId === undefined)
diff --git a/apps/erp/app/routes/x+/supplier+/$supplierId.locations.new.tsx b/apps/erp/app/routes/x+/supplier+/$supplierId.locations.new.tsx
index 59713cc0ca..60c34c355e 100644
--- a/apps/erp/app/routes/x+/supplier+/$supplierId.locations.new.tsx
+++ b/apps/erp/app/routes/x+/supplier+/$supplierId.locations.new.tsx
@@ -36,6 +36,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, addressId, name, ...address } = validation.data;
const createSupplierLocation = await insertSupplierLocation(client, {
diff --git a/apps/erp/app/routes/x+/supplier+/$supplierId.processes.new.tsx b/apps/erp/app/routes/x+/supplier+/$supplierId.processes.new.tsx
index 9dafab92ae..cfd940c4ff 100644
--- a/apps/erp/app/routes/x+/supplier+/$supplierId.processes.new.tsx
+++ b/apps/erp/app/routes/x+/supplier+/$supplierId.processes.new.tsx
@@ -35,6 +35,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const createSupplierProcess = await upsertSupplierProcess(client, {
diff --git a/apps/erp/app/routes/x+/supplier+/new.tsx b/apps/erp/app/routes/x+/supplier+/new.tsx
index 66ca55ba41..18a1d103ae 100644
--- a/apps/erp/app/routes/x+/supplier+/new.tsx
+++ b/apps/erp/app/routes/x+/supplier+/new.tsx
@@ -32,6 +32,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const createSupplier = await upsertSupplier(client, {
diff --git a/apps/erp/app/routes/x+/supplier-quote+/$id.new.tsx b/apps/erp/app/routes/x+/supplier-quote+/$id.new.tsx
index 6c38f7d1ca..a6ffc9af7f 100644
--- a/apps/erp/app/routes/x+/supplier-quote+/$id.new.tsx
+++ b/apps/erp/app/routes/x+/supplier-quote+/$id.new.tsx
@@ -29,6 +29,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const serviceRole = getCarbonServiceRole();
diff --git a/apps/erp/app/routes/x+/tool+/$itemId.view.purchasing.new.tsx b/apps/erp/app/routes/x+/tool+/$itemId.view.purchasing.new.tsx
index 005f22b5d2..7234a507b9 100644
--- a/apps/erp/app/routes/x+/tool+/$itemId.view.purchasing.new.tsx
+++ b/apps/erp/app/routes/x+/tool+/$itemId.view.purchasing.new.tsx
@@ -30,6 +30,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
});
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const createToolSupplier = await upsertSupplierPart(client, {
diff --git a/apps/erp/app/routes/x+/training+/$id.questions.new.tsx b/apps/erp/app/routes/x+/training+/$id.questions.new.tsx
index fa1962969f..f0731f1359 100644
--- a/apps/erp/app/routes/x+/training+/$id.questions.new.tsx
+++ b/apps/erp/app/routes/x+/training+/$id.questions.new.tsx
@@ -1,9 +1,8 @@
-import { json } from "@remix-run/react";
-
import { assertIsPost, error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validator } from "@carbon/form";
+import { json } from "@remix-run/react";
import type { ActionFunctionArgs } from "@vercel/remix";
import {
trainingQuestionValidator,
@@ -36,6 +35,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, matchingPairs, correctBoolean, ...data } = validation.data;
// Parse matchingPairs if it's a string
diff --git a/apps/erp/app/routes/x+/warehouse-transfer+/$transferId.details.new.tsx b/apps/erp/app/routes/x+/warehouse-transfer+/$transferId.details.new.tsx
index b5b1a8fe47..f7ac12e348 100644
--- a/apps/erp/app/routes/x+/warehouse-transfer+/$transferId.details.new.tsx
+++ b/apps/erp/app/routes/x+/warehouse-transfer+/$transferId.details.new.tsx
@@ -7,13 +7,12 @@ import type {
WarehouseTransfer,
WarehouseTransferLine
} from "~/modules/inventory";
-import { WarehouseTransferLineForm } from "~/modules/inventory/ui/WarehouseTransfers";
-import { path } from "~/utils/path";
-
import {
upsertWarehouseTransferLine,
warehouseTransferLineValidator
} from "~/modules/inventory";
+import { WarehouseTransferLineForm } from "~/modules/inventory/ui/WarehouseTransfers";
+import { path } from "~/utils/path";
export async function action({ request, params }: ActionFunctionArgs) {
console.log("DEBUG: new action called");
@@ -38,6 +37,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
});
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const createWarehouseTransferLine = await upsertWarehouseTransferLine(
diff --git a/apps/erp/app/routes/x+/warehouse-transfer+/new.tsx b/apps/erp/app/routes/x+/warehouse-transfer+/new.tsx
index 0dea6856fb..1a5b5b1f2a 100644
--- a/apps/erp/app/routes/x+/warehouse-transfer+/new.tsx
+++ b/apps/erp/app/routes/x+/warehouse-transfer+/new.tsx
@@ -65,6 +65,7 @@ export async function action({ request }: ActionFunctionArgs) {
}
if (!transferId) throw new Error("transferId is not defined");
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { id, ...data } = validation.data;
const createTransfer = await upsertWarehouseTransfer(client, {
diff --git a/apps/erp/app/utils/react-query.ts b/apps/erp/app/utils/react-query.ts
index 6d74d576c8..efb8fa1319 100644
--- a/apps/erp/app/utils/react-query.ts
+++ b/apps/erp/app/utils/react-query.ts
@@ -9,6 +9,7 @@ enum RefreshRate {
export const getCompanyId = () => {
const cookieHeader = document.cookie;
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
const parsed = cookieHeader ? cookie.parse(cookieHeader)["companyId"] : null;
return parsed;
};
diff --git a/apps/erp/app/utils/resizable-panels.ts b/apps/erp/app/utils/resizable-panels.ts
index 4b99a53b47..4f0d58f6a9 100644
--- a/apps/erp/app/utils/resizable-panels.ts
+++ b/apps/erp/app/utils/resizable-panels.ts
@@ -16,6 +16,7 @@ function getCookieValue(
try {
const json = JSON.parse(cookieValue);
return resizableConfig.parse(json);
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
} catch (e) {
return { layout: undefined };
}
diff --git a/apps/erp/app/utils/string.ts b/apps/erp/app/utils/string.ts
index abfbf070c1..e5f2caa80b 100644
--- a/apps/erp/app/utils/string.ts
+++ b/apps/erp/app/utils/string.ts
@@ -26,6 +26,7 @@ export const camelCaseToWords = (str: string) =>
*/
export const copyToClipboard = async (
str: string | Promise<string>,
+ // biome-ignore lint/suspicious/noEmptyBlockStatements: suppressed due to migration
callback = () => {}
) => {
const focused = window.document.hasFocus();
diff --git a/apps/mes/app/components/AdjustInventory.tsx b/apps/mes/app/components/AdjustInventory.tsx
index 8880c81af8..72a167d9e4 100644
--- a/apps/mes/app/components/AdjustInventory.tsx
+++ b/apps/mes/app/components/AdjustInventory.tsx
@@ -1,6 +1,7 @@
"use client";
import { useCarbon } from "@carbon/auth";
+// biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
import { Combobox, Hidden, Number, Submit, ValidatedForm } from "@carbon/form";
import {
Button,
@@ -81,6 +82,7 @@ export function AdjustInventory({ add }: { add: boolean }) {
fetchShelvesByLocationId();
});
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (fetcher.data?.success === true) {
modal.onClose();
diff --git a/apps/mes/app/components/EndShift.tsx b/apps/mes/app/components/EndShift.tsx
index 62d6cb721a..60eb9d276a 100644
--- a/apps/mes/app/components/EndShift.tsx
+++ b/apps/mes/app/components/EndShift.tsx
@@ -34,6 +34,7 @@ export function EndShift() {
const [operations, setOperations] = useState<Operation[]>([]);
const [loading, setLoading] = useState(false);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (fetcher.data?.success === true) {
confirmModal.onClose();
diff --git a/apps/mes/app/components/Filter/ActiveFilters.tsx b/apps/mes/app/components/Filter/ActiveFilters.tsx
index e5f972385b..4146066cd1 100644
--- a/apps/mes/app/components/Filter/ActiveFilters.tsx
+++ b/apps/mes/app/components/Filter/ActiveFilters.tsx
@@ -87,6 +87,7 @@ const ActiveFilter = ({ filter, operator, value }: ActiveFilterProps) => {
}
});
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (
filter.filter.type === "fetcher" &&
diff --git a/apps/mes/app/components/FlashOverlay.tsx b/apps/mes/app/components/FlashOverlay.tsx
index bd67e23dd2..209d83c21f 100644
--- a/apps/mes/app/components/FlashOverlay.tsx
+++ b/apps/mes/app/components/FlashOverlay.tsx
@@ -8,6 +8,7 @@ class FlashOverlayManager {
private listeners: Set<(variant: FlashVariant) => void> = new Set();
flash(variant: FlashVariant) {
+ // biome-ignore lint/suspicious/useIterableCallbackReturn: suppressed due to migration
this.listeners.forEach((listener) => listener(variant));
}
diff --git a/apps/mes/app/components/JobOperation/JobOperation.tsx b/apps/mes/app/components/JobOperation/JobOperation.tsx
index e6848d317d..d85db3208f 100644
--- a/apps/mes/app/components/JobOperation/JobOperation.tsx
+++ b/apps/mes/app/components/JobOperation/JobOperation.tsx
@@ -4,8 +4,8 @@ import type { Database } from "@carbon/database";
import {
Badge,
Button,
- cn,
Copy,
+ cn,
DropdownMenu,
DropdownMenuContent,
DropdownMenuIcon,
@@ -31,11 +31,11 @@ import {
Td,
Th,
Thead,
- toast,
Tooltip,
TooltipContent,
TooltipTrigger,
Tr,
+ toast,
useDisclosure,
VStack
} from "@carbon/react";
@@ -263,6 +263,7 @@ export const JobOperation = ({
const fetcher = useFetcher<Result>();
// Lazy creation of Inspection steps for non-conformance actions
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
async function createInspectionStepsForNonConformanceActions() {
if (!carbon || !operationId) return;
diff --git a/apps/mes/app/components/JobOperation/components/BatchIssueModal.tsx b/apps/mes/app/components/JobOperation/components/BatchIssueModal.tsx
index 6e8e2d1a4e..2f7fea8506 100644
--- a/apps/mes/app/components/JobOperation/components/BatchIssueModal.tsx
+++ b/apps/mes/app/components/JobOperation/components/BatchIssueModal.tsx
@@ -9,8 +9,8 @@ import {
AlertDescription,
AlertTitle,
Button,
- cn,
Combobox as ComboboxBase,
+ cn,
IconButton,
Input,
InputGroup,
@@ -222,6 +222,7 @@ export function BatchIssueModal({
}>;
}>();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const handleSubmit = useCallback(() => {
// Validate all batch numbers
let hasErrors = false;
@@ -376,6 +377,7 @@ export function BatchIssueModal({
const [activeTab, setActiveTab] = useState("scan");
const [unconsumedBatch, setUnconsumedBatch] = useState("");
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const handleUnconsume = useCallback(() => {
const payload = {
materialId: material?.id!,
@@ -938,6 +940,7 @@ function useBatchNumbers(itemId?: string) {
const batchNumbersFetcher =
useFetcher<Awaited<ReturnType<typeof getBatchNumbersForItem>>>();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (itemId) {
batchNumbersFetcher.load(path.to.api.batchNumbers(itemId));
diff --git a/apps/mes/app/components/JobOperation/components/Chat.tsx b/apps/mes/app/components/JobOperation/components/Chat.tsx
index 19a8f835ab..457a132923 100644
--- a/apps/mes/app/components/JobOperation/components/Chat.tsx
+++ b/apps/mes/app/components/JobOperation/components/Chat.tsx
@@ -1,3 +1,4 @@
+import { useCarbon } from "@carbon/auth";
import {
Avatar,
Button,
@@ -9,16 +10,14 @@ import {
useMount,
useRealtimeChannel
} from "@carbon/react";
-import { useEffect, useRef, useState } from "react";
-import { useUser } from "~/hooks";
-import type { OperationWithDetails } from "~/services/types";
-import { path } from "~/utils/path";
-
-import { useCarbon } from "@carbon/auth";
import { nanoid } from "nanoid";
+import { useEffect, useRef, useState } from "react";
import { flushSync } from "react-dom";
import { LuSend } from "react-icons/lu";
+import { useUser } from "~/hooks";
+import type { OperationWithDetails } from "~/services/types";
import { usePeople } from "~/stores";
+import { path } from "~/utils/path";
type Message = {
id: string;
@@ -37,6 +36,7 @@ export function OperationChat({
const [messages, setMessages] = useState<Message[]>([]);
const [isLoading, setIsLoading] = useState(false);
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { carbon, accessToken } = useCarbon();
const fetchChats = async () => {
diff --git a/apps/mes/app/components/JobOperation/components/IssueModal.tsx b/apps/mes/app/components/JobOperation/components/IssueModal.tsx
index b34d7308b2..373f9b0c20 100644
--- a/apps/mes/app/components/JobOperation/components/IssueModal.tsx
+++ b/apps/mes/app/components/JobOperation/components/IssueModal.tsx
@@ -1,3 +1,5 @@
+// biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
+import { Combobox, Hidden, Number, Select, ValidatedForm } from "@carbon/form";
import {
Button,
Modal,
@@ -12,10 +14,8 @@ import {
import { useMemo } from "react";
import { issueValidator } from "~/services/models";
import type { JobMaterial } from "~/services/types";
-import { path } from "~/utils/path";
-
-import { Combobox, Hidden, Number, Select, ValidatedForm } from "@carbon/form";
import { useItems } from "~/stores";
+import { path } from "~/utils/path";
export function IssueModal({
operationId,
diff --git a/apps/mes/app/components/JobOperation/components/SerialIssueModal.tsx b/apps/mes/app/components/JobOperation/components/SerialIssueModal.tsx
index 76510cec0a..d31055b390 100644
--- a/apps/mes/app/components/JobOperation/components/SerialIssueModal.tsx
+++ b/apps/mes/app/components/JobOperation/components/SerialIssueModal.tsx
@@ -4,8 +4,8 @@ import {
AlertTitle,
Button,
Checkbox,
- cn,
Combobox as ComboboxBase,
+ cn,
IconButton,
Input,
InputGroup,
@@ -168,6 +168,7 @@ export function SerialIssueModal({
});
}, []);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const handleSubmit = useCallback(() => {
// Validate all serial numbers
let hasErrors = false;
@@ -543,6 +544,7 @@ function useSerialNumbers(itemId?: string) {
const serialNumbersFetcher =
useFetcher<Awaited<ReturnType<typeof getSerialNumbersForItem>>>();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (itemId) {
serialNumbersFetcher.load(path.to.api.serialNumbers(itemId));
diff --git a/apps/mes/app/components/JobOperation/components/Step.tsx b/apps/mes/app/components/JobOperation/components/Step.tsx
index 0ccfc4f4e1..83c487de84 100644
--- a/apps/mes/app/components/JobOperation/components/Step.tsx
+++ b/apps/mes/app/components/JobOperation/components/Step.tsx
@@ -1,3 +1,15 @@
+import { useCarbon } from "@carbon/auth";
+import {
+ Combobox,
+ DateTimePicker,
+ Hidden,
+ Input as InputField,
+ // biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
+ Number,
+ Select,
+ Submit,
+ ValidatedForm
+} from "@carbon/form";
import {
Button,
Checkbox,
@@ -5,6 +17,7 @@ import {
generateHTML,
HStack,
IconButton,
+ type JSONContent,
Modal,
ModalBody,
ModalContent,
@@ -14,33 +27,17 @@ import {
ModalTitle,
Switch,
Table,
- Td,
Tbody,
- toast,
+ Td,
Tr,
+ toast,
useDisclosure,
- VStack,
- type JSONContent
+ VStack
} from "@carbon/react";
+import { formatDateTime, parseMentionsFromDocument } from "@carbon/utils";
+import { useNumberFormatter } from "@react-aria/i18n";
import { useFetcher } from "@remix-run/react";
import { useEffect, useMemo, useState } from "react";
-import { useUser } from "~/hooks";
-import { stepRecordValidator } from "~/services/models";
-import type { JobOperationStep } from "~/services/types";
-import { getPrivateUrl, path } from "~/utils/path";
-
-import { useCarbon } from "@carbon/auth";
-import {
- Combobox,
- DateTimePicker,
- Hidden,
- Input as InputField,
- Number,
- Select,
- Submit,
- ValidatedForm
-} from "@carbon/form";
-import { formatDateTime, parseMentionsFromDocument } from "@carbon/utils";
import {
LuChevronDown,
LuChevronRight,
@@ -50,12 +47,14 @@ import {
LuTrash
} from "react-icons/lu";
import { ProcedureStepTypeIcon } from "~/components/Icons";
+import ItemThumbnail from "~/components/ItemThumbnail";
+import { useUser } from "~/hooks";
+import { stepRecordValidator } from "~/services/models";
+import type { JobOperationStep } from "~/services/types";
import { useItems, usePeople } from "~/stores";
+import { getPrivateUrl, path } from "~/utils/path";
import FileDropzone from "../../FileDropzone";
-import { useNumberFormatter } from "@react-aria/i18n";
-import ItemThumbnail from "~/components/ItemThumbnail";
-
export function StepsListItem({
activeStep,
step,
diff --git a/apps/mes/app/components/JobOperation/hooks/useOperation.tsx b/apps/mes/app/components/JobOperation/hooks/useOperation.tsx
index 7fddcadccb..a2d16814c6 100644
--- a/apps/mes/app/components/JobOperation/hooks/useOperation.tsx
+++ b/apps/mes/app/components/JobOperation/hooks/useOperation.tsx
@@ -44,9 +44,11 @@ export function useOperation({
}) {
const [params] = useUrlParams();
const trackedEntityParam = params.get("trackedEntityId");
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { carbon, accessToken } = useCarbon();
const user = useUser();
const revalidator = useRevalidator();
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const channelRef = useRef<RealtimeChannel | null>(null);
const scrapModal = useDisclosure();
@@ -252,6 +254,7 @@ export function useOperation({
[]
);
// show the serial selector with the remaining serial numbers for the operation
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (trackedEntityParam) return;
const uncompletedEntities = trackedEntities.filter(
diff --git a/apps/mes/app/components/RealtimeDataProvider.tsx b/apps/mes/app/components/RealtimeDataProvider.tsx
index 70ca18ca13..03901926a3 100644
--- a/apps/mes/app/components/RealtimeDataProvider.tsx
+++ b/apps/mes/app/components/RealtimeDataProvider.tsx
@@ -14,11 +14,13 @@ let hydratedFromIdb = false;
let hydratedFromServer = false;
const RealtimeDataProvider = ({ children }: { children: React.ReactNode }) => {
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { carbon, accessToken, isRealtimeAuthSet } = useCarbon();
const {
company: { id: companyId }
} = useUser();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
hydratedFromServer = false;
}, [companyId]);
@@ -26,6 +28,7 @@ const RealtimeDataProvider = ({ children }: { children: React.ReactNode }) => {
const [, setItems] = useItems();
const [, setPeople] = usePeople();
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const channelRef = useRef<RealtimeChannel | null>(null);
const hydrate = async () => {
@@ -94,6 +97,7 @@ const RealtimeDataProvider = ({ children }: { children: React.ReactNode }) => {
);
};
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (!companyId) return;
hydrate();
diff --git a/apps/mes/app/routes/x+/complete.tsx b/apps/mes/app/routes/x+/complete.tsx
index 848cbbe380..4541c54dee 100644
--- a/apps/mes/app/routes/x+/complete.tsx
+++ b/apps/mes/app/routes/x+/complete.tsx
@@ -160,6 +160,7 @@ export async function action({ request }: ActionFunctionArgs) {
return redirect(`${path.to.operation(validation.data.jobOperationId)}`);
} else {
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { trackedEntityId, trackingType, ...data } = validation.data;
const insertProduction = await insertProductionQuantity(client, {
...data,
diff --git a/apps/mes/app/routes/x+/operations.tsx b/apps/mes/app/routes/x+/operations.tsx
index fe6a7127c5..abec4bcf76 100644
--- a/apps/mes/app/routes/x+/operations.tsx
+++ b/apps/mes/app/routes/x+/operations.tsx
@@ -500,6 +500,7 @@ function useProgressByOperation(
const {
company: { id: companyId }
} = useUser();
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { carbon, accessToken } = useCarbon();
const [productionEventsByOperation, setProductionEventsByOperation] =
@@ -599,6 +600,7 @@ function useProgressByOperation(
setProgressByOperation(progress);
}, 5000);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (Object.keys(productionEventsByOperation).length > 0) {
const { progress } = getProgress();
diff --git a/apps/mes/app/routes/x+/scrap.tsx b/apps/mes/app/routes/x+/scrap.tsx
index b2dd2eda19..9a7ffcab29 100644
--- a/apps/mes/app/routes/x+/scrap.tsx
+++ b/apps/mes/app/routes/x+/scrap.tsx
@@ -24,6 +24,7 @@ export async function action({ request }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const { trackedEntityId, trackingType, ...data } = validation.data;
const insertScrap = await insertScrapQuantity(client, {
diff --git a/packages/auth/src/lib/supabase/provider.tsx b/packages/auth/src/lib/supabase/provider.tsx
index 0bdc066cc6..1e2b160dfd 100644
--- a/packages/auth/src/lib/supabase/provider.tsx
+++ b/packages/auth/src/lib/supabase/provider.tsx
@@ -50,6 +50,7 @@ export const CarbonProvider = ({
const initialLoad = useRef(true);
const refresh = useFetcher<{}>();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
setAuthToken(session.accessToken);
}, [carbon, setAuthToken, session.accessToken]);
diff --git a/packages/auth/src/services/users.ts b/packages/auth/src/services/users.ts
index c0e7e788eb..58e78a93b5 100644
--- a/packages/auth/src/services/users.ts
+++ b/packages/auth/src/services/users.ts
@@ -103,15 +103,19 @@ export function makePermissionsFromClaims(claims: Json[] | null) {
switch (action) {
case "view":
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
permissions[module]["view"] = value as string[];
break;
case "create":
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
permissions[module]["create"] = value as string[];
break;
case "update":
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
permissions[module]["update"] = value as string[];
break;
case "delete":
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
permissions[module]["delete"] = value as string[];
break;
}
@@ -119,10 +123,12 @@ export function makePermissionsFromClaims(claims: Json[] | null) {
});
if ("role" in claims) {
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
role = claims["role"] as string;
}
if ("items" in permissions) {
+ // biome-ignore lint/complexity/useLiteralKeys: suppressed due to migration
delete permissions["items"];
}
diff --git a/packages/ee/src/paperless-parts/lib/lib.ts b/packages/ee/src/paperless-parts/lib/lib.ts
index d2f2f9f670..935b9d7b26 100644
--- a/packages/ee/src/paperless-parts/lib/lib.ts
+++ b/packages/ee/src/paperless-parts/lib/lib.ts
@@ -2249,8 +2249,11 @@ export async function getOrCreatePart(
const {
companyId,
component,
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
defaultMethodType,
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
defaultTrackingType,
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
billOfProcessBlackList = []
} = args;
diff --git a/packages/ee/src/paperless-parts/lib/utils.test.ts b/packages/ee/src/paperless-parts/lib/utils.test.ts
index 906c1de547..09fab39885 100644
--- a/packages/ee/src/paperless-parts/lib/utils.test.ts
+++ b/packages/ee/src/paperless-parts/lib/utils.test.ts
@@ -1,20 +1,28 @@
import type { Database } from "@carbon/database";
import { calculatePromisedDate } from "./utils";
+// biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
describe("calculatePromisedDate", () => {
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
beforeEach(() => {
// Reset time mocking before each test
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
jest.restoreAllMocks();
});
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
afterEach(() => {
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
jest.restoreAllMocks();
});
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
it("should calculate ship date before cutoff time (7 AM) with 3 business days lead time", () => {
// Mock date: August 20, 2024 at 7:00 AM (Tuesday)
const mockDate = new Date("2024-08-20T07:00:00");
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
jest.useFakeTimers("modern");
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
jest.setSystemTime(mockDate);
const holidays: Database["public"]["Tables"]["holiday"]["Row"][] = [];
@@ -24,18 +32,25 @@ describe("calculatePromisedDate", () => {
const resultDate = new Date(result);
// Expected: August 23, 2024 (Friday) - 3 business days from Aug 20
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
expect(resultDate.getDate()).toBe(23);
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
expect(resultDate.getMonth()).toBe(7); // August is month 7 (0-indexed)
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
expect(resultDate.getFullYear()).toBe(2024);
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
jest.useRealTimers();
});
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
it("should calculate ship date after cutoff time (11 AM) with 3 business days lead time", () => {
// Mock date: Thursday August 22, 2024 at 11:00 AM
// This matches the user's example where order after cutoff rolls to next day
const mockDate = new Date("2024-08-22T11:00:00");
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
jest.useFakeTimers("modern");
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
jest.setSystemTime(mockDate);
const holidays: Database["public"]["Tables"]["holiday"]["Row"][] = [];
@@ -47,17 +62,24 @@ describe("calculatePromisedDate", () => {
// Expected: August 28, 2024 (Wednesday)
// After cutoff on Aug 22 (Thu), start from Aug 23 (Fri)
// Add 3 business days: Aug 26 (Mon) +1, Aug 27 (Tue) +2, Aug 28 (Wed) +3
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
expect(resultDate.getDate()).toBe(28);
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
expect(resultDate.getMonth()).toBe(7); // August
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
expect(resultDate.getFullYear()).toBe(2024);
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
jest.useRealTimers();
});
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
it("should account for holidays when calculating ship date", () => {
// Mock date: August 29, 2024 at 7:00 AM (Thursday)
const mockDate = new Date("2024-08-29T07:00:00");
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
jest.useFakeTimers("modern");
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
jest.setSystemTime(mockDate);
// Labor Day 2024 is September 2 (Monday)
@@ -87,17 +109,24 @@ describe("calculatePromisedDate", () => {
// Let me trace: from Aug 29, add days until we count 3 business days
// Aug 30 (Fri) +1, Aug 31-Sep 1 (weekend skip), Sep 2 (Mon holiday skip), Sep 3 (Tue) +2, but we get Sep 3 not Sep 4
// Actually the result is Sep 3
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
expect(resultDate.getDate()).toBe(3);
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
expect(resultDate.getMonth()).toBe(8); // September is month 8
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
expect(resultDate.getFullYear()).toBe(2024);
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
jest.useRealTimers();
});
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
it("should handle weekend rollovers correctly", () => {
// Mock date: Friday at 9:00 AM
const mockDate = new Date("2024-08-23T09:00:00"); // Friday
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
jest.useFakeTimers("modern");
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
jest.setSystemTime(mockDate);
const holidays: Database["public"]["Tables"]["holiday"]["Row"][] = [];
@@ -108,17 +137,24 @@ describe("calculatePromisedDate", () => {
// Expected: August 27, 2024 (Tuesday)
// From Aug 23 (Fri): Aug 26 (Mon) day 1, Aug 27 (Tue) day 2
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
expect(resultDate.getDate()).toBe(27);
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
expect(resultDate.getMonth()).toBe(7); // August
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
expect(resultDate.getFullYear()).toBe(2024);
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
jest.useRealTimers();
});
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
it("should handle multiple holidays correctly", () => {
// Mock date: August 29, 2024 at 8:00 AM
const mockDate = new Date("2024-08-29T08:00:00");
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
jest.useFakeTimers("modern");
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
jest.setSystemTime(mockDate);
const holidays: Database["public"]["Tables"]["holiday"]["Row"][] = [
@@ -159,17 +195,24 @@ describe("calculatePromisedDate", () => {
// Aug 30 (Fri) +1, Sep 2 (Mon holiday), Sep 3 (Tue holiday), Sep 4 (Wed) +2, then one more would be Sep 5 +3
// Wait, let me recalculate: Aug 30 +1, Sep 4 +2, Sep 5 +3? No...
// Result shows Sep 4 so that's correct
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
expect(resultDate.getDate()).toBe(4);
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
expect(resultDate.getMonth()).toBe(8); // September
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
expect(resultDate.getFullYear()).toBe(2024);
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
jest.useRealTimers();
});
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
it("should handle same-day orders before cutoff with 1 day lead time", () => {
// Mock date: Monday at 9:00 AM
const mockDate = new Date("2024-08-19T09:00:00");
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
jest.useFakeTimers("modern");
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
jest.setSystemTime(mockDate);
const holidays: Database["public"]["Tables"]["holiday"]["Row"][] = [];
@@ -179,17 +222,24 @@ describe("calculatePromisedDate", () => {
const resultDate = new Date(result);
// Expected: August 20, 2024 (Tuesday) - next business day
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
expect(resultDate.getDate()).toBe(20);
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
expect(resultDate.getMonth()).toBe(7); // August
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
expect(resultDate.getFullYear()).toBe(2024);
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
jest.useRealTimers();
});
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
it("should handle orders placed on Friday after cutoff", () => {
// Mock date: Friday at 11:00 AM
const mockDate = new Date("2024-08-23T11:00:00");
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
jest.useFakeTimers("modern");
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
jest.setSystemTime(mockDate);
const holidays: Database["public"]["Tables"]["holiday"]["Row"][] = [];
@@ -201,17 +251,24 @@ describe("calculatePromisedDate", () => {
// Expected: August 26, 2024 (Monday)
// After cutoff on Fri Aug 23, start from Sat Aug 24
// Add 1 business day: skip weekend, Aug 26 (Mon) +1
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
expect(resultDate.getDate()).toBe(26);
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
expect(resultDate.getMonth()).toBe(7); // August
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
expect(resultDate.getFullYear()).toBe(2024);
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
jest.useRealTimers();
});
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
it("should handle exactly at cutoff time (10 AM)", () => {
// Mock date: Tuesday at exactly 10:00 AM
const mockDate = new Date("2024-08-20T10:00:00");
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
jest.useFakeTimers("modern");
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
jest.setSystemTime(mockDate);
const holidays: Database["public"]["Tables"]["holiday"]["Row"][] = [];
@@ -226,10 +283,14 @@ describe("calculatePromisedDate", () => {
// Wait result is 23, so Aug 21 +1, Aug 22 +2 would be Aug 22, but we got 23
// Let me check: at cutoff on Tue Aug 20, start from Wed Aug 21
// Add 2 business days: Aug 22 (Thu) +1, Aug 23 (Fri) +2
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
expect(resultDate.getDate()).toBe(23);
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
expect(resultDate.getMonth()).toBe(7); // August
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
expect(resultDate.getFullYear()).toBe(2024);
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
jest.useRealTimers();
});
});
diff --git a/packages/ee/src/slack/config.tsx b/packages/ee/src/slack/config.tsx
index af8bbd7101..87af8ede12 100644
--- a/packages/ee/src/slack/config.tsx
+++ b/packages/ee/src/slack/config.tsx
@@ -47,6 +47,7 @@ export const Slack: IntegrationConfig = {
window.addEventListener("message", listener);
},
+ // biome-ignore lint/suspicious/noEmptyBlockStatements: suppressed due to migration
onUninstall: () => {}
};
diff --git a/packages/form/src/ValidatedForm.tsx b/packages/form/src/ValidatedForm.tsx
index 89131e390e..f116b122f0 100644
--- a/packages/form/src/ValidatedForm.tsx
+++ b/packages/form/src/ValidatedForm.tsx
@@ -16,8 +16,6 @@ import React, {
import * as R from "remeda";
import type { z } from "zod/v3";
import { useIsSubmitting, useIsValid } from "./hooks";
-import type { MultiValueMap } from "./internal/MultiValueMap";
-import { useMultiValueMap } from "./internal/MultiValueMap";
import { FORM_ID_FIELD } from "./internal/constants";
import type { InternalFormContextValue } from "./internal/formContext";
import { InternalFormContext } from "./internal/formContext";
@@ -27,6 +25,8 @@ import {
useHasActiveFormSubmit,
useSetFieldErrors
} from "./internal/hooks";
+import type { MultiValueMap } from "./internal/MultiValueMap";
+import { useMultiValueMap } from "./internal/MultiValueMap";
import type { SyncedFormProps } from "./internal/state/createFormStore";
import { useRootFormStore } from "./internal/state/createFormStore";
import { useFormStore } from "./internal/state/storeHooks";
@@ -355,6 +355,7 @@ export function ValidatedForm<
setFormElementInState(formRef.current);
}, [setFormElementInState]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
setFieldErrors(backendError?.fieldErrors ?? {});
if (!disableFocusOnError && backendError?.fieldErrors) {
diff --git a/packages/form/src/components/Array.tsx b/packages/form/src/components/Array.tsx
index 533417dda7..f9c483d1a3 100644
--- a/packages/form/src/components/Array.tsx
+++ b/packages/form/src/components/Array.tsx
@@ -21,6 +21,7 @@ type FormArrayProps = InputProps & {
isRequired?: boolean;
};
+// biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
const Array = forwardRef<HTMLInputElement, FormArrayProps>(
({ name, label, isRequired, ...rest }, ref) => {
const listRef = useRef<HTMLDivElement>(null);
diff --git a/packages/form/src/components/Boolean.tsx b/packages/form/src/components/Boolean.tsx
index 0d1e6db45f..5f78735615 100644
--- a/packages/form/src/components/Boolean.tsx
+++ b/packages/form/src/components/Boolean.tsx
@@ -20,6 +20,7 @@ type FormBooleanProps = {
onChange?: (value: boolean) => void;
};
+// biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
const Boolean = forwardRef<HTMLInputElement, FormBooleanProps>(
(
{
diff --git a/packages/form/src/components/Number.tsx b/packages/form/src/components/Number.tsx
index 705e393aff..b51b5341c1 100644
--- a/packages/form/src/components/Number.tsx
+++ b/packages/form/src/components/Number.tsx
@@ -26,6 +26,7 @@ type FormNumberProps = NumberFieldProps & {
onConfigure?: () => void;
};
+// biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
const Number = forwardRef<HTMLInputElement, FormNumberProps>(
(
{
diff --git a/packages/form/src/components/NumberControlled.tsx b/packages/form/src/components/NumberControlled.tsx
index 60044b0604..f38196b7c0 100644
--- a/packages/form/src/components/NumberControlled.tsx
+++ b/packages/form/src/components/NumberControlled.tsx
@@ -1,3 +1,4 @@
+import { useFormContext } from "@carbon/form";
import type { NumberFieldProps } from "@carbon/react";
import {
FormControl,
@@ -14,8 +15,6 @@ import {
NumberInputStepper,
VStack
} from "@carbon/react";
-
-import { useFormContext } from "@carbon/form";
import type { ReactNode } from "react";
import { forwardRef, useEffect, useRef, useState } from "react";
import {
@@ -38,6 +37,7 @@ type FormNumberProps = NumberFieldProps & {
onConfigure?: () => void;
};
+// biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
const Number = forwardRef<HTMLInputElement, FormNumberProps>(
(
{
diff --git a/packages/form/src/components/index.ts b/packages/form/src/components/index.ts
index 5684e68877..ed45de9568 100644
--- a/packages/form/src/components/index.ts
+++ b/packages/form/src/components/index.ts
@@ -1,5 +1,7 @@
+// biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
import Array from "./Array";
import ArrayNumeric from "./ArrayNumeric";
+// biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
import Boolean from "./Boolean";
import type { ComboboxProps } from "./Combobox";
import Combobox from "./Combobox";
@@ -15,6 +17,7 @@ import InputControlled from "./InputControlled";
import InputOTP from "./InputOTP";
import type { MultiSelectProps } from "./MultiSelect";
import MultiSelect from "./MultiSelect";
+// biome-ignore lint/suspicious/noShadowRestrictedNames: suppressed due to migration
import Number from "./Number";
import NumberControlled from "./NumberControlled";
import Password from "./Password";
diff --git a/packages/form/src/internal/flatten.ts b/packages/form/src/internal/flatten.ts
index f052225384..01c6888814 100644
--- a/packages/form/src/internal/flatten.ts
+++ b/packages/form/src/internal/flatten.ts
@@ -3,6 +3,7 @@ import { MultiValueMap } from "./MultiValueMap";
export const objectFromPathEntries = (entries: [string, any][]) => {
const map = new MultiValueMap<string, any>();
+ // biome-ignore lint/suspicious/useIterableCallbackReturn: suppressed due to migration
entries.forEach(([key, value]) => map.add(key, value));
return [...map.entries()].reduce(
(acc, [key, value]) =>
diff --git a/packages/form/src/internal/hooks.ts b/packages/form/src/internal/hooks.ts
index 13ed3b8bb1..d01df11bd0 100644
--- a/packages/form/src/internal/hooks.ts
+++ b/packages/form/src/internal/hooks.ts
@@ -177,6 +177,7 @@ export const useSmartValidate = (formId: InternalFormId) =>
export const useValidate = (formId: InternalFormId) =>
useFormStore(formId, (state) => state.validate);
+// biome-ignore lint/suspicious/noEmptyBlockStatements: suppressed due to migration
const noOpReceiver = () => () => {};
export const useRegisterReceiveFocus = (formId: InternalFormId) =>
useFormStore(
diff --git a/packages/form/src/internal/logic/nestedObjectToPathObject.ts b/packages/form/src/internal/logic/nestedObjectToPathObject.ts
index 4927eebcdc..cea316d563 100644
--- a/packages/form/src/internal/logic/nestedObjectToPathObject.ts
+++ b/packages/form/src/internal/logic/nestedObjectToPathObject.ts
@@ -4,6 +4,7 @@ export const nestedObjectToPathObject = (
path: string
): any => {
if (Array.isArray(val)) {
+ // biome-ignore lint/suspicious/useIterableCallbackReturn: suppressed due to migration
val.forEach((v, index) =>
nestedObjectToPathObject(v, acc, `${path}[${index}]`)
);
diff --git a/packages/form/src/internal/state/controlledFields.ts b/packages/form/src/internal/state/controlledFields.ts
index 637f416276..ab7721379c 100644
--- a/packages/form/src/internal/state/controlledFields.ts
+++ b/packages/form/src/internal/state/controlledFields.ts
@@ -40,6 +40,7 @@ export const useRegisterControlledField = (
context.formId,
(state) => state.controlledFields.unregister
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
register(field);
return () => unregister(field);
diff --git a/packages/form/src/internal/state/createFormStore.ts b/packages/form/src/internal/state/createFormStore.ts
index 6d6672004d..71edff41b8 100644
--- a/packages/form/src/internal/state/createFormStore.ts
+++ b/packages/form/src/internal/state/createFormStore.ts
@@ -88,6 +88,7 @@ export type FormState = {
};
};
+// biome-ignore lint/suspicious/noEmptyBlockStatements: suppressed due to migration
const noOp = () => {};
const defaultFormState: FormState = {
isHydrated: false,
diff --git a/packages/react/src/AutodeskViewer.tsx b/packages/react/src/AutodeskViewer.tsx
index 618008989d..8f9bb8f47b 100644
--- a/packages/react/src/AutodeskViewer.tsx
+++ b/packages/react/src/AutodeskViewer.tsx
@@ -87,11 +87,13 @@ const AutodeskViewer: React.FC<AutodeskViewerProps> = ({
const viewerRef = useRef<HTMLDivElement | null>(null);
const { token, getToken } = useAutodesk();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (
!urn ||
!token ||
!viewerRef.current ||
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
typeof Autodesk === "undefined"
) {
return;
@@ -106,6 +108,7 @@ const AutodeskViewer: React.FC<AutodeskViewerProps> = ({
}
};
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
Autodesk.Viewing.Initializer(options, () => {
const viewerOptions = {
extensions: loadAutodeskExtensions || [
@@ -114,6 +117,7 @@ const AutodeskViewer: React.FC<AutodeskViewerProps> = ({
]
};
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
const viewer = new Autodesk.Viewing.GuiViewer3D(
viewerRef.current!,
viewerOptions
@@ -152,6 +156,7 @@ const AutodeskViewer: React.FC<AutodeskViewerProps> = ({
}
setViewer(viewer);
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
Autodesk.Viewing.Document.load(
"urn:" + urn,
onDocumentLoadSuccess,
@@ -163,6 +168,7 @@ const AutodeskViewer: React.FC<AutodeskViewerProps> = ({
if (viewer) {
viewer.finish();
setViewer(null);
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
Autodesk.Viewing.shutdown();
}
};
@@ -178,6 +184,7 @@ const AutodeskViewer: React.FC<AutodeskViewerProps> = ({
// viewer,
]);
+ // biome-ignore lint/correctness/noUndeclaredVariables: suppressed due to migration
return typeof Autodesk === "undefined" ? (
<div>Please include viewer3D.min.js to the index.html </div>
) : (
diff --git a/packages/react/src/Date/components/RangeCalendar.tsx b/packages/react/src/Date/components/RangeCalendar.tsx
index 4671740a29..77cfe37b9e 100644
--- a/packages/react/src/Date/components/RangeCalendar.tsx
+++ b/packages/react/src/Date/components/RangeCalendar.tsx
@@ -31,6 +31,7 @@ export function RangeCalendar({
createCalendar
});
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (!props.value?.start) return;
state.setFocusedDate(props.value.start as CalendarDate);
diff --git a/packages/react/src/Editor/Editor.tsx b/packages/react/src/Editor/Editor.tsx
index 5ce4a824f3..223bad025c 100644
--- a/packages/react/src/Editor/Editor.tsx
+++ b/packages/react/src/Editor/Editor.tsx
@@ -110,6 +110,7 @@ const Editor = ({
[uploadFn]
);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const mentionExtension = useMemo(() => {
if (!mentions || mentions.length === 0) return null;
// Use the first mention config - if multiple are needed with different
diff --git a/packages/react/src/Editor/components/LinkSelector.tsx b/packages/react/src/Editor/components/LinkSelector.tsx
index 429a1c585b..a8aec4327b 100644
--- a/packages/react/src/Editor/components/LinkSelector.tsx
+++ b/packages/react/src/Editor/components/LinkSelector.tsx
@@ -8,6 +8,7 @@ export function isValidUrl(url: string) {
try {
new URL(url);
return true;
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
} catch (e) {
return false;
}
@@ -18,6 +19,7 @@ export function getUrlFromString(str: string) {
if (str.includes(".") && !str.includes(" ")) {
return new URL(`https://${str}`).toString();
}
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
} catch (e) {
return null;
}
diff --git a/packages/react/src/Form/FormControl.tsx b/packages/react/src/Form/FormControl.tsx
index 62dcce91cc..b8cd9a22b1 100644
--- a/packages/react/src/Form/FormControl.tsx
+++ b/packages/react/src/Form/FormControl.tsx
@@ -182,6 +182,7 @@ function useFormControlProvider(props: FormControlContextType) {
"data-invalid": dataAttr(isInvalid),
"data-readonly": dataAttr(isReadOnly)
}),
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
[htmlProps, isDisabled, isFocused, isInvalid, isReadOnly]
);
diff --git a/packages/react/src/InputOTP.tsx b/packages/react/src/InputOTP.tsx
index 074bea4511..d38c939da0 100644
--- a/packages/react/src/InputOTP.tsx
+++ b/packages/react/src/InputOTP.tsx
@@ -3,6 +3,7 @@ import { OTPInput, OTPInputContext } from "input-otp";
import * as React from "react";
import { LuMinus } from "react-icons/lu";
import { cn } from "./utils/cn";
+
function InputOTP({
className,
containerClassName,
@@ -61,6 +62,7 @@ function InputOTPSlot({
}
function InputOTPSeparator({ ...props }: React.ComponentProps<"div">) {
return (
+ // biome-ignore lint/a11y/useAriaPropsForRole: suppressed due to migration
<div data-slot="input-otp-separator" role="separator" {...props}>
<LuMinus />
</div>
diff --git a/packages/react/src/ModelViewer.tsx b/packages/react/src/ModelViewer.tsx
index e01f6600ab..7b762f95af 100644
--- a/packages/react/src/ModelViewer.tsx
+++ b/packages/react/src/ModelViewer.tsx
@@ -223,18 +223,21 @@ export function ModelViewer({
});
}
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (color) {
updateColor(color);
}
}, [color]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (!file || !viewerRef.current) return;
setIsLoading(true);
loadFile(file);
}, [file]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (!url || file || !viewerRef.current) return;
setIsLoading(true);
@@ -242,6 +245,7 @@ export function ModelViewer({
}, [url, file]);
const isDarkMode = mode === "dark";
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (viewerRef.current) {
const viewer3D = viewerRef.current.GetViewer();
diff --git a/packages/react/src/Sidebar.tsx b/packages/react/src/Sidebar.tsx
index a14e55c523..c1aae414f0 100644
--- a/packages/react/src/Sidebar.tsx
+++ b/packages/react/src/Sidebar.tsx
@@ -91,6 +91,7 @@ const SidebarProvider = React.forwardRef<
);
// Helper to toggle the sidebar.
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const toggleSidebar = React.useCallback(() => {
return isMobile
? setOpenMobile((open) => !open)
@@ -117,6 +118,7 @@ const SidebarProvider = React.forwardRef<
// This makes it easier to style the sidebar with Tailwind classes.
const state = open ? "expanded" : "collapsed";
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const contextValue = React.useMemo<SidebarContext>(
() => ({
state,
diff --git a/packages/react/src/hooks/useCallbackRef.ts b/packages/react/src/hooks/useCallbackRef.ts
index d0ec46bcf6..62ad603050 100644
--- a/packages/react/src/hooks/useCallbackRef.ts
+++ b/packages/react/src/hooks/useCallbackRef.ts
@@ -10,5 +10,6 @@ export default function useCallbackRef<T extends (...args: any[]) => any>(
callbackRef.current = callback;
});
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
return useCallback(((...args) => callbackRef.current?.(...args)) as T, deps);
}
diff --git a/packages/react/src/hooks/useDebounce.ts b/packages/react/src/hooks/useDebounce.ts
index 24e2b6049b..70c43455e5 100644
--- a/packages/react/src/hooks/useDebounce.ts
+++ b/packages/react/src/hooks/useDebounce.ts
@@ -15,6 +15,7 @@ export default function useDebounce<T extends (...args: any[]) => any>(
const timeout = useRef<ReturnType<typeof setTimeout>>();
const argsRef = useRef<Parameters<T>>();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
return () => {
if (executeOnUnmount && timeout.current && argsRef.current) {
diff --git a/packages/react/src/hooks/useMount.ts b/packages/react/src/hooks/useMount.ts
index 6789da68aa..2cd96bacbf 100644
--- a/packages/react/src/hooks/useMount.ts
+++ b/packages/react/src/hooks/useMount.ts
@@ -1,6 +1,7 @@
import { useEffect } from "react";
export default function useMount(callback: () => void) {
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
callback();
}, []);
diff --git a/packages/react/src/hooks/useRealtimeChannel.ts b/packages/react/src/hooks/useRealtimeChannel.ts
index c6dfdd892f..fd3f8cad6e 100644
--- a/packages/react/src/hooks/useRealtimeChannel.ts
+++ b/packages/react/src/hooks/useRealtimeChannel.ts
@@ -22,6 +22,7 @@ export const useRealtimeChannel = <TDeps extends any[]>(
const channelRef = useRef<RealtimeChannel | null>(null);
const { carbon, isRealtimeAuthSet } = useCarbon();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const memoSetup = useCallback(setup, [topic, ...dependencies]);
const teardown = useCallback(async () => {
@@ -39,6 +40,7 @@ export const useRealtimeChannel = <TDeps extends any[]>(
}
}, [carbon, topic]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
if (!carbon) return;
@@ -94,7 +96,7 @@ export const useRealtimeChannel = <TDeps extends any[]>(
enabled,
topic,
memoSetup,
- teardown,
+ teardown
// dependencies are already in memoSetup, so not needed here
]);
diff --git a/packages/react/src/hooks/useThrottle.ts b/packages/react/src/hooks/useThrottle.ts
index 55a1b4f0ed..ce45ccaa83 100644
--- a/packages/react/src/hooks/useThrottle.ts
+++ b/packages/react/src/hooks/useThrottle.ts
@@ -15,6 +15,7 @@ export default function useThrottle<T extends (...args: any[]) => any>(
const timeout = useRef<ReturnType<typeof setTimeout>>();
const lastArgs = useRef<Parameters<T>>();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => {
return () => {
if (executeOnUnmount && timeout.current && lastArgs.current) {
diff --git a/packages/react/src/utils/dom.ts b/packages/react/src/utils/dom.ts
index 911f78f150..67fddcc337 100644
--- a/packages/react/src/utils/dom.ts
+++ b/packages/react/src/utils/dom.ts
@@ -13,6 +13,7 @@ export const ariaAttr = (condition: boolean | undefined) =>
*/
export const copyToClipboard = async (
str: string | Promise<string>,
+ // biome-ignore lint/suspicious/noEmptyBlockStatements: suppressed due to migration
callback = () => {}
) => {
const focused = window.document.hasFocus();
diff --git a/packages/react/src/utils/react.ts b/packages/react/src/utils/react.ts
index 719f2d3699..9d90d5b2da 100644
--- a/packages/react/src/utils/react.ts
+++ b/packages/react/src/utils/react.ts
@@ -63,6 +63,7 @@ export function assignRef<T = any>(
try {
ref.current = value;
+ // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
} catch (error) {
throw new Error(`Cannot assign value '${value}' to ref '${ref}'`);
}
diff --git a/packages/tiptap/src/components/editor-bubble.tsx b/packages/tiptap/src/components/editor-bubble.tsx
index 40528ad110..070098dbad 100644
--- a/packages/tiptap/src/components/editor-bubble.tsx
+++ b/packages/tiptap/src/components/editor-bubble.tsx
@@ -1,7 +1,7 @@
-import { BubbleMenu, isNodeSelection, useCurrentEditor } from "@tiptap/react";
import type { BubbleMenuProps } from "@tiptap/react";
-import { forwardRef, useEffect, useMemo, useRef } from "react";
+import { BubbleMenu, isNodeSelection, useCurrentEditor } from "@tiptap/react";
import type { ReactNode } from "react";
+import { forwardRef, useEffect, useMemo, useRef } from "react";
import type { Instance, Props } from "tippy.js";
export interface EditorBubbleProps extends Omit<BubbleMenuProps, "editor"> {
@@ -20,6 +20,7 @@ export const EditorBubble = forwardRef<HTMLDivElement, EditorBubbleProps>(
instanceRef.current.popperInstance?.update();
}, [tippyOptions?.placement]);
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
const bubbleMenuProps: Omit<BubbleMenuProps, "children"> = useMemo(() => {
const shouldShow: BubbleMenuProps["shouldShow"] = ({ editor, state }) => {
const { selection } = state;
@@ -61,6 +62,7 @@ export const EditorBubble = forwardRef<HTMLDivElement, EditorBubbleProps>(
editor: currentEditor,
...rest
};
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
}, [rest, tippyOptions]);
if (!currentEditor) return null;
diff --git a/packages/tiptap/src/components/mention-list.tsx b/packages/tiptap/src/components/mention-list.tsx
index 1eed4d143c..09d276e2aa 100644
--- a/packages/tiptap/src/components/mention-list.tsx
+++ b/packages/tiptap/src/components/mention-list.tsx
@@ -58,6 +58,7 @@ export const MentionList = forwardRef<MentionListRef, MentionListProps>(
selectItem(selectedIndex);
};
+ // biome-ignore lint/correctness/useExhaustiveDependencies: suppressed due to migration
useEffect(() => setSelectedIndex(0), [props.items]);
useImperativeHandle(ref, () => ({
diff --git a/packages/tiptap/src/extensions/custom-keymap.ts b/packages/tiptap/src/extensions/custom-keymap.ts
index b3a26df1b7..80448df141 100644
--- a/packages/tiptap/src/extensions/custom-keymap.ts
+++ b/packages/tiptap/src/extensions/custom-keymap.ts
@@ -25,9 +25,9 @@ const CustomKeymap = Extension.create({
const endNodePos = tr.selection.$to.end();
return commands.setTextSelection({
from: startNodePos,
- to: endNodePos,
+ to: endNodePos
});
- },
+ }
};
},
@@ -47,9 +47,9 @@ const CustomKeymap = Extension.create({
return true;
}
return false;
- },
+ }
};
- },
+ }
});
export default CustomKeymap;
diff --git a/packages/tiptap/src/utils/index.ts b/packages/tiptap/src/utils/index.ts
index 0424fe558c..ef27c64065 100644
--- a/packages/tiptap/src/utils/index.ts
+++ b/packages/tiptap/src/utils/index.ts
@@ -24,6 +24,7 @@ export function getUrlFromString(str: string) {
// Get the text before a given position in markdown format
export const getPrevText = (editor: EditorInstance, position: number) => {
const nodes: Node[] = [];
+ // biome-ignore lint/suspicious/useIterableCallbackReturn: suppressed due to migration
editor.state.doc.forEach((node, pos) => {
if (pos >= position) return false;
nodes.push(node);
diff --git a/packages/tiptap/src/utils/store.ts b/packages/tiptap/src/utils/store.ts
index 98504bbb56..5edb2ef5a0 100644
--- a/packages/tiptap/src/utils/store.ts
+++ b/packages/tiptap/src/utils/store.ts
@@ -1,5 +1,4 @@
import { createStore } from "jotai";
-// biome-ignore lint/suspicious/noExplicitAny: <explanation>
export const novelStore: any = createStore();
export * from "jotai";