Skip to content

Commit 5e4d217

Browse files
sweetmantechclaude
andcommitted
fix: auto-fix 129 ESLint errors across 87 files
Ran pnpm lint to auto-fix JSDoc stubs and other auto-fixable issues. All tests pass. 481 manual errors remain. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3f5ba28 commit 5e4d217

File tree

87 files changed

+264
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+264
-7
lines changed

app/api/accounts/[id]/route.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export async function OPTIONS() {
2323
* - id (required): The unique identifier of the account (UUID)
2424
*
2525
* @param request - The request object
26+
* @param params.params
2627
* @param params - Route params containing the account ID
2728
* @returns A NextResponse with account data
2829
*/

app/api/admins/coding/slack/route.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import { getSlackTagsHandler } from "@/lib/admins/slack/getSlackTagsHandler";
99
* Pulls directly from the Slack API as the source of truth.
1010
* Supports period filtering: all (default), daily, weekly, monthly.
1111
* Requires admin authentication.
12+
*
13+
* @param request
1214
*/
1315
export async function GET(request: NextRequest): Promise<NextResponse> {
1416
return getSlackTagsHandler(request);

app/api/admins/privy/route.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,16 @@ import { getPrivyLoginsHandler } from "@/lib/admins/privy/getPrivyLoginsHandler"
88
* Returns Privy login statistics for the requested time period.
99
* Supports daily (last 24h), weekly (last 7 days), and monthly (last 30 days) periods.
1010
* Requires admin authentication.
11+
*
12+
* @param request
1113
*/
1214
export async function GET(request: NextRequest): Promise<NextResponse> {
1315
return getPrivyLoginsHandler(request);
1416
}
1517

18+
/**
19+
*
20+
*/
1621
export async function OPTIONS(): Promise<NextResponse> {
1722
return new NextResponse(null, { status: 204, headers: getCorsHeaders() });
1823
}

app/api/songs/analyze/presets/route.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export async function OPTIONS() {
2828
* - status: "success"
2929
* - presets: Array of { name, label, description, requiresAudio, responseFormat }
3030
*
31+
* @param request
3132
* @returns A NextResponse with the list of available presets
3233
*/
3334
export async function GET(request: NextRequest): Promise<NextResponse> {

app/api/transcribe/route.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ import { NextRequest, NextResponse } from "next/server";
22
import { processAudioTranscription } from "@/lib/transcribe/processAudioTranscription";
33
import { formatTranscriptionError } from "@/lib/transcribe/types";
44

5+
/**
6+
*
7+
* @param req
8+
*/
59
export async function POST(req: NextRequest) {
610
try {
711
const body = await req.json();

lib/admins/emails/__tests__/validateGetAdminEmailsQuery.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ vi.mock("@/lib/admins/validateAdminAuth", () => ({
1212
validateAdminAuth: vi.fn(),
1313
}));
1414

15+
/**
16+
*
17+
* @param url
18+
*/
1519
function createMockRequest(url: string): NextRequest {
1620
return {
1721
url,

lib/admins/pr/__tests__/getPrMergedStatusHandler.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ vi.mock("@/lib/github/fetchGithubPrStatus", () => ({
1919
const PR_URL_1 = "https://github.com/recoupable/api/pull/42";
2020
const PR_URL_2 = "https://github.com/recoupable/chat/pull/100";
2121

22+
/**
23+
*
24+
* @param urls
25+
*/
2226
function makeRequest(urls: string[] = [PR_URL_1]) {
2327
const params = new URLSearchParams();
2428
urls.forEach(url => params.append("pull_requests", url));

lib/admins/pr/getPrStatusHandler.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import { fetchGithubPrStatus } from "@/lib/github/fetchGithubPrStatus";
1010
* Uses the GitHub REST API to check each PR's state.
1111
*
1212
* Requires admin authentication.
13+
*
14+
* @param request
1315
*/
1416
export async function getPrStatusHandler(request: NextRequest): Promise<NextResponse> {
1517
try {

lib/admins/privy/countNewAccounts.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import { getCutoffMs } from "./getCutoffMs";
55

66
/**
77
* Counts how many users in the list were created within the cutoff period.
8+
*
9+
* @param users
10+
* @param period
811
*/
912
export function countNewAccounts(users: User[], period: PrivyLoginsPeriod): number {
1013
const cutoffMs = getCutoffMs(period);

lib/admins/privy/fetchPrivyLogins.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ export type FetchPrivyLoginsResult = {
2020
totalPrivyUsers: number;
2121
};
2222

23+
/**
24+
*
25+
* @param period
26+
*/
2327
export async function fetchPrivyLogins(period: PrivyLoginsPeriod): Promise<FetchPrivyLoginsResult> {
2428
const isAll = period === "all";
2529
const cutoffMs = getCutoffMs(period);

0 commit comments

Comments
 (0)