Skip to content

Commit b2b0716

Browse files
committed
run lint/format
1 parent a8f0fd8 commit b2b0716

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

src/lib/Sidebar.svelte

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@
66
children?: import('svelte').Snippet;
77
}
88
9-
let { children, className}: Props = $props();
9+
let { children, className }: Props = $props();
1010
</script>
1111

12-
<div id="sidebar" class={clsx("flex h-full w-1/3 flex-col place-content-stretch gap-4 2xl:w-1/4", className)}>
12+
<div
13+
id="sidebar"
14+
class={clsx('flex h-full w-1/3 flex-col place-content-stretch gap-4 2xl:w-1/4', className)}
15+
>
1316
{@render children?.()}
1417
</div>

src/lib/StatsTable.svelte

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<th>Allocation method</th>
3333
{#each Object.values(allocationMethods) as { label }}
3434
<th>
35-
{#if label==='Grandfathering'}
35+
{#if label === 'Grandfathering'}
3636
<span class={grandfatheringColor}>{label}</span>
3737
{:else}
3838
{label}
@@ -45,16 +45,16 @@
4545
<tr>
4646
<th>2030 reductions<br />relative to 2015</th>
4747
{#each Object.keys(allocationMethods) as id}
48-
<td class={id==='GF' ? grandfatheringColor : ""}>
49-
{reductions[id][2030] === null ? '-' : $tweenedReductions[id][2030].toFixed(0)}%
48+
<td class={id === 'GF' ? grandfatheringColor : ''}>
49+
{reductions[id][2030] === null ? '-' : $tweenedReductions[id][2030].toFixed(0)}%
5050
</td>
5151
{/each}
5252
</tr>
5353
<tr>
5454
<th>2040 reductions<br />relative to 2015</th>
5555
{#each Object.keys(allocationMethods) as id}
56-
<td class={id==='GF' ? grandfatheringColor : ""}>
57-
{reductions[id][2040] === null ? '-' : $tweenedReductions[id][2040].toFixed(0)}%
56+
<td class={id === 'GF' ? grandfatheringColor : ''}>
57+
{reductions[id][2040] === null ? '-' : $tweenedReductions[id][2040].toFixed(0)}%
5858
</td>
5959
{/each}
6060
</tr>

0 commit comments

Comments
 (0)