From 2f6696eb9c000e2af6a5d3c3c62b64cabd1566b1 Mon Sep 17 00:00:00 2001 From: dalaoshu Date: Wed, 31 Jul 2024 22:52:41 +0800 Subject: [PATCH] chore(infra/biome): enable noEmptyPattern (#7384) * chore(infra/biome): enable noEmptyPattern * chore: fix @playwright/test error --- biome.jsonc | 1 - packages/playground/fixtures/pathInfo.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/biome.jsonc b/biome.jsonc index 3c9ca468c27..817c1d8645a 100644 --- a/biome.jsonc +++ b/biome.jsonc @@ -48,7 +48,6 @@ "noExtraBooleanCast": "off" }, "correctness": { - "noEmptyPattern": "off", "noConstructorReturn": "off", "noSwitchDeclarations": "off", "noInvalidUseBeforeDeclaration": "off", diff --git a/packages/playground/fixtures/pathInfo.ts b/packages/playground/fixtures/pathInfo.ts index a6befc89b9e..72fec27d592 100644 --- a/packages/playground/fixtures/pathInfo.ts +++ b/packages/playground/fixtures/pathInfo.ts @@ -39,7 +39,7 @@ async function calcPathInfo( } export const pathInfoFixtures: Fixtures = { - pathInfo: async ({}, use, { file, workerIndex }) => { + pathInfo: async ({ page: _ }: any, use, { file, workerIndex }) => { const pathInfo: PathInfo = await calcPathInfo(file, String(workerIndex)); await use(pathInfo); await fs.remove(pathInfo.tempProjectDir);