mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
chore(lint): replace ESLint with Oxlint and clear anti-slop findings
This commit is contained in:
1 parent
c6c13335e5
commit
b625acfc0c
1083 files changed
+67089
-80136
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user