From cdb944ef0a46a16f1e9b95bc514c7e9eb635c71f Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 10 Apr 2026 19:58:52 +0100 Subject: [PATCH] chore: enable no-misused-spread --- .oxlintrc.json | 1 - src/plugins/public-surface-loader.test.ts | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.oxlintrc.json b/.oxlintrc.json index 681d85b3c6c..31e9a8c2e5c 100644 --- a/.oxlintrc.json +++ b/.oxlintrc.json @@ -63,7 +63,6 @@ "typescript/no-base-to-string": "off", "typescript/no-explicit-any": "off", "typescript/no-floating-promises": "off", - "typescript/no-misused-spread": "off", "typescript/no-redundant-type-constituents": "off", "typescript/no-unnecessary-template-expression": "off", "typescript/unbound-method": "off", diff --git a/src/plugins/public-surface-loader.test.ts b/src/plugins/public-surface-loader.test.ts index 97f12412987..e06006c3841 100644 --- a/src/plugins/public-surface-loader.test.ts +++ b/src/plugins/public-surface-loader.test.ts @@ -80,10 +80,9 @@ describe("bundled plugin public surface loader", () => { ); vi.doMock("node:module", async () => { const actual = await vi.importActual("node:module"); - return { - ...actual, + return Object.assign({}, actual, { createRequire: vi.fn(() => requireLoader), - }; + }); }); const publicSurfaceLoader = await importFreshModule<