From a9e3d7d0a51a50c13913f032e5dd9f8ab98d3b70 Mon Sep 17 00:00:00 2001 From: Jere Ljungberg Date: Fri, 5 Dec 2025 14:49:46 +0200 Subject: [PATCH 1/2] Add no console rule --- theme-builder/biome.json | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/theme-builder/biome.json b/theme-builder/biome.json index c5924b179..3217ac952 100644 --- a/theme-builder/biome.json +++ b/theme-builder/biome.json @@ -11,7 +11,21 @@ "enabled": true, "rules": { "recommended": true, - "suspicious": { "noGlobalIsFinite": "off", "noArrayIndexKey": "warn" }, + "suspicious": { + "noArrayIndexKey": "warn", + "noConsole": { + "level": "warn", + "options": { + "allow": [ + "assert", + "error", + "info", + "warn" + ] + } + }, + "noGlobalIsFinite":"off" + }, "correctness": { "noUnusedVariables": "warn", "useHookAtTopLevel": "error", From c2cf30bb6f771d56a81a896bd2d5c8c6ac4b9dbc Mon Sep 17 00:00:00 2001 From: Jere Ljungberg Date: Fri, 5 Dec 2025 14:58:40 +0200 Subject: [PATCH 2/2] Add missing space --- theme-builder/biome.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme-builder/biome.json b/theme-builder/biome.json index 3217ac952..0b2a92d22 100644 --- a/theme-builder/biome.json +++ b/theme-builder/biome.json @@ -24,7 +24,7 @@ ] } }, - "noGlobalIsFinite":"off" + "noGlobalIsFinite": "off" }, "correctness": { "noUnusedVariables": "warn",