diff --git a/app/src/hooks.client.ts b/app/src/hooks.client.ts index d42a2bc9e3..00dafc054f 100644 --- a/app/src/hooks.client.ts +++ b/app/src/hooks.client.ts @@ -6,7 +6,7 @@ import type { HandleClientError } from "@sveltejs/kit" */ // biome-ignore lint/suspicious/useAwait: no need -export const handleError = (async ({ error, event, status, message, ...context }) => { +export const handleError = (async ({ error, message }) => { const errorId = crypto.randomUUID() return { errorId, message: `${message} - ${error}` } diff --git a/app/src/lib/actions/copy.ts b/app/src/lib/actions/copy.ts index 493d123ae9..4414e4260c 100644 --- a/app/src/lib/actions/copy.ts +++ b/app/src/lib/actions/copy.ts @@ -45,7 +45,7 @@ const resolveConfiguration = ( const events = typeof parameters.event === "string" ? [parameters.event] - : parameters.event ?? (["click"] as K | Array) + : (parameters.event ?? (["click"] as K | Array)) return { trigger, enabled, text, events, synthetic } } diff --git a/app/src/lib/components/precise.svelte b/app/src/lib/components/precise.svelte index 0a74910fdc..275334df2a 100644 --- a/app/src/lib/components/precise.svelte +++ b/app/src/lib/components/precise.svelte @@ -50,7 +50,7 @@ const abbreviateNumber = (num: number, displayDecimals: number): string => { $: supportedAsset = asset ? getSupportedAsset(chain, asset.address) : null -$: balance = asset ? asset.balance ?? BigInt(0) : BigInt(0) +$: balance = asset ? (asset.balance ?? BigInt(0)) : BigInt(0) $: decimals = asset && supportedAsset ? supportedAsset.decimals : asset ? asset.decimals : 0 $: symbol = asset && supportedAsset ? supportedAsset.display_symbol : asset ? asset.symbol : "Unknown" diff --git a/app/src/lib/transfer/transfer.ts b/app/src/lib/transfer/transfer.ts index 5e69aba84a..27ca938b73 100644 --- a/app/src/lib/transfer/transfer.ts +++ b/app/src/lib/transfer/transfer.ts @@ -29,7 +29,7 @@ export type TransferState = DiscriminatedUnion< > export const transferStep = (state: TransferState): number => { - // biome-ignore lint/nursery/useDefaultSwitchClause: i want typescript to error if we forgot a case + // biome-ignore lint/style/useDefaultSwitchClause: i want typescript to error if we forgot a case switch (state.kind) { case "PRE_TRANSFER": return 1 diff --git a/biome.json b/biome.json index 0dcaed636e..ed69b471e3 100644 --- a/biome.json +++ b/biome.json @@ -1,5 +1,5 @@ { - "$schema": "https://esm.sh/@biomejs/biome@1.8.3/configuration_schema.json", + "$schema": "https://esm.sh/@biomejs/biome@1.9.1/configuration_schema.json", "vcs": { "enabled": true, "clientKind": "git", @@ -70,7 +70,8 @@ "*.json", "*.jsonc", "*.astro", - "*.svelte" + "*.svelte", + "*.graphql" ], "ignoreUnknown": true, "ignore": [ @@ -122,7 +123,8 @@ "*.json", "*.jsonc", "*.astro", - "*.svelte" + "*.svelte", + "*.graphql" ], "ignore": [ "_", @@ -172,29 +174,30 @@ }, "nursery": { "all": true, - "noConsole": "off", - "useTopLevelRegex": "off", + "noSecrets": "off", + "noProcessEnv": "off", + "useStrictMode": "off", "noExportedImports": "off", - "useImportRestrictions": "off", - "noUndeclaredDependencies": "off", - "noUnusedFunctionParameters": "off", - "noUselessUndefinedInitialization": "off" + "useImportRestrictions": "off" }, "performance": { "all": true, "noDelete": "off", "noBarrelFile": "off", "noReExportAll": "off", + "useTopLevelRegex": "off", "noAccumulatingSpread": "warn" }, "correctness": { "all": true, "noNodejsModules": "off", "noUnusedVariables": "off", - "noUndeclaredVariables": "off" + "noUndeclaredVariables": "off", + "noUndeclaredDependencies": "off" }, "suspicious": { "all": true, + "noConsole": "off", "noConsoleLog": "off", "noExplicitAny": "off", "noCatchAssign": "off", @@ -228,7 +231,8 @@ "*.json", "*.jsonc", "*.astro", - "*.svelte" + "*.svelte", + "*.graphql" ], "ignore": [ "_", @@ -294,7 +298,8 @@ "correctness": { "noUnusedLabels": "off", "noUnusedImports": "off", - "useHookAtTopLevel": "off" + "useHookAtTopLevel": "off", + "noUnusedFunctionParameters": "off" }, "style": { "useConst": "off", @@ -303,7 +308,7 @@ "suspicious": { "noConfusingLabels": "off" }, - "nursery": { + "complexity": { "noUselessUndefinedInitialization": "off" } } @@ -313,9 +318,7 @@ "include": ["scripts", "*config*"], "linter": { "rules": { - "nursery": { - "noConsole": "off" - } + "nursery": {} } } }, diff --git a/flake.lock b/flake.lock index acddbc4014..ff0c048079 100644 --- a/flake.lock +++ b/flake.lock @@ -26,16 +26,16 @@ "biome": { "flake": false, "locked": { - "lastModified": 1719495531, - "narHash": "sha256-6/RYuaR4HBXLI7eKysyRcSOxONFlChpQuhzWHAlx2CM=", + "lastModified": 1726419034, + "narHash": "sha256-/Kyq2y34b32NOjGkfWjfjM7MLhyhWmM32Ek6zrX5LC0=", "owner": "biomejs", "repo": "biome", - "rev": "c28d5978c1440b3ae184d1cc354233711abf8a8e", + "rev": "9bf1e4c7738a8f6fe7cb5f533b1bd9776b3f8452", "type": "github" }, "original": { "owner": "biomejs", - "ref": "cli/v1.8.3", + "ref": "cli/v1.9.1", "repo": "biome", "type": "github" } diff --git a/flake.nix b/flake.nix index d0d08c1dad..7006896fc8 100644 --- a/flake.nix +++ b/flake.nix @@ -94,7 +94,7 @@ flake = false; }; biome = { - url = "github:biomejs/biome/cli/v1.8.3"; + url = "github:biomejs/biome/cli/v1.9.1"; flake = false; }; diff --git a/site/src/lib/contentful/live-preview.ts b/site/src/lib/contentful/live-preview.ts index f361c33080..3c67209f8c 100644 --- a/site/src/lib/contentful/live-preview.ts +++ b/site/src/lib/contentful/live-preview.ts @@ -72,7 +72,7 @@ function findElementByDataAttribute({ entryId, fieldId }: { entryId: string; fie function displayFieldData({ entry, - client, + client: _client, fieldId, entryId }: { diff --git a/site/src/pages/api/blog/webhook.json.ts b/site/src/pages/api/blog/webhook.json.ts index c1430df0d5..e98225ec5c 100644 --- a/site/src/pages/api/blog/webhook.json.ts +++ b/site/src/pages/api/blog/webhook.json.ts @@ -1,7 +1,7 @@ import type { APIRoute } from "astro" import { purgeCache } from "@netlify/functions" -export const POST: APIRoute = async ({ params, request, ...context }) => { +export const POST: APIRoute = async ({ request }) => { const body = (await request.json()) as { sys: { id: string } } const contentfulWebhookSecret = process.env.CONTENTFUL_WEBHOOK_SECRET diff --git a/tools/biome/biome.nix b/tools/biome/biome.nix index 9bb3fd075d..477f5ea17e 100644 --- a/tools/biome/biome.nix +++ b/tools/biome/biome.nix @@ -18,7 +18,7 @@ rustToolchain = rust.mkNightly { targets = [ CARGO_BUILD_TARGET ]; }; - BIOME_VERSION = "1.8.3"; + BIOME_VERSION = "1.9.1"; biome = (crane.lib.overrideToolchain rustToolchain).buildPackage { inherit CARGO_BUILD_TARGET BIOME_VERSION; diff --git a/typescript-sdk/src/client/cosmos.ts b/typescript-sdk/src/client/cosmos.ts index 76df0e1bf1..edb0d138ce 100644 --- a/typescript-sdk/src/client/cosmos.ts +++ b/typescript-sdk/src/client/cosmos.ts @@ -41,8 +41,8 @@ export const createCosmosClient = (parameters: CosmosClientParameters) => receiver, denomAddress, destinationChainId, - memo = timestamp(), relayContractAddress, + memo: _memo = timestamp(), account = parameters.account, gasPrice = parameters.gasPrice }: TransferAssetsParameters): Promise> => { @@ -138,9 +138,9 @@ export const createCosmosClient = (parameters: CosmosClientParameters) => return err(new Error("Unsupported network")) }, simulateTransaction: async ({ - memo, amount, receiver, + memo: _memo, denomAddress, destinationChainId, relayContractAddress, diff --git a/typescript-sdk/src/transfer/evm.ts b/typescript-sdk/src/transfer/evm.ts index cd277bbd1f..a9fb6b0093 100644 --- a/typescript-sdk/src/transfer/evm.ts +++ b/typescript-sdk/src/transfer/evm.ts @@ -195,7 +195,7 @@ export async function approveTransferAssetFromEvm( * ``` */ export async function transferAssetFromEvmSimulate( - client: WalletClient & PublicActions, + _client: WalletClient & PublicActions, { memo, amount,