mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-07 05:01:49 +02:00
♻️ Replace eslint and prettier with biome (#1697)
This commit is contained in:
parent
1577a0c5df
commit
a34da49486
158 changed files with 450 additions and 2718 deletions
|
@ -1,4 +0,0 @@
|
|||
/** @type {import("eslint").Linter.Config} */
|
||||
module.exports = {
|
||||
...require("@rallly/eslint-config")(__dirname),
|
||||
};
|
|
@ -8,6 +8,7 @@ const prismaClientSingleton = () => {
|
|||
|
||||
export type ExtendedPrismaClient = ReturnType<typeof prismaClientSingleton>;
|
||||
|
||||
// biome-ignore lint/suspicious/noShadowRestrictedNames: Fix this later
|
||||
declare const globalThis: {
|
||||
prismaGlobal: ExtendedPrismaClient;
|
||||
} & typeof global;
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@faker-js/faker": "^7.6.0",
|
||||
"@rallly/eslint-config": "workspace:*",
|
||||
"@rallly/tsconfig": "workspace:*",
|
||||
"@types/node": "^18.19.41",
|
||||
"prisma": "^6.4.1",
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { faker } from "@faker-js/faker";
|
||||
import type { User } from "@prisma/client";
|
||||
import { VoteType } from "@prisma/client";
|
||||
import dayjs from "dayjs";
|
||||
import type { VoteType } from "@prisma/client";
|
||||
import { prisma } from "@rallly/database";
|
||||
import dayjs from "dayjs";
|
||||
|
||||
import { randInt } from "./utils";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { ScheduledEventInviteStatus } from "@prisma/client";
|
||||
import { Prisma, ScheduledEventStatus } from "@prisma/client"; // Ensure Prisma is imported
|
||||
import dayjs from "dayjs";
|
||||
import { faker } from "@faker-js/faker";
|
||||
import type { ScheduledEventInviteStatus } from "@prisma/client";
|
||||
import { type Prisma, ScheduledEventStatus } from "@prisma/client"; // Ensure Prisma is imported
|
||||
import dayjs from "dayjs";
|
||||
|
||||
import { prisma } from "@rallly/database";
|
||||
import { randInt } from "./utils";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import dayjs from "dayjs";
|
||||
import { prisma } from "@rallly/database";
|
||||
import dayjs from "dayjs";
|
||||
|
||||
export async function seedUsers() {
|
||||
console.info("Seeding users...");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue