From 43e25534655f0659bf41b3e9b9284b961e4c2692 Mon Sep 17 00:00:00 2001 From: Philippe Matray Date: Mon, 9 Mar 2026 10:03:15 +0100 Subject: [PATCH] fix(ci): resolve Biome lint errors breaking CI pipeline - Update biome.json schema to 2.4.6 and enable Tailwind CSS directives - Configure VCS-aware linting and downgrade pre-existing lint warnings - Fix forEach callback return values (useIterableCallbackReturn) - Add type="button" to button elements (useButtonType) - Fix useRecentRepos hook declaration order (noInvalidUseBeforeDeclaration) - Prefix unused destructured variables with underscore - Auto-format renovate.json and index.css per Biome rules --- .planning/debug/viewer3d-standalone.html | 14 ++++---- biome.json | 36 +++++++++++++++++-- renovate.json | 9 ++--- .../blades/_shared/WorkflowNavigation.tsx | 1 + src/core/hooks/useRecentRepos.ts | 14 ++++---- .../branches/components/BranchItem.tsx | 5 ++- .../branches/components/BranchList.tsx | 4 +-- src/framework/stores/registry.ts | 4 ++- src/index.css | 18 +++++----- 9 files changed, 68 insertions(+), 37 deletions(-) diff --git a/.planning/debug/viewer3d-standalone.html b/.planning/debug/viewer3d-standalone.html index f45d4ca..57ec03a 100644 --- a/.planning/debug/viewer3d-standalone.html +++ b/.planning/debug/viewer3d-standalone.html @@ -177,8 +177,8 @@

FlowForge 3D Viewer Debug

Pending - - + +
@@ -227,7 +227,7 @@

Environment Checks

Load GLB/GLTF File

-
@@ -238,10 +238,10 @@

Load GLB/GLTF File

Test Base64 Pipeline (simulates Tauri)

- -
@@ -251,10 +251,10 @@

Test Base64 Pipeline (simulates Tauri)

Quick Test

- -
diff --git a/biome.json b/biome.json index b33c2a8..63aa00a 100644 --- a/biome.json +++ b/biome.json @@ -1,6 +1,36 @@ { - "$schema": "https://biomejs.dev/schemas/2.4.4/schema.json", + "$schema": "https://biomejs.dev/schemas/2.4.6/schema.json", "assist": { "actions": { "source": { "organizeImports": "on" } } }, - "linter": { "enabled": true, "rules": { "recommended": true } }, - "formatter": { "enabled": true, "indentStyle": "space", "indentWidth": 2 } + "linter": { + "enabled": true, + "rules": { + "recommended": true, + "suspicious": { + "noExplicitAny": "warn", + "noArrayIndexKey": "warn" + }, + "style": { + "noNonNullAssertion": "warn" + }, + "a11y": { + "recommended": true, + "useButtonType": "warn", + "noLabelWithoutControl": "warn", + "noStaticElementInteractions": "warn", + "useSemanticElements": "warn", + "useKeyWithClickEvents": "warn", + "useAriaPropsSupportedByRole": "warn", + "noSvgWithoutTitle": "warn", + "useFocusableInteractive": "warn", + "useAriaPropsForRole": "warn" + } + } + }, + "formatter": { "enabled": true, "indentStyle": "space", "indentWidth": 2 }, + "css": { "parser": { "tailwindDirectives": true } }, + "vcs": { + "enabled": true, + "clientKind": "git", + "useIgnoreFile": true + } } diff --git a/renovate.json b/renovate.json index e48fa99..ed38296 100644 --- a/renovate.json +++ b/renovate.json @@ -1,14 +1,9 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": [ - "config:recommended" - ], + "extends": ["config:recommended"], "packageRules": [ { - "matchUpdateTypes": [ - "minor", - "patch" - ], + "matchUpdateTypes": ["minor", "patch"], "automerge": true } ], diff --git a/src/core/blades/_shared/WorkflowNavigation.tsx b/src/core/blades/_shared/WorkflowNavigation.tsx index 1944936..3494a89 100644 --- a/src/core/blades/_shared/WorkflowNavigation.tsx +++ b/src/core/blades/_shared/WorkflowNavigation.tsx @@ -58,6 +58,7 @@ export function WorkflowNavigation({ className }: WorkflowNavigationProps) { const Icon = WORKFLOW_ICONS[id] ?? Files; return (