Skip to content

Commit 1cc0642

Browse files
committed
fix(create-rstack): format Svelte templates
1 parent 22bdcfe commit 1cc0642

6 files changed

Lines changed: 44 additions & 34 deletions

File tree

packages/create-rstack/template-app-svelte-js/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"@testing-library/jest-dom": "^7.0.0",
2121
"@testing-library/svelte": "^5.4.2",
2222
"happy-dom": "^20.11.1",
23+
"prettier-plugin-svelte": "^4.1.1",
2324
"rstack": "^0.3.5"
2425
}
2526
}

packages/create-rstack/template-app-svelte-js/rstack.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,7 @@ define.lint(async () => {
1919

2020
return [js.configs.recommended];
2121
});
22+
23+
define.fmt({
24+
plugins: ['prettier-plugin-svelte'],
25+
});

packages/create-rstack/template-app-svelte-js/src/App.svelte

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@
66
</main>
77

88
<style>
9-
.content {
10-
display: flex;
11-
min-height: 100vh;
12-
line-height: 1.1;
13-
text-align: center;
14-
flex-direction: column;
15-
justify-content: center;
16-
}
9+
.content {
10+
display: flex;
11+
min-height: 100vh;
12+
line-height: 1.1;
13+
text-align: center;
14+
flex-direction: column;
15+
justify-content: center;
16+
}
1717
18-
.content h1 {
19-
font-size: 3.6rem;
20-
font-weight: 700;
21-
}
18+
.content h1 {
19+
font-size: 3.6rem;
20+
font-weight: 700;
21+
}
2222
23-
.content p {
24-
font-size: 1.2rem;
25-
font-weight: 400;
26-
opacity: 0.5;
27-
}
23+
.content p {
24+
font-size: 1.2rem;
25+
font-weight: 400;
26+
opacity: 0.5;
27+
}
2828
</style>

packages/create-rstack/template-app-svelte-ts/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"@testing-library/svelte": "^5.4.2",
2222
"@types/node": "^24.13.3",
2323
"happy-dom": "^20.11.1",
24+
"prettier-plugin-svelte": "^4.1.1",
2425
"rstack": "^0.3.5",
2526
"svelte-check": "^4.7.4",
2627
"typescript": "^6.0.3"

packages/create-rstack/template-app-svelte-ts/rstack.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,7 @@ define.lint(async () => {
1818

1919
return [js.configs.recommended, ts.configs.recommended];
2020
});
21+
22+
define.fmt({
23+
plugins: ['prettier-plugin-svelte'],
24+
});

packages/create-rstack/template-app-svelte-ts/src/App.svelte

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,23 @@
1515
</main>
1616

1717
<style>
18-
.content {
19-
display: flex;
20-
min-height: 100vh;
21-
line-height: 1.1;
22-
text-align: center;
23-
flex-direction: column;
24-
justify-content: center;
25-
}
18+
.content {
19+
display: flex;
20+
min-height: 100vh;
21+
line-height: 1.1;
22+
text-align: center;
23+
flex-direction: column;
24+
justify-content: center;
25+
}
2626
27-
.content h1 {
28-
font-size: 3.6rem;
29-
font-weight: 700;
30-
}
27+
.content h1 {
28+
font-size: 3.6rem;
29+
font-weight: 700;
30+
}
3131
32-
.content p {
33-
font-size: 1.2rem;
34-
font-weight: 400;
35-
opacity: 0.5;
36-
}
32+
.content p {
33+
font-size: 1.2rem;
34+
font-weight: 400;
35+
opacity: 0.5;
36+
}
3737
</style>

0 commit comments

Comments
 (0)