summaryrefslogtreecommitdiffhomepage
path: root/packages/app/src
diff options
context:
space:
mode:
authorKit Langton <[email protected]>2026-04-15 22:53:10 -0400
committerGitHub <[email protected]>2026-04-16 02:53:10 +0000
commit702f7412676deae8317213a56a3b32095dba5aa4 (patch)
treeb0832ab0461dd96e784b0d960b63d99a30eee1fc /packages/app/src
parent665a8430864fb7a55dedea63a6cbdbe400218f80 (diff)
downloadopencode-702f7412676deae8317213a56a3b32095dba5aa4.tar.gz
opencode-702f7412676deae8317213a56a3b32095dba5aa4.zip
feat: enable oxlint suspicious category, fix 24 violations (#22727)
Diffstat (limited to 'packages/app/src')
-rw-r--r--packages/app/src/context/global-sdk.tsx1
-rw-r--r--packages/app/src/utils/runtime-adapters.test.ts2
2 files changed, 3 insertions, 0 deletions
diff --git a/packages/app/src/context/global-sdk.tsx b/packages/app/src/context/global-sdk.tsx
index 172b5c966..e53d60d5a 100644
--- a/packages/app/src/context/global-sdk.tsx
+++ b/packages/app/src/context/global-sdk.tsx
@@ -128,6 +128,7 @@ export const { use: useGlobalSDK, provider: GlobalSDKProvider } = createSimpleCo
if (started) return run
started = true
run = (async () => {
+ // oxlint-disable-next-line no-unmodified-loop-condition -- `started` is set to false by stop() which also aborts; both flags are checked to allow graceful exit
while (!abort.signal.aborted && started) {
attempt = new AbortController()
lastEventAt = Date.now()
diff --git a/packages/app/src/utils/runtime-adapters.test.ts b/packages/app/src/utils/runtime-adapters.test.ts
index 9f408b8eb..49552e179 100644
--- a/packages/app/src/utils/runtime-adapters.test.ts
+++ b/packages/app/src/utils/runtime-adapters.test.ts
@@ -46,7 +46,9 @@ describe("runtime adapters", () => {
})
test("resolves speech recognition constructor with webkit precedence", () => {
+ // oxlint-disable-next-line no-extraneous-class
class SpeechCtor {}
+ // oxlint-disable-next-line no-extraneous-class
class WebkitCtor {}
const ctor = getSpeechRecognitionCtor({
SpeechRecognition: SpeechCtor,