GeezerVison is showing github.com — fix: resolve oxlint warnings — suppress false positives, remove unuse… · JamieHoll/opencode@f7d4665
File treeExpand file treeCollapse file tree Open diff view settings provider/sdk/copilot/responses
Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .oxlintrc.json +7-1Lines changed: 7 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 4 | 4 | // Effect uses `function*` with Effect.gen/Effect.fnUntraced that don't always yield | 5 | 5 | "require-yield": "off", | 6 | 6 | // SolidJS uses `let ref: T | undefined` for JSX ref bindings assigned at runtime | 7 | | - "no-unassigned-vars": "off" | | 7 | + "no-unassigned-vars": "off", | | 8 | + // SolidJS tracks reactive deps by reading properties inside createEffect | | 9 | + "no-unused-expressions": "off", | | 10 | + // Intentional control char matching (ANSI escapes, null byte sanitization) | | 11 | + "no-control-regex": "off", | | 12 | + // SST and plugin tools require triple-slash references | | 13 | + "triple-slash-reference": "off" | 8 | 14 | }, | 9 | 15 | "ignorePatterns": ["**/node_modules", "**/dist", "**/.build", "**/.sst", "**/*.d.ts"] | 10 | 16 | } |
Collapse file Copy file name to clipboardExpand all lines: github/index.ts +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -281,7 +281,7 @@ async function assertOpencodeConnected() { | 281 | 281 | }) | 282 | 282 | connected = true | 283 | 283 | break | 284 | | - } catch (e) {} | | 284 | + } catch {} | 285 | 285 | await sleep(300) | 286 | 286 | } while (retry++ < 30) | 287 | 287 |
| @@ -561,7 +561,7 @@ async function subscribeSessionEvents() { | 561 | 561 | if (evt.properties.info.id !== session.id) continue | 562 | 562 | session = evt.properties.info | 563 | 563 | } | 564 | | - } catch (e) { | | 564 | + } catch { | 565 | 565 | // Ignore parse errors | 566 | 566 | } | 567 | 567 | } | @@ -576,7 +576,7 @@ async function subscribeSessionEvents() { | 576 | 576 | async function summarize(response: string) { | 577 | 577 | try { | 578 | 578 | return await chat(`Summarize the following in less than 40 characters:\n\n${response}`) | 579 | | - } catch (e) { | | 579 | + } catch { | 580 | 580 | if (isScheduleEvent()) { | 581 | 581 | return "Scheduled task changes" | 582 | 582 | } | |
Collapse file Copy file name to clipboardExpand all lines: infra/enterprise.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | import { SECRET } from "./secret" | 2 | | -import { domain, shortDomain } from "./stage" | | 2 | +import { shortDomain } from "./stage" | 3 | 3 |
| 4 | 4 | const storage = new sst.cloudflare.Bucket("EnterpriseStorage") | 5 | 5 |
| |
Collapse file Copy file name to clipboardExpand all lines: packages/app/src/addons/serialize.ts +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -258,8 +258,8 @@ class StringSerializeHandler extends BaseSerializeHandler { | 258 | 258 | } | 259 | 259 |
| 260 | 260 | protected _beforeSerialize(rows: number, start: number, _end: number): void { | 261 | | - this._allRows = new Array<string>(rows) | 262 | | - this._allRowSeparators = new Array<string>(rows) | | 261 | + this._allRows = Array.from<string>({ length: rows }) | | 262 | + this._allRowSeparators = Array.from<string>({ length: rows }) | 263 | 263 | this._rowIndex = 0 | 264 | 264 |
| 265 | 265 | this._currentRow = "" | |
Collapse file Copy file name to clipboardExpand all lines: packages/app/src/components/session/session-header.tsx +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -8,7 +8,7 @@ import { Spinner } from "@opencode-ai/ui/spinner" | 8 | 8 | import { showToast } from "@opencode-ai/ui/toast" | 9 | 9 | import { Tooltip, TooltipKeybind } from "@opencode-ai/ui/tooltip" | 10 | 10 | import { getFilename } from "@opencode-ai/shared/util/path" | 11 | | -import { createEffect, createMemo, For, onCleanup, Show } from "solid-js" | | 11 | +import { createEffect, createMemo, For, Show } from "solid-js" | 12 | 12 | import { createStore } from "solid-js/store" | 13 | 13 | import { Portal } from "solid-js/web" | 14 | 14 | import { useCommand } from "@/context/command" | |
Collapse file Copy file name to clipboardExpand all lines: packages/app/src/components/titlebar.tsx +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -import { createEffect, createMemo, onCleanup, Show, untrack } from "solid-js" | | 1 | +import { createEffect, createMemo, Show, untrack } from "solid-js" | 2 | 2 | import { createStore } from "solid-js/store" | 3 | 3 | import { useLocation, useNavigate, useParams } from "@solidjs/router" | 4 | 4 | import { IconButton } from "@opencode-ai/ui/icon-button" | |
Collapse file Copy file name to clipboardExpand all lines: packages/app/src/context/global-sync/queue.ts +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -63,6 +63,7 @@ export function createRefreshQueue(input: QueueInput) { | 63 | 63 | } | 64 | 64 | } finally { | 65 | 65 | running = false | | 66 | + // oxlint-disable-next-line no-unsafe-finally -- intentional: early return skips schedule() when paused | 66 | 67 | if (input.paused()) return | 67 | 68 | if (root || queued.size) schedule() | 68 | 69 | } | |
Collapse file Copy file name to clipboardExpand all lines: packages/app/src/pages/layout.tsx +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -704,7 +704,7 @@ export default function Layout(props: ParentProps) { | 704 | 704 |
| 705 | 705 | createEffect(() => { | 706 | 706 | const active = new Set(visibleSessionDirs()) | 707 | | - for (const directory of [...prefetchedByDir.keys()]) { | | 707 | + for (const directory of prefetchedByDir.keys()) { | 708 | 708 | if (active.has(directory)) continue | 709 | 709 | prefetchedByDir.delete(directory) | 710 | 710 | } | |
Collapse file Copy file name to clipboardExpand all lines: packages/app/src/pages/session/review-tab.tsx +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -import { createEffect, createSignal, onCleanup, type JSX } from "solid-js" | | 1 | +import { createEffect, onCleanup, type JSX } from "solid-js" | 2 | 2 | import { makeEventListener } from "@solid-primitives/event-listener" | 3 | 3 | import type { SnapshotFileDiff, VcsFileDiff } from "@opencode-ai/sdk/v2" | 4 | 4 | import { SessionReview } from "@opencode-ai/ui/session-review" | |
Collapse file Copy file name to clipboardExpand all lines: packages/console/app/src/component/email-signup.tsx -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | import { action, useSubmission } from "@solidjs/router" | 2 | | -import dock from "../asset/lander/dock.png" | 3 | 2 | import { Resource } from "@opencode-ai/console-resource" | 4 | 3 | import { Show } from "solid-js" | 5 | 4 | import { useI18n } from "~/context/i18n" | |
|