chore(dprint): update markup_fmt plugin version, fix @render indentation and add couple of new rules

This commit is contained in:
Ilia Mashkov
2026-05-05 16:49:27 +03:00
parent a105c94176
commit fae6694479
5 changed files with 23 additions and 24 deletions
+4 -5
View File
@@ -13,7 +13,7 @@
"https://plugins.dprint.dev/typescript-0.93.0.wasm", "https://plugins.dprint.dev/typescript-0.93.0.wasm",
"https://plugins.dprint.dev/json-0.19.3.wasm", "https://plugins.dprint.dev/json-0.19.3.wasm",
"https://plugins.dprint.dev/markdown-0.17.8.wasm", "https://plugins.dprint.dev/markdown-0.17.8.wasm",
"https://plugins.dprint.dev/g-plane/markup_fmt-v0.25.3.wasm" "https://plugins.dprint.dev/g-plane/markup_fmt-v0.27.0.wasm"
], ],
"typescript": { "typescript": {
"lineWidth": 120, "lineWidth": 120,
@@ -57,9 +57,8 @@
"quotes": "double", "quotes": "double",
"scriptIndent": false, "scriptIndent": false,
"styleIndent": false, "styleIndent": false,
"formatComments": true,
"vBindStyle": "short", "svelteAttrShorthand": true,
"vOnStyle": "short", "svelteDirectiveShorthand": true
"formatComments": true
} }
} }
@@ -106,7 +106,7 @@ let selected = $state(false);
<div class="flex items-center gap-4"> <div class="flex items-center gap-4">
<ToggleButton <ToggleButton
{...args} {...args}
selected={selected} {selected}
onclick={() => { onclick={() => {
selected = !selected; selected = !selected;
}} }}
+5 -5
View File
@@ -26,11 +26,11 @@ const { children, class: className, render }: Props = $props();
{#if render} {#if render}
{@render render({ {@render render({
class: cn( class: cn(
'font-mono text-3xs sm:text-2xs lowercase tracking-wider-mono text-text-soft', 'font-mono text-3xs sm:text-2xs lowercase tracking-wider-mono text-text-soft',
className, className,
), ),
})} })}
{:else if children} {:else if children}
<span <span
class={cn( class={cn(
+1 -1
View File
@@ -93,7 +93,7 @@ const flyParams: FlyParams = {
> >
<div> <div>
{#if headerTitle} {#if headerTitle}
<SectionHeader title={headerTitle} subtitle={headerSubtitle} index={index} /> <SectionHeader title={headerTitle} subtitle={headerSubtitle} {index} />
{/if} {/if}
<SectionTitle text={title} /> <SectionTitle text={title} />
</div> </div>
+12 -12
View File
@@ -288,24 +288,24 @@ $effect(() => {
> >
{#if itemIndex < items.length} {#if itemIndex < items.length}
{@render children({ {@render children({
item: items[itemIndex], item: items[itemIndex],
index: itemIndex, index: itemIndex,
isFullyVisible: row.isFullyVisible, isFullyVisible: row.isFullyVisible,
isPartiallyVisible: row.isPartiallyVisible, isPartiallyVisible: row.isPartiallyVisible,
proximity: row.proximity, proximity: row.proximity,
})} })}
{/if} {/if}
</div> </div>
{:else} {:else}
<div class="min-h-0"> <div class="min-h-0">
{#if itemIndex < items.length} {#if itemIndex < items.length}
{@render children({ {@render children({
item: items[itemIndex], item: items[itemIndex],
index: itemIndex, index: itemIndex,
isFullyVisible: row.isFullyVisible, isFullyVisible: row.isFullyVisible,
isPartiallyVisible: row.isPartiallyVisible, isPartiallyVisible: row.isPartiallyVisible,
proximity: row.proximity, proximity: row.proximity,
})} })}
{/if} {/if}
</div> </div>
{/if} {/if}