From 62d2b3717a9b18d92949988d94ddebfbaf167333 Mon Sep 17 00:00:00 2001 From: "Reid \"reidlab" Date: Sun, 8 Dec 2024 18:34:16 -0800 Subject: [PATCH] lint --- .editorconfig | 4 +++- .gitignore | 3 +-- README.md | 2 +- astro.config.mjs | 2 +- eslint.config.mjs | 2 +- flake.nix | 4 ++-- postcss.config.cjs | 2 +- src/components/Badges.astro | 2 +- src/components/Card.astro | 2 +- src/components/Header.astro | 2 +- src/components/Projects.astro | 2 +- src/components/Sidebar.astro | 4 ++-- src/content/badges/badges.yml | 2 +- src/content/config.ts | 2 +- src/content/projects/projects.yml | 4 ++-- src/env.d.ts | 2 +- src/layouts/Layout.astro | 2 +- src/pages/404.astro | 2 +- src/pages/about.astro | 2 +- src/pages/index.astro | 2 +- src/pages/projects.astro | 4 ++-- src/pages/robots.txt.ts | 2 +- src/pages/socials.astro | 2 +- src/styles/main.css | 2 +- tsconfig.json | 2 +- 25 files changed, 31 insertions(+), 30 deletions(-) diff --git a/.editorconfig b/.editorconfig index ade3e38..18fd5bc 100644 --- a/.editorconfig +++ b/.editorconfig @@ -4,6 +4,8 @@ root = true end_of_line = lf indent_style = space indent_size = 4 +insert_final_newline = true +trim_trailing_whitespace = true [{*.nix,*.yml}] -indent_size = 2 \ No newline at end of file +indent_size = 2 diff --git a/.gitignore b/.gitignore index 07edd42..679b573 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ - /.astro /dist /result @@ -6,4 +5,4 @@ # i host hidden files on my website here, don't ask about them # cool self-hosted infinite fileshare -/f \ No newline at end of file +/f diff --git a/README.md b/README.md index 863f946..eeba24e 100644 --- a/README.md +++ b/README.md @@ -23,4 +23,4 @@ or, for deployment: ```sh npm run build -``` \ No newline at end of file +``` diff --git a/astro.config.mjs b/astro.config.mjs index bdb8167..7e95f41 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -15,4 +15,4 @@ export default defineConfig({ sitemap(), compress() ] -}); \ No newline at end of file +}); diff --git a/eslint.config.mjs b/eslint.config.mjs index 8efabcf..b404733 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -27,4 +27,4 @@ export default [ ] } } -]; \ No newline at end of file +]; diff --git a/flake.nix b/flake.nix index c13800f..e67128d 100644 --- a/flake.nix +++ b/flake.nix @@ -25,7 +25,7 @@ # very scuffed but endorsed! #npmDepsHash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="; npmDepsHash = "sha256-aPRFARC1WJsH1NIrm9OmBv/bH9ME1K4apfWqbA+VPf4="; - + installPhase = '' mkdir -p $out mv ./dist/* $out/ @@ -42,4 +42,4 @@ ]; }; }); -} \ No newline at end of file +} diff --git a/postcss.config.cjs b/postcss.config.cjs index bdbe485..9fab2f8 100644 --- a/postcss.config.cjs +++ b/postcss.config.cjs @@ -2,4 +2,4 @@ module.exports = { plugins: [ require("postcss-preset-env") ] -}; \ No newline at end of file +}; diff --git a/src/components/Badges.astro b/src/components/Badges.astro index 5a8a8f8..31f62b4 100644 --- a/src/components/Badges.astro +++ b/src/components/Badges.astro @@ -41,4 +41,4 @@ const badges = await getEntry("badges", "badges"); height: 31px; } } - \ No newline at end of file + diff --git a/src/components/Card.astro b/src/components/Card.astro index cdf4ac4..6f46e70 100644 --- a/src/components/Card.astro +++ b/src/components/Card.astro @@ -29,4 +29,4 @@ const { title } = Astro.props; box-shadow: .25em .25em #181818; padding: 1em; } - \ No newline at end of file + diff --git a/src/components/Header.astro b/src/components/Header.astro index 7b2d70a..c938b28 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -6,4 +6,4 @@ const message = figlet.text("reidlab", (err, _res) => { if (err) { throw err; }
{message}
-
\ No newline at end of file + diff --git a/src/components/Projects.astro b/src/components/Projects.astro index 918ae09..3c53b1a 100644 --- a/src/components/Projects.astro +++ b/src/components/Projects.astro @@ -65,4 +65,4 @@ let lastYear = 0; flex-direction: column; align-items: flex-end; } - \ No newline at end of file + diff --git a/src/components/Sidebar.astro b/src/components/Sidebar.astro index ba3b1af..989479b 100644 --- a/src/components/Sidebar.astro +++ b/src/components/Sidebar.astro @@ -35,11 +35,11 @@ import Header from "./Header.astro"; nav ul { padding-left: 1em; margin: 1.5em; - + white-space: nowrap; } nav li { list-style-type: "/ "; } - \ No newline at end of file + diff --git a/src/content/badges/badges.yml b/src/content/badges/badges.yml index b2c4b15..d565145 100644 --- a/src/content/badges/badges.yml +++ b/src/content/badges/badges.yml @@ -67,4 +67,4 @@ alt: "pride flag" - path: "./img/spax.gif" alt: "spax dot zone" - href: "https://spax.zone" \ No newline at end of file + href: "https://spax.zone" diff --git a/src/content/config.ts b/src/content/config.ts index e03e758..d5f68f4 100644 --- a/src/content/config.ts +++ b/src/content/config.ts @@ -27,4 +27,4 @@ const badgesCollection = defineCollection({ export const collections = { projects: projectsCollection, badges: badgesCollection -}; \ No newline at end of file +}; diff --git a/src/content/projects/projects.yml b/src/content/projects/projects.yml index 5d300cf..f9dceea 100644 --- a/src/content/projects/projects.yml +++ b/src/content/projects/projects.yml @@ -1,11 +1,11 @@ - name: "lastfmpris" description: "a rust application to scrobble your currently playing song on last.fm with mpris" date: 2024-08-22 - links: + links: - "https://git.reidlab.pink/reidlab/lastfmpris" - name: "reidlab.pink" description: "this website!" date: 2024-07-04 links: - "https://reidlab.pink" - - "https://git.reidlab.pink/reidlab/website" \ No newline at end of file + - "https://git.reidlab.pink/reidlab/website" diff --git a/src/env.d.ts b/src/env.d.ts index 91ade3c..8a3bef8 100644 --- a/src/env.d.ts +++ b/src/env.d.ts @@ -2,4 +2,4 @@ /* eslint-disable @typescript-eslint/triple-slash-reference */ /// -/// \ No newline at end of file +/// diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index a5e9f96..f714a81 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -106,4 +106,4 @@ import "../styles/main.css"; height: 100%; width: 100%; } - \ No newline at end of file + diff --git a/src/pages/404.astro b/src/pages/404.astro index 9a8b675..c99ce49 100644 --- a/src/pages/404.astro +++ b/src/pages/404.astro @@ -10,4 +10,4 @@ import Card from "../components/Card.astro";

if you cannot find what you need, but you expected it to be here, submit a request using my contact information

would you like to head back to the main page?

- \ No newline at end of file + diff --git a/src/pages/about.astro b/src/pages/about.astro index ab5cc46..73189a2 100644 --- a/src/pages/about.astro +++ b/src/pages/about.astro @@ -11,4 +11,4 @@ import Card from "../components/Card.astro";

my favorite games include: oneshot, celeste, omori, undertale, deltarune, rain world, and roblox

my favorite music genres include: shoegaze, rock, and hyperpop

- \ No newline at end of file + diff --git a/src/pages/index.astro b/src/pages/index.astro index 5379cf4..fe80e7e 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -15,4 +15,4 @@ import Badges from "../components/Badges.astro"; - \ No newline at end of file + diff --git a/src/pages/projects.astro b/src/pages/projects.astro index cf86ef5..9f150e6 100644 --- a/src/pages/projects.astro +++ b/src/pages/projects.astro @@ -2,7 +2,7 @@ import Layout from "../layouts/Layout.astro"; import Card from "../components/Card.astro"; -// funny import/export conflict if we don't do this :( +// funny import/export conflict if we don't do this :( // unfortunate... import ProjectsList from "../components/Projects.astro"; --- @@ -13,4 +13,4 @@ import ProjectsList from "../components/Projects.astro";

as always, my socials and contacts are on the left or top side of the screen for you to access my git profiles if you wanna poke around in my git repositories

- \ No newline at end of file + diff --git a/src/pages/robots.txt.ts b/src/pages/robots.txt.ts index 02b8bf1..7169081 100644 --- a/src/pages/robots.txt.ts +++ b/src/pages/robots.txt.ts @@ -7,4 +7,4 @@ Allow: / Sitemap: ${new URL("sitemap-index.xml", import.meta.env.SITE).href} `.trim(), { status: 200 } -); \ No newline at end of file +); diff --git a/src/pages/socials.astro b/src/pages/socials.astro index f1e460f..c79ab05 100644 --- a/src/pages/socials.astro +++ b/src/pages/socials.astro @@ -20,4 +20,4 @@ import Card from "../components/Card.astro";

if you'd like to get in touch with me, the only reliable way is via discord. i tend to take a while or sometimes miss other contact methods

if you do not want to directly contact me through discord or want to contact about more serious inquries, you can try the email address reidlab (at) this domain

- \ No newline at end of file + diff --git a/src/styles/main.css b/src/styles/main.css index 2e8801a..84366fa 100644 --- a/src/styles/main.css +++ b/src/styles/main.css @@ -87,4 +87,4 @@ summary::before { } details[open] summary::before { transform: rotate(90deg); -} \ No newline at end of file +} diff --git a/tsconfig.json b/tsconfig.json index 7e4318b..9b90fde 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,3 +1,3 @@ { "extends": "astro/tsconfigs/base" -} \ No newline at end of file +}