Skip to content

Commit f395a8b

Browse files
committed
fix(ci): resolve lint errors - remove any types, unused imports
1 parent 9b0fb04 commit f395a8b

5 files changed

Lines changed: 9 additions & 10 deletions

File tree

src/app/(dashboard)/audit/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ export default function AuditPage() {
319319
<TableCell className="text-xs text-muted-foreground max-w-[200px] truncate">
320320
{truncate(
321321
entry.diff ??
322-
(entry.metadata as any)?.input ??
322+
(entry.metadata as Record<string, unknown>)?.input ??
323323
entry.metadata
324324
)}
325325
</TableCell>

src/app/(dashboard)/pipelines/[id]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use client";
22

3-
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
3+
import { useCallback, useEffect, useRef, useState } from "react";
44
import { useParams, useRouter } from "next/navigation";
55
import { useQuery, useMutation, useQueryClient } from "@tanstack/react-query";
66
import type { NodeMetricsData } from "@/stores/flow-store";

src/app/api/agent/config/route.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export async function GET(request: Request) {
6161
}));
6262

6363
let configYaml: string;
64-
let secrets: Record<string, string> = {};
64+
const secrets: Record<string, string> = {};
6565
let certFiles: Array<{ name: string; filename: string; data: string }> = [];
6666

6767
if (environment.secretBackend === "BUILTIN") {
@@ -94,8 +94,8 @@ export async function GET(request: Request) {
9494
);
9595

9696
configYaml = generateVectorYaml(
97-
resolvedNodes as any,
98-
flowEdges as any,
97+
resolvedNodes as Parameters<typeof generateVectorYaml>[0],
98+
flowEdges as Parameters<typeof generateVectorYaml>[1],
9999
pipeline.globalConfig as Record<string, unknown> | null,
100100
);
101101
certFiles = allCertFiles;
@@ -124,8 +124,8 @@ export async function GET(request: Request) {
124124
}));
125125

126126
configYaml = generateVectorYaml(
127-
flowNodes as any,
128-
flowEdges as any,
127+
flowNodes as Parameters<typeof generateVectorYaml>[0],
128+
flowEdges as Parameters<typeof generateVectorYaml>[1],
129129
pipeline.globalConfig as Record<string, unknown> | null,
130130
);
131131
}

src/components/pipeline/pipeline-logs.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { useEffect, useRef, useState, useCallback } from "react";
44
import { useInfiniteQuery } from "@tanstack/react-query";
55
import { useTRPC } from "@/trpc/client";
66
import { Button } from "@/components/ui/button";
7-
import { Badge } from "@/components/ui/badge";
87
import type { LogLevel } from "@/generated/prisma";
98

109
const ALL_LEVELS: LogLevel[] = ["ERROR", "WARN", "INFO", "DEBUG", "TRACE"];

src/components/vrl-editor/vrl-editor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function VrlEditor({ value, onChange, height = "200px" }: VrlEditorProps)
4949
const [showTest, setShowTest] = useState(false);
5050
const [showSnippets, setShowSnippets] = useState(false);
5151
const [expanded, setExpanded] = useState(false);
52-
const editorRef = useRef<any>(null);
52+
const editorRef = useRef<unknown>(null);
5353

5454
const testMutation = useMutation(
5555
trpc.vrl.test.mutationOptions({
@@ -71,7 +71,7 @@ export function VrlEditor({ value, onChange, height = "200px" }: VrlEditorProps)
7171

7272
// Register VRL snippet completions
7373
monaco.languages.registerCompletionItemProvider("plaintext", {
74-
provideCompletionItems(model: any, position: any) {
74+
provideCompletionItems(model: { getWordUntilPosition: (pos: unknown) => { startColumn: number; endColumn: number } }, position: { lineNumber: number }) {
7575
const word = model.getWordUntilPosition(position);
7676
const range = {
7777
startLineNumber: position.lineNumber,

0 commit comments

Comments
 (0)