Skip to content

Commit 1b7f487

Browse files
committed
fix: Biome format and check
1 parent 149f02a commit 1b7f487

File tree

34 files changed

+61
-54
lines changed

34 files changed

+61
-54
lines changed

apps/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"scripts": {
1111
"dev": "bun --watch --inspect=ws://localhost:6499/sprs-api ./src/index.ts",
1212
"build": "bun build ./src/index.ts --target=bun --outdir=./dist && cp -r ./src/db/migrations ./dist",
13-
"lint": "biome lint ./src ./client"
13+
"check": "biome check ./src ./client"
1414
},
1515
"devDependencies": {
1616
"@types/bun": "latest",

apps/api/src/db/migrate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async function migrateToLatest() {
3131
} else if (it.status === "Error") {
3232
console.error(`Failed to execute migration "${it.migrationName}"`);
3333
}
34-
};
34+
}
3535

3636
if (error) {
3737
console.error("Failed to migrate");

apps/api/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Hono } from "hono";
2-
import { cors } from "hono/cors";
32
import { openAPISpecs } from "hono-openapi";
3+
import { cors } from "hono/cors";
44
import { ApiError } from "./errors";
55
import { assetsApp } from "./routes/assets";
66
import { jobsApp } from "./routes/jobs";

apps/api/src/middleware.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { verify } from "hono/jwt";
2-
import { env } from "./env";
31
import type { Context, Next } from "hono";
2+
import { verify } from "hono/jwt";
43
import type { JWTPayload } from "hono/utils/jwt/types";
4+
import { env } from "./env";
55

66
export interface AuthVariables {
77
user:

apps/api/src/routes/token.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Hono } from "hono";
2-
import { sign } from "hono/jwt";
32
import { describeRoute } from "hono-openapi";
43
import { resolver, validator } from "hono-openapi/zod";
4+
import { sign } from "hono/jwt";
55
import { z } from "zod";
66
import { env } from "../env";
77
import { apiError } from "../errors";

apps/api/src/routes/user.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { describeRoute } from "hono-openapi";
33
import { resolver } from "hono-openapi/zod";
44
import { apiError } from "../errors";
55
import { auth } from "../middleware";
6+
import type { AuthVariables } from "../middleware";
67
import { getUser } from "../repositories/users";
78
import { userSchema } from "../schemas/user";
8-
import type { AuthVariables } from "../middleware";
99

1010
export const userApp = new Hono<{
1111
Variables: AuthVariables;

apps/api/src/utils/s3.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import { env } from "../env";
44

55
export type StorageFolderItem =
66
| {
7-
type: "file";
8-
path: string;
9-
size: number;
10-
}
7+
type: "file";
8+
path: string;
9+
size: number;
10+
}
1111
| {
12-
type: "folder";
13-
path: string;
14-
};
12+
type: "folder";
13+
path: string;
14+
};
1515

1616
export interface StorageFolder {
1717
cursor?: string;
@@ -96,7 +96,7 @@ export async function getStorageFilePayload(path: string) {
9696
}),
9797
);
9898
if (!command.Body) {
99-
throw new Error('Missing body');
99+
throw new Error("Missing body");
100100
}
101101
return await command.Body.transformToString("utf-8");
102102
}

apps/api/src/workers/outcome.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import type { OutcomeData, WorkerCallback } from "bolt";
12
import { createAsset } from "../repositories/assets";
23
import { createPlayable, getOrCreateGroup } from "../repositories/assets";
3-
import type { OutcomeData, WorkerCallback } from "bolt";
44

55
export const outcomeCallback: WorkerCallback<OutcomeData> = async ({ job }) => {
66
switch (job.data.type) {

apps/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"dev": "bunx --bun vite",
77
"build": "bunx --bun vite build",
8-
"lint": "biome lint ./src"
8+
"check": "biome check ./src"
99
},
1010
"devDependencies": {
1111
"@types/javascript-time-ago": "^2.0.8",

apps/app/src/api.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { createClient } from "@superstreamer/api/client";
2-
import { createContext, useContext, useMemo } from "react";
3-
import { useAuth } from "./auth";
42
import type { ApiClient } from "@superstreamer/api/client";
3+
import { createContext, useContext, useMemo } from "react";
54
import type { ReactNode } from "react";
5+
import { useAuth } from "./auth";
66

77
export interface ApiContext {
88
api: ApiClient;

0 commit comments

Comments
 (0)