Skip to content

Commit 76e5f63

Browse files
committed
Run formatter.
1 parent b8dda5a commit 76e5f63

File tree

20 files changed

+164
-138
lines changed

20 files changed

+164
-138
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ repos:
2626
- id: local_prettier
2727
name: prettier
2828
entry: pnpm prettier --log-level=error --plugin=prettier-plugin-astro
29+
args: ["--tab-width", "2", "--trailing-comma", "es5"]
2930
language: node
3031
types_or: ["text"]
3132
exclude_types: ["editorconfig", "gitignore"]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build": "astro check && astro build && pnpm pagefind --site dist",
99
"preview": "astro preview",
1010
"astro": "astro",
11-
"format": "pnpm prettier --write --log-level=error --plugin=prettier-plugin-astro ."
11+
"format": "pnpm prettier --tab-width 2 --trailing-comma es5 --write --log-level=error --plugin=prettier-plugin-astro ."
1212
},
1313
"dependencies": {
1414
"@astro-community/astro-embed-youtube": "^0.5.6",

src/components/accordion/accordion.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const { title, id } = Astro.props;
2828
const hash = window.location.hash.substring(1); // Remove #
2929
if (hash) {
3030
const details = document.getElementById(
31-
hash,
31+
hash
3232
) as HTMLDetailsElement | null;
3333
if (details) {
3434
details.open = true;

src/components/card/card.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ const { title, subtitle, url, image } = Astro.props;
2222
src={image}
2323
width={600}
2424
height={375}
25-
alt=`Card image - ${title}`
25+
alt=`Card image - ${title}`
2626
class="not-prose rounded-xl aspect-[3/2] w-full"
2727
loading="lazy"
2828
/>
2929
</div>
3030
</a>
3131
<div class="flex items-center flex-col flex-grow mb-2">
3232
<a href={url} class="block hover:underline">
33-
<h3 >{title}</h3>
33+
<h3>{title}</h3>
3434
</a>
3535
<slot />
3636
</div>

src/components/header/header-actions.astro

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ const IS_LIVE = false;
2727
{
2828
!mobile ? (
2929
<>
30-
<Button url="/tickets" icon="ticket">Register Now!</Button>
30+
<Button url="/tickets" icon="ticket">
31+
Register Now!
32+
</Button>
3133
{IS_LIVE && <Button url="/live">Live</Button>}
3234
</>
3335
) : null
@@ -116,7 +118,7 @@ const IS_LIVE = false;
116118
--pagefind-ui-border: #d8d8d8;
117119
--pagefind-ui-border-width: 2px;
118120
--pagefind-ui-border-radius: 0;
119-
width:50%;
121+
width: 50%;
120122
min-width: 10vw;
121123
}
122124
.pagefind-ui.yellow {

src/components/keynoters/keynoter.astro

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,10 @@ const placeholders = [Person1, Person2, Person3, Person4, Person5];
3131
3232
const Placeholder =
3333
placeholders[Math.floor(Math.random() * placeholders.length)];
34-
3534
---
3635

3736
<li class:list={["list-none rounded-2xl overflow-clip flex group", className]}>
38-
<a class="block w-full h-full relative " >
37+
<a class="block w-full h-full relative">
3938
<div class="relative aspect-[9/10] overflow-clip">
4039
{
4140
image ? (
@@ -53,9 +52,7 @@ const Placeholder =
5352
}
5453
</div>
5554

56-
<div
57-
class="px-5 py-2 pb-4 bg-keynoter-info rounded-t-none h-full "
58-
>
55+
<div class="px-5 py-2 pb-4 bg-keynoter-info rounded-t-none h-full">
5956
{
6057
placeholder ? (
6158
<p class="text-body-inverted ">More keynoters coming soon</p>

src/components/keynoters/keynoters.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,5 +126,6 @@ const placeholders = Math.max(0, 5 - keynoters.length);
126126
</div>
127127
</section>
128128
<style>
129-
.fill-hero-primary {}
129+
.fill-hero-primary {
130+
}
130131
</style>

src/components/schedule/speakers.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ interface Props {
1010
const allSpeakers = await getCollection("speakers");
1111
1212
const speakersByCode = Object.fromEntries(
13-
allSpeakers.map((speaker) => [speaker.data.code, speaker]),
13+
allSpeakers.map((speaker) => [speaker.data.code, speaker])
1414
);
1515
1616
const speakers = Astro.props.speakers

src/components/sections/prague.astro

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
import PragueComponent from "@components/hero-section/prague.astro";
33
import * as venue from "../../data/home/prague.mdx";
44
---
5-
<div class="mt-12 px-6 pb-32 overflow-visible">
6-
<PragueComponent title={venue.frontmatter.title}>
7-
<venue.Content />
8-
</PragueComponent>
9-
</div>
5+
6+
<div class="mt-12 px-6 pb-32 overflow-visible">
7+
<PragueComponent title={venue.frontmatter.title}>
8+
<venue.Content />
9+
</PragueComponent>
10+
</div>
Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
---
2-
32
import { CardContainer } from "@components/card/card-container";
43
import { Title } from "@components/typography/title";
54
import DeadlineCard from "@components/deadline-card.astro";
6-
import Headline from "@ui/Headline.astro"
5+
import Headline from "@ui/Headline.astro";
76
import { getCollection } from "astro:content";
87
98
let deadlines = await getCollection("deadlines");
109
deadlines = deadlines
1110
.sort((a, b) => a.slug.localeCompare(b.slug))
1211
.reverse()
1312
.slice(0, 3);
14-
1513
---
16-
<section class="prose-xl m-0 my-12 p-0">
17-
<Headline id="updates" title="Updates" />
18-
<CardContainer>
19-
{deadlines.map((deadline) => <DeadlineCard id={deadline.slug} />)}
20-
</CardContainer>
21-
</section>
14+
15+
<section class="prose-xl m-0 my-12 p-0">
16+
<Headline id="updates" title="Updates" />
17+
<CardContainer>
18+
{deadlines.map((deadline) => <DeadlineCard id={deadline.slug} />)}
19+
</CardContainer>
20+
</section>

0 commit comments

Comments
 (0)