style: format code with Prettier

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

Details: None
This commit is contained in:
deepsource-autofix[bot] 2024-05-25 10:01:48 +00:00 committed by GitHub
parent b99142fd44
commit 3d5071102e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 64 additions and 56 deletions

View file

@ -1,4 +1,4 @@
import { defineConfig } from 'astro/config';
import { defineConfig } from "astro/config";
// https://astro.build/config
export default defineConfig({});

View file

@ -1,5 +1,4 @@
import { z, defineCollection } from 'astro:content';
import { z, defineCollection } from "astro:content";
const postsCollection = defineCollection({
type: "content",
@ -25,16 +24,16 @@ const projectsCollection = defineCollection({
const certificatesCollection = defineCollection({
type: "data",
schema: z.object({
title: z.string(),
title: z.string(),
provider: z.string(),
achieved: z.date(),
skills: z.array(z.string()).optional(),
link: z.string().optional(),
}),
})
});
export const collections = {
"posts": postsCollection,
"projects": projectsCollection,
"certificates": certificatesCollection,
posts: postsCollection,
projects: projectsCollection,
certificates: certificatesCollection,
};

View file

@ -5,11 +5,11 @@ pubDate: 2022-07-08
image:
url: "https://docs.astro.build/assets/arc.webp"
alt: "Thumbnail of Astro arcs."
tags:
- "GwaGwa"
- "Gaming"
- "Urchin"
- "Fortnite"
tags:
- "GwaGwa"
- "Gaming"
- "Urchin"
- "Fortnite"
---
aurgh

View file

@ -5,8 +5,8 @@ pubDate: 2022-07-08
image:
url: "https://docs.astro.build/assets/arc.webp"
alt: "Thumbnail of Astro arcs."
tags:
- "Faggor"
tags:
- "Faggor"
---
# Markdown Cheat Sheet
@ -22,7 +22,9 @@ These are the elements outlined in John Grubers original design document. All
### Heading
# H1
## H2
### H3
### Bold
@ -31,7 +33,7 @@ These are the elements outlined in John Grubers original design document. All
### Italic
*italicized text*
_italicized text_
### Blockquote
@ -45,9 +47,9 @@ These are the elements outlined in John Grubers original design document. All
### Unordered List
- First item
- Second item
- Third item
- First item
- Second item
- Third item
### Code
@ -71,10 +73,10 @@ These elements extend the basic syntax by adding additional features. Not all Ma
### Table
| Syntax | Description |
| ----------- | ----------- |
| Header | Title |
| Paragraph | Text |
| Syntax | Description |
| --------- | ----------- |
| Header | Title |
| Paragraph | Text |
### Fenced Code Block
@ -107,9 +109,9 @@ term
### Task List
- [x] Write the press release
- [ ] Update the website
- [ ] Contact the media
- [x] Write the press release
- [ ] Update the website
- [ ] Contact the media
### Emoji

View file

@ -4,11 +4,11 @@ description: Another one
image:
url: "https://docs.astro.build/assets/arc.webp"
alt: "Thumbnail of Astro arcs."
tags:
- "GwaGwa"
- "Gaming"
- "Urchin"
- "Fortnite"
tags:
- "GwaGwa"
- "Gaming"
- "Urchin"
- "Fortnite"
---
AURGH
AURGH

View file

@ -4,11 +4,11 @@ description: Example Project Im working on
image:
url: "https://docs.astro.build/assets/arc.webp"
alt: "Thumbnail of Astro arcs."
tags:
- "GwaGwa"
- "Gaming"
- "Urchin"
- "Fortnite"
tags:
- "GwaGwa"
- "Gaming"
- "Urchin"
- "Fortnite"
---
Gay Balls even
Gay Balls even

View file

@ -4,11 +4,11 @@ description: :3
image:
url: "https://docs.astro.build/assets/arc.webp"
alt: "Thumbnail of Astro arcs."
tags:
- "GwaGwa"
- "Gaming"
- "Urchin"
- "Fortnite"
tags:
- "GwaGwa"
- "Gaming"
- "Urchin"
- "Fortnite"
---
gwagwa
gwagwa

View file

@ -23,7 +23,7 @@
overflow: hidden;
&:before {
content: '';
content: "";
width: 100%;
height: 100%;
@ -40,13 +40,16 @@
pointer-events: none;
}
&:hover, &:focus-visible {
&:hover,
&:focus-visible {
outline: 0 solid transparent;
&:before {
opacity: 1;
transform: scaleX(100%);
transition: opacity 0.5s cubic-bezier(0,1,0,1), transform 0.5s cubic-bezier(0,1,0,1);
transition:
opacity 0.5s cubic-bezier(0, 1, 0, 1),
transform 0.5s cubic-bezier(0, 1, 0, 1);
}
}
}

View file

@ -28,4 +28,4 @@
padding: 0 16px;
height: 40px;
font-size: 16px;
}
}

View file

@ -9,4 +9,4 @@
> li {
list-style: none;
}
}
}

View file

@ -1,8 +1,10 @@
*, *::before, *::after {
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'IBM Plex Mono', monospace;
font-family: "IBM Plex Mono", monospace;
}
html {

View file

@ -3,9 +3,11 @@ import { type ContentEntryMap, getCollection } from "astro:content";
// https://github.com/hellotham/hello-astro/blob/e05706cf488bcec6e4c5494a622eedfc4e47d763/src/config.ts#L55C1-L62C2
export async function getPosts(collection: keyof ContentEntryMap) {
const posts = await getCollection(collection, ({ data }) => {
return data.draft !== true
})
return data.draft !== true;
});
return posts.sort((a, b) =>
a.data.pubDate && b.data.pubDate ? +b.data.pubDate - +a.data.pubDate : 0
)
}
a.data.pubDate && b.data.pubDate
? +b.data.pubDate - +a.data.pubDate
: 0,
);
}