Skip to content

Commit a19c555

Browse files
committed
ci: removed old pages and turned off some eslint rules
1 parent a1ff059 commit a19c555

File tree

5 files changed

+236
-224
lines changed

5 files changed

+236
-224
lines changed

.eslintrc.cjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ const config = {
2929
},
3030
],
3131
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
32+
"@typescript-eslint/no-unsafe-assignment": "off", // or "off" if you want to disable it
33+
"@typescript-eslint/no-unsafe-call": "off", // or "off" if you want to disable it
34+
"@typescript-eslint/no-unsafe-return": "off",
35+
"@typescript-eslint/no-unsafe-member-access": "off",
3236
},
3337
};
3438

File renamed without changes.

prisma/seed.ts

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,29 @@
11
import { PrismaClient } from "@prisma/client";
2-
import { hash } from "bcryptjs";
2+
// import { hash } from "bcryptjs";
33

44
const prisma = new PrismaClient();
55

66
async function main() {
7-
const password = await hash("password123", 12);
8-
const user = await prisma.user.upsert({
9-
where: { email: "[email protected]" },
10-
update: {},
11-
create: {
12-
13-
name: "Admin",
14-
password,
7+
// const password = await hash("password123", 12);
8+
// const user = await prisma.user.upsert({
9+
// where: { email: "admin@admin.com" },
10+
// update: {},
11+
// create: {
12+
// email: "[email protected]",
13+
// name: "Admin",
14+
// password,
15+
// },
16+
// });
17+
// console.log({ user });
18+
19+
const lesson1 = await prisma.lessons.create({
20+
data: {
21+
quizFileName: "quiz-lesson-1.json",
1522
},
1623
});
17-
console.log({ user });
24+
console.log({ lesson1 });
1825
}
26+
1927
main()
2028
.then(() => prisma.$disconnect())
2129
.catch(async (e) => {

src/pages/todos.tsx

Lines changed: 0 additions & 214 deletions
This file was deleted.

0 commit comments

Comments
 (0)