Skip to content

Commit 330b7e5

Browse files
committed
chore(repo): Biome check
1 parent 9058108 commit 330b7e5

6 files changed

Lines changed: 17 additions & 7 deletions

File tree

next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
import "./.next/dev/types/routes.d.ts";
3+
import './.next/dev/types/routes.d.ts';
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

scripts/generate-short-url.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ async function slugExists(slug: string) {
3333
}
3434

3535
async function generateUniqueSlug(length = 6) {
36-
let slug;
36+
let slug: string;
3737
let attempts = 0;
3838
const maxAttempts = 10;
3939

@@ -88,7 +88,7 @@ async function generateShortUrl(
8888
console.log(`Feed URL: ${feedUrl}`);
8989

9090
// Generate or use custom slug
91-
let slug;
91+
let slug: string;
9292
if (customSlug) {
9393
if (await slugExists(customSlug)) {
9494
throw new Error(`Slug "${customSlug}" already exists`);

scripts/poll-feeds.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,11 @@ async function main() {
277277
throw new Error('DATABASE_URL required');
278278
}
279279

280-
const sql = postgres(connectionString, { max: 20, idle_timeout: 20, ...(process.env.PGHOST && { host: process.env.PGHOST }) });
280+
const sql = postgres(connectionString, {
281+
max: 20,
282+
idle_timeout: 20,
283+
...(process.env.PGHOST && { host: process.env.PGHOST }),
284+
});
281285

282286
if (DAEMON_MODE) {
283287
console.log(

scripts/poll-top-charts.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,11 @@ async function main() {
329329
throw new Error('DATABASE_URL required');
330330
}
331331

332-
const sql = postgres(connectionString, { max: 20, idle_timeout: 20, ...(process.env.PGHOST && { host: process.env.PGHOST }) });
332+
const sql = postgres(connectionString, {
333+
max: 20,
334+
idle_timeout: 20,
335+
...(process.env.PGHOST && { host: process.env.PGHOST }),
336+
});
333337

334338
const locales = DEFAULT_LOCALES;
335339

scripts/refresh-tiers.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ const changed = await recomputeEssential();
77
console.log(`is_essential updated for ${changed} podcasts`);
88

99
const evicted = await evictWarm(WARM_CAP_BYTES);
10-
console.log(`warm eviction removed ${evicted} content rows (cap ${WARM_CAP_BYTES} bytes)`);
10+
console.log(
11+
`warm eviction removed ${evicted} content rows (cap ${WARM_CAP_BYTES} bytes)`,
12+
);
1113

1214
await sql.end();

src/app/api/redis.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import {
66
KEY_SHORT_URL,
77
KEY_TOP_PODCASTS,
88
} from '@/data/constants';
9-
import type { IEpisodeListing, IPodcast, IShortUrl } from '@/types';
109
import { mtls } from '@/server/mtls';
10+
import type { IEpisodeListing, IPodcast, IShortUrl } from '@/types';
1111

1212
/**
1313
* Redis cached entity with timestamp

0 commit comments

Comments
 (0)