From eb97ade5146a4e49e3167aca25c225e14cf4fb16 Mon Sep 17 00:00:00 2001 From: Rose Date: Wed, 16 Oct 2024 10:10:43 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8make=20biome=20happy=20with=20new?= =?UTF-8?q?=20stuff?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 5 ++++- src/components/Profile.tsx | 17 ++++++++++------- src/lib/fetchProfile.ts | 4 ++-- src/routes/getProfile.tsx | 4 ++-- 4 files changed, 18 insertions(+), 12 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index e8156ed..e3ec29e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -5,5 +5,8 @@ "source.fixAll": "explicit", "source.organizeImports": "explicit" }, - "typescript.tsdk": "node_modules\\typescript\\lib" + "typescript.tsdk": "node_modules\\typescript\\lib", + "[typescript]": { + "editor.defaultFormatter": "biomejs.biome" + } } diff --git a/src/components/Profile.tsx b/src/components/Profile.tsx index db8621b..058b6c2 100644 --- a/src/components/Profile.tsx +++ b/src/components/Profile.tsx @@ -1,4 +1,4 @@ -import { AppBskyActorDefs } from "@atproto/api"; +import type { AppBskyActorDefs } from "@atproto/api"; import { OEmbedTypes } from "../routes/getOEmbed.ts"; import { Layout } from "./Layout.tsx"; @@ -12,7 +12,10 @@ interface ProfileProps { export const Profile = ({ profile, url, appDomain }: ProfileProps) => ( - + ( ); diff --git a/src/lib/fetchProfile.ts b/src/lib/fetchProfile.ts index 4a82a3e..c165bc2 100644 --- a/src/lib/fetchProfile.ts +++ b/src/lib/fetchProfile.ts @@ -1,4 +1,4 @@ -import { BskyAgent } from "@atproto/api"; +import type { BskyAgent } from "@atproto/api"; export interface fetchProfileOptions { user: string; @@ -6,7 +6,7 @@ export interface fetchProfileOptions { export async function fetchProfile( agent: BskyAgent, - { user }: fetchProfileOptions + { user }: fetchProfileOptions, ) { return agent.getProfile({ actor: user, diff --git a/src/routes/getProfile.tsx b/src/routes/getProfile.tsx index 113ce2c..dda28d2 100644 --- a/src/routes/getProfile.tsx +++ b/src/routes/getProfile.tsx @@ -1,4 +1,4 @@ -import { Handler } from "hono"; +import type { Handler } from "hono"; import { HTTPException } from "hono/http-exception"; import { Profile } from "../components/Profile.tsx"; import { fetchProfile } from "../lib/fetchProfile.ts"; @@ -20,6 +20,6 @@ export const getProfile: Handler< profile={data} url={c.req.path} appDomain={process.env.FIXBLUESKY_APP_DOMAIN ?? "bsyy.app"} - /> + />, ); };