chore(frontend): biome 2.5.15 stops flagging regexp exec results as always truthy, svelte files reformatted by it

This commit is contained in:
hh committed 2026-10-10 21:05:02 +02:00
1 parent 56146e4e8d
commit 2512a7988d
17 files changed
+74 -31

No files matched your search

+10 -10
View File
@@ -11,7 +11,7 @@
"uqr": "^0.1.3",
},
"devDependencies": {
"@biomejs/biome": "2.5.14",
"@biomejs/biome": "2.5.15",
"@sveltejs/adapter-auto": "^7.0.1",
"@sveltejs/adapter-static": "^3.0.10",
"@sveltejs/kit": "^2.57.0",
@@ -39,23 +39,23 @@
"@babel/types": ["@babel/types@7.29.8", "", { "dependencies": { "@babel/helper-string-parser": "^7.29.7", "@babel/helper-validator-identifier": "^7.29.7" } }, "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg=="],
"@biomejs/biome": ["@biomejs/biome@2.5.14", "", { "optionalDependencies": { "@biomejs/cli-darwin-arm64": "2.5.14", "@biomejs/cli-darwin-x64": "2.5.14", "@biomejs/cli-linux-arm64": "2.5.14", "@biomejs/cli-linux-arm64-musl": "2.5.14", "@biomejs/cli-linux-x64": "2.5.14", "@biomejs/cli-linux-x64-musl": "2.5.14", "@biomejs/cli-win32-arm64": "2.5.14", "@biomejs/cli-win32-x64": "2.5.14" }, "bin": { "biome": "bin/biome" } }, "sha512-0FabLIjd4M/dm8VFI86RMaLLdgepzbdfiAL2R8cr7V81OYYrP1w7Z73KfAwPK5h9SrEBXTzNG2y+mBwPo9xRnw=="],
"@biomejs/biome": ["@biomejs/biome@2.5.15", "", { "optionalDependencies": { "@biomejs/cli-darwin-arm64": "2.5.15", "@biomejs/cli-darwin-x64": "2.5.15", "@biomejs/cli-linux-arm64": "2.5.15", "@biomejs/cli-linux-arm64-musl": "2.5.15", "@biomejs/cli-linux-x64": "2.5.15", "@biomejs/cli-linux-x64-musl": "2.5.15", "@biomejs/cli-win32-arm64": "2.5.15", "@biomejs/cli-win32-x64": "2.5.15" }, "bin": { "biome": "bin/biome" } }, "sha512-WZTW4slm/pdkh92K6t/3aEN++44JD1PQ7squ7RCMLI1flHGl43DVOIGXvCjHiZgBMO1V4uYxoFNtqrIA4qGuIQ=="],
"@biomejs/cli-darwin-arm64": ["@biomejs/cli-darwin-arm64@2.5.14", "", { "os": "darwin", "cpu": "arm64" }, "sha512-UnzaXO65L4tsZimFITFP2M121GyhDcWFrT3pL5ZJ5U4XcS/0L5VHYytVohdCf/gnDUFHgl2I9xnt5bV/J1kxHQ=="],
"@biomejs/cli-darwin-arm64": ["@biomejs/cli-darwin-arm64@2.5.15", "", { "os": "darwin", "cpu": "arm64" }, "sha512-BZVzFhJ/mUvTLMYbc9x6el0o2Uv5zP7bACYyhFb6fSc1giroXm7PL0a5KqMJ9F+/BnkYRjagD/ROSDVOZ6eapg=="],
"@biomejs/cli-darwin-x64": ["@biomejs/cli-darwin-x64@2.5.14", "", { "os": "darwin", "cpu": "x64" }, "sha512-kiy8qA16K93J7uvFfWi4LgjqDpnRKyePAna6A0Y4jxyUga35SYpIZ2cNWlhy0lsfgqRenCpfymnJWEZ6mgpRgA=="],
"@biomejs/cli-darwin-x64": ["@biomejs/cli-darwin-x64@2.5.15", "", { "os": "darwin", "cpu": "x64" }, "sha512-V5Kw63V+fVGNFhFrizDxMbGXAzZCh8kYzJpy3GI6gTapWDg7bZK9oYC9CbVgQSEdTnupz0U5Efz8Ev+5vdBBXw=="],
"@biomejs/cli-linux-arm64": ["@biomejs/cli-linux-arm64@2.5.14", "", { "os": "linux", "cpu": "arm64" }, "sha512-vO/9BaU1n30CiFNLx49gMTMtbCAAqlo/EqFoG0BU3deQInTbJrmXSmTQ9e3FoDZIKQnvSLDVNL4lx1ci7y1T1Q=="],
"@biomejs/cli-linux-arm64": ["@biomejs/cli-linux-arm64@2.5.15", "", { "os": "linux", "cpu": "arm64" }, "sha512-XaG7P7eeSLYETD3K9grfB0mQmpLQZjygdbsxekWBJAg4am79fGAtRpfRyNnTvXB2fZFNnJZG3nXm7HBat0+VUw=="],
"@biomejs/cli-linux-arm64-musl": ["@biomejs/cli-linux-arm64-musl@2.5.14", "", { "os": "linux", "cpu": "arm64" }, "sha512-SJ9PrZkBnnH9dHJDnxk34vKs0GB2dbsioaft6/hPhWJ7AHpwYH83Isnhj0FSRpFkGgpVfJ1lds23ApB2czUDLQ=="],
"@biomejs/cli-linux-arm64-musl": ["@biomejs/cli-linux-arm64-musl@2.5.15", "", { "os": "linux", "cpu": "arm64" }, "sha512-tGzZUTcJCV7tj5Adh/Gn6nR4MycqA3iohq2LEcrarAgRBkU0h0OKd2UzCRkOsOYOuUGaUJb4YmqRqyy2feGGSw=="],
"@biomejs/cli-linux-x64": ["@biomejs/cli-linux-x64@2.5.14", "", { "os": "linux", "cpu": "x64" }, "sha512-VHZRa7CCQBUWKxNwUvHJeuW03WFRgN5NWO//SDGOitc9QIeNyfA42V9zlKm+x82xFSG9Bzi5fi+hbhm9anO8yA=="],
"@biomejs/cli-linux-x64": ["@biomejs/cli-linux-x64@2.5.15", "", { "os": "linux", "cpu": "x64" }, "sha512-xE4iEW/3LqlYj9GFgGrFsFSH51dEEpUbYWBfeOv0q87WkUDxK2o/HhreSb7qMJqck70RVM6Lg96hgedcAYcOkA=="],
"@biomejs/cli-linux-x64-musl": ["@biomejs/cli-linux-x64-musl@2.5.14", "", { "os": "linux", "cpu": "x64" }, "sha512-2kI5PrMgW5dcEZYrstLPmUmCwkUwZY39rP4BN93Vxbwcs2O57LDQOktUZZYPvvspN5i0mhGr3TJtF5sU26NUWg=="],
"@biomejs/cli-linux-x64-musl": ["@biomejs/cli-linux-x64-musl@2.5.15", "", { "os": "linux", "cpu": "x64" }, "sha512-IlxUcyxilVGPsE008x13pWdkTbU3nQpP2i9b5UrbOYj6goBkKsRX1XB7yJLcV+O1H9LBchIIm4adOaVLZBX0ZQ=="],
"@biomejs/cli-win32-arm64": ["@biomejs/cli-win32-arm64@2.5.14", "", { "os": "win32", "cpu": "arm64" }, "sha512-pHgAFffmZtaYoxavEsWEYNvcA7NwOIjLyqw2HXyLbt16xYryX0L4fMV2u0G9ag6LNYPIoqWaWqzUcnc6rLGGXg=="],
"@biomejs/cli-win32-arm64": ["@biomejs/cli-win32-arm64@2.5.15", "", { "os": "win32", "cpu": "arm64" }, "sha512-2kPKzhNlm8C+Ru3GcO0Me2ODkCBLrVOUNuyi84RJyWDVKAA4+Kjj3jMjL938lF6BRfvltC4vB2nPY9SvN51Ovg=="],
"@biomejs/cli-win32-x64": ["@biomejs/cli-win32-x64@2.5.14", "", { "os": "win32", "cpu": "x64" }, "sha512-oJWmBhoHsnhUKIke+0gXDX0mltJrWHA1UyHsrTlXwX0TL64ilVZAo+TYZm97baecV0esBdpzy3k96q+09JaZUQ=="],
"@biomejs/cli-win32-x64": ["@biomejs/cli-win32-x64@2.5.15", "", { "os": "win32", "cpu": "x64" }, "sha512-yAzh4UqEImV6Hcy0zjUqNfJAsUhoD64FBQCdTG8Md/Z2wQeVP/ZmJ3XRYAs1g8J9fjTFyl2fCtc5FB5til47+g=="],
"@clack/core": ["@clack/core@1.5.1", "", { "dependencies": { "fast-wrap-ansi": "^0.2.0", "sisteransi": "^1.0.5" } }, "sha512-iHTrHA8MtVuLl2TfZySmcKv1qO2PoyC9Z7pfSDozEuV5vtY3/wcOPKJXlqJ5Oq2Cx5DDGQGAMVx6HZfRRoVEbQ=="],
+1 -1
View File
@@ -20,7 +20,7 @@
"uqr": "^0.1.3"
},
"devDependencies": {
"@biomejs/biome": "2.5.14",
"@biomejs/biome": "2.5.15",
"@sveltejs/adapter-auto": "^7.0.1",
"@sveltejs/adapter-static": "^3.0.10",
"@sveltejs/kit": "^2.57.0",
@@ -151,7 +151,9 @@
</Button>
</div>
<ContextMenu>
{#snippet children({ props })}
{#snippet children({
props,
})}
<button
{...props}
aria-label="Открыть профиль"
@@ -59,7 +59,9 @@
</script>
<ContextMenu>
{#snippet children({ props })}
{#snippet children({
props,
})}
<button
{...props}
class="Chat ListItem-button"
+15 -4
View File
@@ -27,7 +27,9 @@
}
</script>
{#snippet tree(items: EntityTreeNode[])}
{#snippet tree(
items: EntityTreeNode[]
)}
{#each items as node, i (i)}
{#if node.kind === "text"}
{node.text}
@@ -37,7 +39,9 @@
{/each}
{/snippet}
{#snippet entity(node: EntityNode)}
{#snippet entity(
node: EntityNode
)}
{@const type = node.entity.type}
{#if type === "bold"}
<strong>{@render tree(node.children)}</strong>
@@ -66,7 +70,10 @@
>{#if node.entity.language}<span class="pre-lang">{node.entity.language}</span>{/if}<code>{@render tree(node.children)}</code></pre>
{:else if type === "blockquote"}
<blockquote class="blockquote">{@render tree(node.children)}</blockquote>
{:else if type === "url" || type === "text_link" || type === "email" || type === "phone_number"}
{:else if type === "url" ||
type === "text_link" ||
type === "email" ||
type === "phone_number"}
<a
class="link"
href={linkHref(node)}
@@ -75,7 +82,11 @@
class:own
>{@render tree(node.children)}</a
>
{:else if type === "mention" || type === "text_mention" || type === "hashtag" || type === "cashtag" || type === "bot_command"}
{:else if type === "mention" ||
type === "text_mention" ||
type === "hashtag" ||
type === "cashtag" ||
type === "bot_command"}
<span class="link" class:own>{@render tree(node.children)}</span>
{:else}
{@render tree(node.children)}
@@ -50,7 +50,9 @@
{:else if result.state === "ready"}
<a
class="file"
download={isActiveContent(result.mime) ? `media_${version.id}` : undefined}
download={isActiveContent(result.mime)
? `media_${version.id}`
: undefined}
href={result.url}
rel="noopener"
target="_blank"
@@ -184,7 +184,9 @@
<div class="media-actions">
{#if canSave}
<ContextMenu>
{#snippet children({ props })}
{#snippet children({
props,
})}
<button
{...props}
aria-label="Скачать файл"
@@ -131,7 +131,9 @@
</script>
<ContextMenu>
{#snippet children({ props })}
{#snippet children({
props,
})}
<div
{...props}
class="Message"
@@ -137,7 +137,9 @@
</script>
<ContextMenu>
{#snippet children({ props })}
{#snippet children({
props,
})}
<div {...props} class="message-media" use:visible={start}>
{#if message.is_self_destruct}
<button class="media-chip self-destruct" onclick={onopen} type="button">
+3 -1
View File
@@ -12,7 +12,9 @@
</script>
<div class="Reactions" class:own>
{#each reactions as reaction, index (reaction.custom_emoji_id ?? reaction.emoji ?? index)}
{#each reactions as reaction, index (reaction.custom_emoji_id ??
reaction.emoji ??
index)}
<button
class="reaction"
{onclick}
@@ -72,7 +72,9 @@
{/if}
<span class="badge">
<Icon name="microphone" size="0.875rem" />
{formatDuration(paused && currentTime <= POSTER_TIME ? duration : remaining)}
{formatDuration(
paused && currentTime <= POSTER_TIME ? duration : remaining
)}
</span>
</button>
{#if transcript}
@@ -172,7 +172,11 @@
});
</script>
{#snippet card(record: PolicyRecord, title: string, onremove?: () => void)}
{#snippet card(
record: PolicyRecord,
title: string,
onremove?: () => void
)}
<div class="card">
<div class="card-head">
<span class="card-title">{title}</span>
@@ -181,7 +181,9 @@
<div class="grid">
{#each items as item, index (item.id)}
<ContextMenu>
{#snippet children({ props })}
{#snippet children({
props,
})}
<button
{...props}
class="tile"
@@ -237,7 +239,9 @@
{#each items as item, index (item.id)}
<li>
<ContextMenu>
{#snippet children({ props })}
{#snippet children({
props,
})}
<button
{...props}
onclick={() => open(index)}
@@ -178,7 +178,9 @@
{@const state = shareState(share)}
<li class="row" class:inactive={state !== "active"}>
<ContextMenu>
{#snippet children({ props })}
{#snippet children({
props,
})}
<button
{...props}
class="head"
@@ -45,7 +45,9 @@
</script>
<ContextMenu>
{#snippet children({ props })}
{#snippet children({
props,
})}
<button
{...props}
class="tile"
@@ -184,7 +184,7 @@
<Dialog.Root bind:open>
<Dialog.Portal>
<Dialog.Overlay class="story-overlay" />
<Dialog.Content class="story-content {held ? 'held' : ''}">
<Dialog.Content class="story-content {held ? "held" : ""}">
<Dialog.Title class="story-a11y-title">Сторис</Dialog.Title>
<div class="bars">
{#each items as item, i (item.story_id)}
@@ -226,7 +226,9 @@
{/if}
{#if canSave}
<ContextMenu>
{#snippet children({ props })}
{#snippet children({
props,
})}
<button
{...props}
aria-label="Скачать сторис"
@@ -48,7 +48,9 @@
<ContextMenu.Root bind:open>
<ContextMenu.Trigger>
{#snippet child({ props })}
{#snippet child({
props,
})}
{@render children({ props: triggerProps(props) })}
{/snippet}
</ContextMenu.Trigger>