chore(lint): replace ESLint with Oxlint and clear anti-slop findings

This commit is contained in:
Chris Scott committed 2026-11-13 01:13:34 -05:00
1 parent c6c13335e5
commit b625acfc0c
1083 files changed
+67089 -80136

No files matched your search

+7 -5
View File
@@ -1,6 +1,7 @@
#!/usr/bin/env bun
import http from 'http'
import fs from 'fs'
import { z } from 'zod'
interface AskpassRequest {
askpassType: 'https' | 'ssh'
@@ -9,11 +10,12 @@ interface AskpassRequest {
repoId?: number
}
function fatal(err: unknown): never {
if (err instanceof Error) {
console.error(err.message)
} else if (typeof err === 'string') {
console.error(err)
function fatal(cause: unknown): never {
if (cause instanceof Error) {
console.error(cause.message)
} else {
const text = z.string().safeParse(cause)
if (text.success) console.error(text.data)
}
process.exit(1)
}