♻️ Replace eslint and prettier with biome (#1697)

This commit is contained in:
Luke Vella 2025-04-28 19:47:47 +01:00 committed by GitHub
parent 1577a0c5df
commit a34da49486
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
158 changed files with 450 additions and 2718 deletions

View file

@ -1,4 +0,0 @@
/** @type {import("eslint").Linter.Config} */
module.exports = {
...require("@rallly/eslint-config")(__dirname),
};

View file

@ -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;

View file

@ -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",

View file

@ -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";

View file

@ -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";

View file

@ -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...");