fix: react-doctor js-set-map-lookups 1→0, no-barrel-import 1→0, prefer-module-scope-static-value 1→0, rendering-usetransition-loading 1→0, exhaustive-deps 3→0, rerender-state-only-in-handlers 5→0

This commit is contained in:
Nora
2026-06-26 06:52:45 -06:00
parent 3d5988afd0
commit ce2dc8f070
11 changed files with 76 additions and 41 deletions
+33 -1
View File
@@ -25,7 +25,39 @@
import "server-only";
import { Pool, type PoolClient } from "pg";
import { drizzle, type NodePgDatabase } from "drizzle-orm/node-postgres";
import * as schema from "./schema";
import * as brands from "./schema/brands";
import * as billing from "./schema/billing";
import * as products from "./schema/products";
import * as stops from "./schema/stops";
import * as customers from "./schema/customers";
import * as orders from "./schema/orders";
import * as brand from "./schema/brand";
import * as wholesale from "./schema/wholesale";
import * as waterLog from "./schema/water-log";
import * as communications from "./schema/communications";
import * as marketing from "./schema/marketing";
import * as timeTracking from "./schema/time-tracking";
import * as shipping from "./schema/shipping";
import * as support from "./schema/support";
import * as files from "./schema/files";
const schema = {
...brands,
...billing,
...products,
...stops,
...customers,
...orders,
...brand,
...wholesale,
...waterLog,
...communications,
...marketing,
...timeTracking,
...shipping,
...support,
...files,
};
type Schema = typeof schema;
export type Db = NodePgDatabase<Schema>;