Skip to content

Commit 9387175

Browse files
authored
Merge pull request #74 from creatorsgarten/landing-page
fix: fix lint errors
2 parents a630f09 + c85a860 commit 9387175

17 files changed

Lines changed: 627 additions & 628 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,5 @@ jobs:
4848
- name: Lint code
4949
run: bun run lint
5050

51-
- name: Check types
52-
run: bun run check-types
53-
5451
- name: Run tests
55-
run: bun test
52+
run: bun run test

.vscode/settings.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,18 @@
33
{
44
"mode": "auto"
55
}
6-
]
6+
],
7+
"[javascript]": {
8+
"editor.defaultFormatter": "biomejs.biome"
9+
},
10+
"[typescript]": {
11+
"editor.defaultFormatter": "biomejs.biome"
12+
},
13+
"[javascriptreact]": {
14+
"editor.defaultFormatter": "biomejs.biome"
15+
},
16+
"[typescriptreact]": {
17+
"editor.defaultFormatter": "biomejs.biome"
18+
},
19+
"editor.formatOnSave": true
720
}

apps/backend/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
"elysia": "^1.0.9",
3838
"postgres": "^3.4.4",
3939
"uuid": "^11.1.0",
40-
"vitest": "^3.2.3",
4140
"zod": "^3.25.56"
4241
},
4342
"devDependencies": {
@@ -46,6 +45,7 @@
4645
"bun-types": "latest",
4746
"dotenv": "^16.5.0",
4847
"drizzle-kit": "^0.31.1",
49-
"typescript": "^5.8.3"
48+
"typescript": "^5.8.3",
49+
"vitest": "^3.2.3"
5050
}
5151
}

apps/backend/src/modules/user/user.route.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Elysia } from "elysia";
1+
import { Elysia, status } from "elysia";
22
import { db } from "#backend/infrastructure/db";
33
import {
44
CreateUserSchema,
@@ -32,10 +32,10 @@ export const userRouter = new Elysia({ prefix: "/user" })
3232
)
3333
.get(
3434
"/:id",
35-
async ({ params, error }) => {
35+
async ({ params }) => {
3636
const user = await getUserById(userRepository, params.id);
3737
if (!user) {
38-
return error(404, { error: "User not found" });
38+
return status(404, { error: "User not found" });
3939
}
4040
return user;
4141
},
@@ -65,10 +65,10 @@ export const userRouter = new Elysia({ prefix: "/user" })
6565
)
6666
.get(
6767
"/email/:email",
68-
async ({ params, error }) => {
68+
async ({ params }) => {
6969
const user = await getUserByEmail(userRepository, params.email);
7070
if (!user) {
71-
return error(404, { error: "User not found" });
71+
return status(404, { error: "User not found" });
7272
}
7373
return user;
7474
},
@@ -78,10 +78,10 @@ export const userRouter = new Elysia({ prefix: "/user" })
7878
)
7979
.get(
8080
"/username/:username",
81-
async ({ params, error }) => {
81+
async ({ params }) => {
8282
const user = await getUserByUsername(userRepository, params.username);
8383
if (!user) {
84-
return error(404, { error: "User not found" });
84+
return status(404, { error: "User not found" });
8585
}
8686
return user;
8787
},

apps/backend/vitest.config.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,8 @@ import { defineConfig } from "vitest/config";
44
export default defineConfig({
55
test: {
66
globals: true,
7-
environment: "bun",
7+
environment: "node",
88
include: ["src/**/*.test.ts"],
9-
pool: "forks",
10-
poolOptions: {
11-
forks: {
12-
singleFork: true,
13-
},
14-
},
159
env: {
1610
...config({ path: ".env.test" }).parsed,
1711
},

apps/docs/app/page.module.css

Whitespace-only changes.

apps/docs/components/footer/Footer.tsx

Whitespace-only changes.

apps/docs/components/table/DataTable.tsx

Whitespace-only changes.

apps/docs/components/time/ProgressBar.tsx

Whitespace-only changes.

apps/docs/components/ui/calendar.tsx

Whitespace-only changes.

0 commit comments

Comments
 (0)