chore: align biome lint config and clean warnings

This commit is contained in:
Peter Steinberger
2025-12-03 16:09:44 +00:00
parent 3b3e04204b
commit a94a5edc11
7 changed files with 53 additions and 31 deletions
+3 -4
View File
@@ -237,9 +237,7 @@ export class TwitterClient {
return tweets;
}
private async fetchTweetDetail(
tweetId: string,
): Promise<
private async fetchTweetDetail(tweetId: string): Promise<
| {
success: true;
data: {
@@ -719,6 +717,7 @@ export class TwitterClient {
continue;
}
// biome-ignore lint/suspicious/noExplicitAny: Twitter API response is dynamic here
let data: any;
try {
data = await response.json();
@@ -739,7 +738,7 @@ export class TwitterClient {
? data.name
: typeof data?.user?.name === 'string'
? data.user.name
: username ?? '';
: (username ?? '');
const userId =
typeof data?.user_id === 'string'