chore(frontend): biome 2.5.15 stops flagging regexp exec results as always truthy, svelte files reformatted by it
This commit is contained in:
1 parent
56146e4e8d
commit
2512a7988d
17 files changed
+74
-31
No files matched your search
@@ -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)}
|
||||
|
||||
Reference in new issue
Block a user