瀏覽代碼

fix(ci): preserve cross-platform lint suppressions

Tianyi Cui 1 月之前
父節點
當前提交
2a72de67d1

+ 1 - 0
packages/client/ui-message-feedback/src/client/controller.ts

@@ -328,6 +328,7 @@ export class MessageFeedbackController implements HostObservable<MessageFeedback
         if (!loaded.ok) return loaded
         // Disposal can land while the seeding read is in flight; without this
         // second check the fiber would still reach the wire after unloading.
+        // oxlint-disable-next-line typescript/no-unnecessary-condition -- dispose() can run during the await.
         if (this.disposed) return DISPOSED
       }
       try {

+ 2 - 0
packages/client/ui-message-feedback/tests/controller.client.spec.ts

@@ -345,6 +345,7 @@ describe('MessageFeedbackController', () => {
   })
 
   it('preserves a non-Error list rejection as a diagnostic string', async () => {
+    // oxlint-disable-next-line typescript/prefer-promise-reject-errors -- the non-Error rejection is the scenario under test.
     const { remote } = fakeRemote({ list: () => Promise.reject('socket string') })
     const controller = new MessageFeedbackController(remote, SESSION)
 
@@ -355,6 +356,7 @@ describe('MessageFeedbackController', () => {
   })
 
   it('preserves a non-Error mutation rejection as a diagnostic string', async () => {
+    // oxlint-disable-next-line typescript/prefer-promise-reject-errors -- the non-Error rejection is the scenario under test.
     const { remote } = fakeRemote({ put: () => Promise.reject('nope') })
     const controller = new MessageFeedbackController(remote, SESSION)