Skip to content

Commit 46530dd

Browse files
committed
Reconfig prettier
1 parent 4f8bf18 commit 46530dd

File tree

5 files changed

+27
-11
lines changed

5 files changed

+27
-11
lines changed

.prettierrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
2-
"useTabs": false,
2+
"printWidth": 100,
33
"semi": false,
44
"singleQuote": true,
55
"trailingComma": "none",
6-
"printWidth": 120,
76
"proseWrap": "always",
87
"svelteSortOrder": "options-scripts-styles-markup",
98
"svelteIndentScriptAndStyle": false

cypress/integration/test.spec.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ describe('Integration Tests', () => {
2424
})
2525

2626
it('Can change duration', () => {
27-
cy.window().invoke('toast.push', 'Test', { duration: 1000 }).get('._toastItem').wait(1500).should('not.exist')
27+
cy.window()
28+
.invoke('toast.push', 'Test', { duration: 1000 })
29+
.get('._toastItem')
30+
.wait(1500)
31+
.should('not.exist')
2832
})
2933

3034
it('Can be non-dismissable then popped', () => {

docs/Dummy.svelte

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@ const declined = () => clicked(false)
2525
<span class="font-mono text-xs font-bold">[toastId: {toastId}]</span>
2626
</div>
2727
<p class="flex-1 text-sm overflow-y-scroll">
28-
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
29-
aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
28+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
29+
labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco
30+
laboris nisi ut aliquip ex ea commodo consequat.
3031
</p>
3132
<div class="h-12 flex flex-row justify-around">
3233
<button class="w-28 h-10 rounded-full" on:click={declined}>DECLINE</button>
33-
<button class="w-28 h-10 rounded-full" on:click={accepted} data-btn="dummyAccept">ACCEPT</button>
34+
<button class="w-28 h-10 rounded-full" on:click={accepted} data-btn="dummyAccept">ACCEPT</button
35+
>
3436
</div>
3537
</div>

docs/index.html

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,15 @@
2323
document.head.appendChild(script)
2424
})()
2525
</script>
26-
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet" />
26+
<link
27+
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap"
28+
rel="stylesheet"
29+
/>
2730
<link rel="stylesheet" href="build/global.css" />
28-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.23.0/themes/prism-tomorrow.min.css" />
31+
<link
32+
rel="stylesheet"
33+
href="https://cdn.jsdelivr.net/npm/prismjs@1/themes/prism-tomorrow.min.css"
34+
/>
2935
<script defer src="build/bundle.js"></script>
3036
</head>
3137

@@ -41,8 +47,9 @@ <h1 class="text-4xl text-center">svelte-toast</h1>
4147
</a>
4248
</div>
4349
<p class="container px-2 mb-4">
44-
Simple, elegant, generic, flexible and performant toast notifications. Because a demo helps better than a thousand
45-
API docs, so here it is. Use in Vanilla JS (7kb gzipped) or as a Svelte component.
50+
Simple, elegant, generic, flexible and performant toast notifications. Because a demo helps
51+
better than a thousand API docs, so here it is. Use in Vanilla JS (7kb gzipped) or as a Svelte
52+
component.
4653
</p>
4754
</body>
4855
</html>

src/ToastItem.svelte

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,11 @@ onDestroy(() => {
6969
padding: var(--toastPadding, 0);
7070
background: var(--toastBackground, rgba(66, 66, 66, 0.9));
7171
color: var(--toastColor, #fff);
72-
box-shadow: var(--toastBoxShadow, 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06));
72+
box-shadow: var(
73+
--toastBoxShadow,
74+
0 4px 6px -1px rgba(0, 0, 0, 0.1),
75+
0 2px 4px -1px rgba(0, 0, 0, 0.06)
76+
);
7377
border: var(--toastBorder, none);
7478
border-radius: var(--toastBorderRadius, 0.125rem);
7579
position: relative;

0 commit comments

Comments
 (0)