From 3d5071102e3a8692a2df6d16cbf964ee5e680624 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sat, 25 May 2024 10:01:48 +0000 Subject: [PATCH] style: format code with Prettier This commit fixes the style issues introduced in b99142f according to the output from Prettier. Details: None --- astro.config.mjs | 2 +- src/content/content.ts | 13 +++++------ src/content/posts/example.md | 10 ++++---- src/content/posts/markdown-cheat-sheet.md | 28 ++++++++++++----------- src/content/projects/example-2.md | 12 +++++----- src/content/projects/example.md | 12 +++++----- src/content/projects/gwagwa.md | 12 +++++----- src/styles/_button.scss | 9 +++++--- src/styles/_pill.scss | 2 +- src/styles/_project_list.scss | 2 +- src/styles/_reset.scss | 6 +++-- src/utils.ts | 12 ++++++---- 12 files changed, 64 insertions(+), 56 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 882e651..4840250 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,4 +1,4 @@ -import { defineConfig } from 'astro/config'; +import { defineConfig } from "astro/config"; // https://astro.build/config export default defineConfig({}); diff --git a/src/content/content.ts b/src/content/content.ts index a6897fa..e53c77a 100644 --- a/src/content/content.ts +++ b/src/content/content.ts @@ -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, }; diff --git a/src/content/posts/example.md b/src/content/posts/example.md index 74e5420..439e493 100644 --- a/src/content/posts/example.md +++ b/src/content/posts/example.md @@ -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 diff --git a/src/content/posts/markdown-cheat-sheet.md b/src/content/posts/markdown-cheat-sheet.md index 7cb5987..97e4d32 100644 --- a/src/content/posts/markdown-cheat-sheet.md +++ b/src/content/posts/markdown-cheat-sheet.md @@ -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 Gruber’s original design document. All ### Heading # H1 + ## H2 + ### H3 ### Bold @@ -31,7 +33,7 @@ These are the elements outlined in John Gruber’s original design document. All ### Italic -*italicized text* +_italicized text_ ### Blockquote @@ -45,9 +47,9 @@ These are the elements outlined in John Gruber’s 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 diff --git a/src/content/projects/example-2.md b/src/content/projects/example-2.md index 3aa0672..2de77b3 100644 --- a/src/content/projects/example-2.md +++ b/src/content/projects/example-2.md @@ -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 \ No newline at end of file +AURGH diff --git a/src/content/projects/example.md b/src/content/projects/example.md index 63f3981..91aad6f 100644 --- a/src/content/projects/example.md +++ b/src/content/projects/example.md @@ -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 \ No newline at end of file +Gay Balls even diff --git a/src/content/projects/gwagwa.md b/src/content/projects/gwagwa.md index 7e10aa9..d306616 100644 --- a/src/content/projects/gwagwa.md +++ b/src/content/projects/gwagwa.md @@ -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 \ No newline at end of file +gwagwa diff --git a/src/styles/_button.scss b/src/styles/_button.scss index e32d6c4..9bf494f 100644 --- a/src/styles/_button.scss +++ b/src/styles/_button.scss @@ -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); } } } diff --git a/src/styles/_pill.scss b/src/styles/_pill.scss index 42c7674..e1621b2 100644 --- a/src/styles/_pill.scss +++ b/src/styles/_pill.scss @@ -28,4 +28,4 @@ padding: 0 16px; height: 40px; font-size: 16px; -} \ No newline at end of file +} diff --git a/src/styles/_project_list.scss b/src/styles/_project_list.scss index 9d062bf..59d34eb 100644 --- a/src/styles/_project_list.scss +++ b/src/styles/_project_list.scss @@ -9,4 +9,4 @@ > li { list-style: none; } -} \ No newline at end of file +} diff --git a/src/styles/_reset.scss b/src/styles/_reset.scss index 38ba0d3..8aa9ca4 100644 --- a/src/styles/_reset.scss +++ b/src/styles/_reset.scss @@ -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 { diff --git a/src/utils.ts b/src/utils.ts index 141ddde..f168648 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -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 - ) -} \ No newline at end of file + a.data.pubDate && b.data.pubDate + ? +b.data.pubDate - +a.data.pubDate + : 0, + ); +}