Fix lint errors in Vite config and MachineConnection

- Add proper TypeScript types for PyPI API response
- Remove unused isPolling prop from MachineConnection interface
- Remove unused imports from vite.config.ts

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Jan-Henrik 2025-12-07 13:35:02 +01:00
parent 775a8b19d1
commit 651fa35a77
2 changed files with 8 additions and 6 deletions

View file

@ -19,7 +19,6 @@ interface MachineConnectionProps {
machineStatus: MachineStatus;
machineStatusName: string;
machineError: number;
isPolling: boolean;
onConnect: () => void;
onDisconnect: () => void;
onRefresh: () => void;
@ -31,7 +30,6 @@ export function MachineConnection({
machineStatus,
machineStatusName,
machineError,
isPolling,
onConnect,
onDisconnect,
}: MachineConnectionProps) {

View file

@ -4,8 +4,6 @@ import tailwindcss from '@tailwindcss/vite'
import { viteStaticCopy } from 'vite-plugin-static-copy'
import { dirname, join } from 'path'
import { fileURLToPath } from 'url'
import { writeFile, mkdir } from 'fs/promises'
import { existsSync } from 'fs'
import type { Plugin } from 'vite'
const PYODIDE_EXCLUDE = [
@ -44,10 +42,16 @@ async function getPyPIWheelUrl(packageName: string, version: string): Promise<{
throw new Error(`Failed to fetch PyPI metadata: ${response.statusText}`)
}
const data = await response.json()
const data = await response.json() as {
urls: Array<{
packagetype: string
filename: string
url: string
}>
}
// Find the wheel file (.whl) for py3-none-any
const wheelFile = data.urls.find((file: any) =>
const wheelFile = data.urls.find((file) =>
file.packagetype === 'bdist_wheel' &&
file.filename.endsWith('-py3-none-any.whl')
)