Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: fix biome 2.5.6 lint errors and keep biome versions in sync

Dannycac4cce913fb
diff --git a/frontend/biome.json b/frontend/biome.json
index 0b32e0e436..45e690f63b 100644
--- a/frontend/biome.json
+++ b/frontend/biome.json
@@ -1,5 +1,5 @@
{
- "$schema": "https://biomejs.dev/schemas/2.5.5/schema.json",
+ "$schema": "https://biomejs.dev/schemas/2.5.6/schema.json",
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
"files": {
"ignoreUnknown": true,
diff --git a/frontend/src/components/sql-review/RuleComponents.tsx b/frontend/src/components/sql-review/RuleComponents.tsx
index fe445ba2a7..0a414fcea2 100644
--- a/frontend/src/components/sql-review/RuleComponents.tsx
+++ b/frontend/src/components/sql-review/RuleComponents.tsx
@@ -142,7 +142,7 @@ export function RuleLevelBadge({ level, suffix }: RuleLevelBadgeProps) {
interface RuleConfigProps {
rule: RuleTemplateV2;
disabled: boolean;
- payloadRef?: React.MutableRefObject<PayloadValueType[]>;
+ payloadRef?: React.RefObject<PayloadValueType[]>;
onPayloadChange?: (payload: PayloadValueType[]) => void;
}
diff --git a/frontend/src/routes/project/database-detail/catalog/GrantAccessDialog.tsx b/frontend/src/routes/project/database-detail/catalog/GrantAccessDialog.tsx
index 79ce07c652..d05ca5c169 100644
--- a/frontend/src/routes/project/database-detail/catalog/GrantAccessDialog.tsx
+++ b/frontend/src/routes/project/database-detail/catalog/GrantAccessDialog.tsx
@@ -95,7 +95,7 @@ export function GrantAccessDialog({
(resource.columns ?? []).join(","),
].join("|")
)
- .sort()
+ .sort((a, b) => a.localeCompare(b))
.join("||"),
[initialDatabaseResources]
);
diff --git a/frontend/src/routes/project/plan-detail/shell/hooks/useInitialFetch.ts b/frontend/src/routes/project/plan-detail/shell/hooks/useInitialFetch.ts
index 3c64bb9590..86537c0408 100644
--- a/frontend/src/routes/project/plan-detail/shell/hooks/useInitialFetch.ts
+++ b/frontend/src/routes/project/plan-detail/shell/hooks/useInitialFetch.ts
@@ -1,5 +1,5 @@
import { Code, ConnectError } from "@connectrpc/connect";
-import type { MutableRefObject } from "react";
+import type { RefObject } from "react";
import { useEffect } from "react";
import { router } from "@/app/router";
import { WORKSPACE_ROUTE_403, WORKSPACE_ROUTE_404 } from "@/app/router/handles";
@@ -12,7 +12,7 @@ import type { PlanDetailPageSnapshot } from "./types";
export interface UseInitialFetchParams {
projectId: string;
planId: string;
- routeQueryRef: MutableRefObject<Record<string, unknown>>;
+ routeQueryRef: RefObject<Record<string, unknown>>;
storeApi: PlanDetailStoreApi;
patchState: (patch: Partial<PlanDetailPageSnapshot>) => void;
}
diff --git a/renovate.json b/renovate.json
index 4f62d01833..3b33f892e1 100644
--- a/renovate.json
+++ b/renovate.json
@@ -10,6 +10,16 @@
"matchStrings": ["pnpm@(?<currentValue>\\d+\\.\\d+\\.\\d+)"],
"depNameTemplate": "pnpm",
"datasourceTemplate": "npm"
+ },
+ {
+ "customType": "regex",
+ "description": "Bump the $schema URL in frontend/biome.json together with @biomejs/biome so the schema version always matches the CLI version",
+ "managerFilePatterns": ["/^frontend/biome\\.json$/"],
+ "matchStrings": [
+ "https://biomejs\\.dev/schemas/(?<currentValue>\\d+\\.\\d+\\.\\d+)/schema\\.json"
+ ],
+ "depNameTemplate": "@biomejs/biome",
+ "datasourceTemplate": "npm"
}
],
"packageRules": [
@@ -23,14 +33,6 @@
"description": "Bump pnpm together across package.json, workflows, and the Dockerfile",
"matchPackageNames": ["pnpm"]
},
- {
- "matchManagers": ["npm"],
- "postUpgradeTasks": {
- "commands": ["pnpm install --no-frozen-lockfile"],
- "fileFilters": ["frontend/pnpm-lock.yaml"],
- "executionMode": "update"
- }
- },
{
"groupName": "codingame",
"matchPackageNames": ["/^@codingame//", "/^monaco-editor$/", "/^vscode$/"]