Skip to content

Commit b8c0bd8

Browse files
authored
feat: biome 1.9.1 (#2961)
2 parents be596ba + 0604160 commit b8c0bd8

File tree

12 files changed

+34
-31
lines changed

12 files changed

+34
-31
lines changed

app/src/hooks.client.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { HandleClientError } from "@sveltejs/kit"
66
*/
77

88
// biome-ignore lint/suspicious/useAwait: no need
9-
export const handleError = (async ({ error, event, status, message, ...context }) => {
9+
export const handleError = (async ({ error, message }) => {
1010
const errorId = crypto.randomUUID()
1111

1212
return { errorId, message: `${message} - ${error}` }

app/src/lib/actions/copy.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const resolveConfiguration = <K extends keyof HTMLElementEventMap>(
4545
const events =
4646
typeof parameters.event === "string"
4747
? [parameters.event]
48-
: parameters.event ?? (["click"] as K | Array<K>)
48+
: (parameters.event ?? (["click"] as K | Array<K>))
4949
return { trigger, enabled, text, events, synthetic }
5050
}
5151

app/src/lib/components/precise.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const abbreviateNumber = (num: number, displayDecimals: number): string => {
5050
5151
$: supportedAsset = asset ? getSupportedAsset(chain, asset.address) : null
5252
53-
$: balance = asset ? asset.balance ?? BigInt(0) : BigInt(0)
53+
$: balance = asset ? (asset.balance ?? BigInt(0)) : BigInt(0)
5454
$: decimals = asset && supportedAsset ? supportedAsset.decimals : asset ? asset.decimals : 0
5555
$: symbol =
5656
asset && supportedAsset ? supportedAsset.display_symbol : asset ? asset.symbol : "Unknown"

app/src/lib/transfer/transfer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export type TransferState = DiscriminatedUnion<
2929
>
3030

3131
export const transferStep = (state: TransferState): number => {
32-
// biome-ignore lint/nursery/useDefaultSwitchClause: i want typescript to error if we forgot a case
32+
// biome-ignore lint/style/useDefaultSwitchClause: i want typescript to error if we forgot a case
3333
switch (state.kind) {
3434
case "PRE_TRANSFER":
3535
return 1

biome.json

+19-16
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://esm.sh/@biomejs/biome@1.8.3/configuration_schema.json",
2+
"$schema": "https://esm.sh/@biomejs/biome@1.9.1/configuration_schema.json",
33
"vcs": {
44
"enabled": true,
55
"clientKind": "git",
@@ -70,7 +70,8 @@
7070
"*.json",
7171
"*.jsonc",
7272
"*.astro",
73-
"*.svelte"
73+
"*.svelte",
74+
"*.graphql"
7475
],
7576
"ignoreUnknown": true,
7677
"ignore": [
@@ -122,7 +123,8 @@
122123
"*.json",
123124
"*.jsonc",
124125
"*.astro",
125-
"*.svelte"
126+
"*.svelte",
127+
"*.graphql"
126128
],
127129
"ignore": [
128130
"_",
@@ -172,29 +174,30 @@
172174
},
173175
"nursery": {
174176
"all": true,
175-
"noConsole": "off",
176-
"useTopLevelRegex": "off",
177+
"noSecrets": "off",
178+
"noProcessEnv": "off",
179+
"useStrictMode": "off",
177180
"noExportedImports": "off",
178-
"useImportRestrictions": "off",
179-
"noUndeclaredDependencies": "off",
180-
"noUnusedFunctionParameters": "off",
181-
"noUselessUndefinedInitialization": "off"
181+
"useImportRestrictions": "off"
182182
},
183183
"performance": {
184184
"all": true,
185185
"noDelete": "off",
186186
"noBarrelFile": "off",
187187
"noReExportAll": "off",
188+
"useTopLevelRegex": "off",
188189
"noAccumulatingSpread": "warn"
189190
},
190191
"correctness": {
191192
"all": true,
192193
"noNodejsModules": "off",
193194
"noUnusedVariables": "off",
194-
"noUndeclaredVariables": "off"
195+
"noUndeclaredVariables": "off",
196+
"noUndeclaredDependencies": "off"
195197
},
196198
"suspicious": {
197199
"all": true,
200+
"noConsole": "off",
198201
"noConsoleLog": "off",
199202
"noExplicitAny": "off",
200203
"noCatchAssign": "off",
@@ -228,7 +231,8 @@
228231
"*.json",
229232
"*.jsonc",
230233
"*.astro",
231-
"*.svelte"
234+
"*.svelte",
235+
"*.graphql"
232236
],
233237
"ignore": [
234238
"_",
@@ -294,7 +298,8 @@
294298
"correctness": {
295299
"noUnusedLabels": "off",
296300
"noUnusedImports": "off",
297-
"useHookAtTopLevel": "off"
301+
"useHookAtTopLevel": "off",
302+
"noUnusedFunctionParameters": "off"
298303
},
299304
"style": {
300305
"useConst": "off",
@@ -303,7 +308,7 @@
303308
"suspicious": {
304309
"noConfusingLabels": "off"
305310
},
306-
"nursery": {
311+
"complexity": {
307312
"noUselessUndefinedInitialization": "off"
308313
}
309314
}
@@ -313,9 +318,7 @@
313318
"include": ["scripts", "*config*"],
314319
"linter": {
315320
"rules": {
316-
"nursery": {
317-
"noConsole": "off"
318-
}
321+
"nursery": {}
319322
}
320323
}
321324
},

flake.lock

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
flake = false;
9595
};
9696
biome = {
97-
url = "github:biomejs/biome/cli/v1.8.3";
97+
url = "github:biomejs/biome/cli/v1.9.1";
9898
flake = false;
9999
};
100100

site/src/lib/contentful/live-preview.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function findElementByDataAttribute({ entryId, fieldId }: { entryId: string; fie
7272

7373
function displayFieldData({
7474
entry,
75-
client,
75+
client: _client,
7676
fieldId,
7777
entryId
7878
}: {

site/src/pages/api/blog/webhook.json.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { APIRoute } from "astro"
22
import { purgeCache } from "@netlify/functions"
33

4-
export const POST: APIRoute = async ({ params, request, ...context }) => {
4+
export const POST: APIRoute = async ({ request }) => {
55
const body = (await request.json()) as { sys: { id: string } }
66

77
const contentfulWebhookSecret = process.env.CONTENTFUL_WEBHOOK_SECRET

tools/biome/biome.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
rustToolchain = rust.mkNightly { targets = [ CARGO_BUILD_TARGET ]; };
2020

21-
BIOME_VERSION = "1.8.3";
21+
BIOME_VERSION = "1.9.1";
2222

2323
biome = (crane.lib.overrideToolchain rustToolchain).buildPackage {
2424
inherit CARGO_BUILD_TARGET BIOME_VERSION;

typescript-sdk/src/client/cosmos.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ export const createCosmosClient = (parameters: CosmosClientParameters) =>
4141
receiver,
4242
denomAddress,
4343
destinationChainId,
44-
memo = timestamp(),
4544
relayContractAddress,
45+
memo: _memo = timestamp(),
4646
account = parameters.account,
4747
gasPrice = parameters.gasPrice
4848
}: TransferAssetsParameters<CosmosChainId>): Promise<Result<string, Error>> => {
@@ -138,9 +138,9 @@ export const createCosmosClient = (parameters: CosmosClientParameters) =>
138138
return err(new Error("Unsupported network"))
139139
},
140140
simulateTransaction: async ({
141-
memo,
142141
amount,
143142
receiver,
143+
memo: _memo,
144144
denomAddress,
145145
destinationChainId,
146146
relayContractAddress,

typescript-sdk/src/transfer/evm.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export async function approveTransferAssetFromEvm(
195195
* ```
196196
*/
197197
export async function transferAssetFromEvmSimulate(
198-
client: WalletClient & PublicActions,
198+
_client: WalletClient & PublicActions,
199199
{
200200
memo,
201201
amount,

0 commit comments

Comments
 (0)