style: format code with Prettier

This commit fixes the style issues introduced in 54e79be according to the output
from Prettier.

Details: None
This commit is contained in:
deepsource-autofix[bot] 2024-05-28 20:36:46 +00:00 committed by GitHub
parent 54e79beb30
commit 7884f0a028
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 22 additions and 18 deletions

View file

@ -9,8 +9,8 @@ export default defineConfig({
markdown: {
syntaxHighlight: "shiki",
shikiConfig: {
theme: syntaxTheme
}
theme: syntaxTheme,
},
integrations: [mdx()]
},
integrations: [mdx()],
});

View file

@ -15,7 +15,9 @@ import Note from "../../components/Note.astro";
- Astro is hard, due to all the issues I've encountered
```typescript
export async function getTagsBySlug(postTags: string[]): Promise<CollectionEntry<"tags">[]> {
export async function getTagsBySlug(
postTags: string[],
): Promise<CollectionEntry<"tags">[]> {
// Collect all the tags from collections
const allTags: CollectionEntry<"tags">[] = await getCollection("tags");

View file

@ -30,10 +30,12 @@
}
// If its a clickable element
a.pill, button.pill {
a.pill,
button.pill {
text-decoration: none;
&:hover, &:focus-visible {
&:hover,
&:focus-visible {
border: 2px solid $accent;
background-color: rgba($accent, 0.1);
outline: 0 solid transparent;