Skip to content

Commit ed08038

Browse files
MacBook airMacBook air
MacBook air
authored and
MacBook air
committed
fix ESLint bugs
1 parent d1bf518 commit ed08038

File tree

4 files changed

+3214
-5280
lines changed

4 files changed

+3214
-5280
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Test
33
on:
44
pull_request:
55
push:
6-
branches: "develop"
6+
branches: 'develop'
77

88
jobs:
99
build:

.prettierrc.cjs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module.exports = {
22
useTabs: true,
33
singleQuote: true,
4-
trailingComma: "none",
4+
trailingComma: 'none',
55
printWidth: 100,
66
plugins: [require('prettier-plugin-svelte')],
7-
overrides: [{ files: '*.svelte', options: { parser: 'svelte' } }],
8-
};
7+
overrides: [{ files: '*.svelte', options: { parser: 'svelte' } }]
8+
};

src/lib/components/atoms/Sparkles.svelte

+14-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
};
2727
2828
let sparkles: SparkleType[] = [];
29-
let sparklesInterval: NodeJS.Timer;
29+
let sparklesInterval: NodeJS.Timeout | undefined;
3030
3131
onMount(() => {
3232
sparklesInterval = setInterval(() => {
@@ -45,13 +45,24 @@
4545
});
4646
4747
onDestroy(() => {
48-
clearInterval(sparklesInterval);
48+
if (sparklesInterval) {
49+
clearInterval(sparklesInterval);
50+
}
4951
});
5052
</script>
5153

54+
/// <reference types="svelte" />
55+
/// <reference types="svelte/internal" />
56+
57+
/// <reference types="svelte" />
58+
/// <reference types="svelte/types/runtime" />
59+
60+
/// <reference types="svelte" />
61+
/// <reference types="svelte/types/runtime" />
62+
5263
<div class="sparkle-wrapper">
5364
{#each sparkles as sparkle (sparkle.id)}
54-
<Sparkle color={sparkle.color} size={sparkle.size} style={sparkle.style} />
65+
<Sparkle color={sparkle.color} size={`${sparkle.size}px`} style={sparkle.style} />
5566
{/each}
5667
<span class="slot-wrapper">
5768
<slot />

0 commit comments

Comments
 (0)