Kaynağa Gözat

chore(lint): satisfy the trailing-comma rule and drop dead oxlint directives

The Gateway client spec's synthetic Remote namespace now resolves under both
analyzers, so its typescript/no-unsafe-call suppressions report as unused.
imccyu 2 ay önce
ebeveyn
işleme
92e817bf38

+ 0 - 4
packages/api/gateway/tests/client.spec.ts

@@ -226,9 +226,6 @@ describe('Client TypeRT API', () => {
       descriptors: [maybeDescriptor()],
     })
 
-    // The analyzers disagree on the key-remapped namespace projection: tsc
-    // resolves this method, oxlint reads it as an error type.
-    // oxlint-disable-next-line typescript/no-unsafe-call
     await expect(ctx.remote.probe.maybe(undefined)).resolves.toBeUndefined()
     expect(call).toHaveBeenNthCalledWith(
       1,
@@ -237,7 +234,6 @@ describe('Client TypeRT API', () => {
       { args: {} },
       expect.any(AbortSignal),
     )
-    // oxlint-disable-next-line typescript/no-unsafe-call
     await expect(ctx.remote.probe.maybe(null)).resolves.toBeNull()
     expect(call).toHaveBeenNthCalledWith(
       2,

+ 1 - 1
packages/api/remotes/src/client/index.ts

@@ -33,7 +33,7 @@ export type {
   RpcRequest, RpcResponse, RpcResult, SessionId, SessionModels, SessionSearchItem,
   SessionSummary, SettingsNamespaceView, SettingsPathOpView, SkillEntry, StreamChunk,
   SubagentAddress, SubagentCatalog, TaskView, ToolCallView, ToolEventView, ToolResultView,
-  WorkspaceId, WorkspaceView
+  WorkspaceId, WorkspaceView,
 } from '@deepseek-ai/dsh-client-connection/client'
 
 declare module '@deepseek-ai/cordis' {