Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default defineConfig({
},
},
vite: {
plugins: [tailwindcss() as any],
plugins: [tailwindcss()],
optimizeDeps: {
exclude: ["@resvg/resvg-js"],
},
Expand Down
18 changes: 18 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,24 @@ export default [
},
{ rules: { "no-console": "error" } },
{ files: ["scripts/**"], rules: { "no-console": "off" } },
{
// Vendored third-party code (LibreSpeed: https://github.com/librespeed/speedtest/,
// GNU LGPLv3), copied as-is rather than authored in this project's style.
// These rules don't fit its dialect/conventions, so they're relaxed here
// instead of rewriting upstream logic:
// - no-console: the speed test intentionally logs progress/errors to the console.
// - no-unused-vars: `caughtErrors: "none"` allows the many `catch (e) {}` blocks
// that deliberately ignore the caught error (a common upstream pattern here).
// - no-unused-expressions: speedtest_worker.js uses a bare property access
// (`xhr[i].upload.onprogress;`) inside a try/catch purely for its side effect of
// throwing on unsupported browsers (IE11 feature detection), not as a mistake.
files: ["public/speedtest/**"],
rules: {
"no-console": "off",
"@typescript-eslint/no-unused-vars": ["error", { caughtErrors: "none" }],
"@typescript-eslint/no-unused-expressions": "off",
},
},
{
ignores: [
"dist/**",
Expand Down
1 change: 0 additions & 1 deletion src/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import Hr from "./Hr.astro";
import IconX from "@/assets/icons/IconX.svg";
import IconMoon from "@/assets/icons/IconMoon.svg";
import IconSearch from "@/assets/icons/IconSearch.svg";
import IconArchive from "@/assets/icons/IconArchive.svg";
import IconSunHigh from "@/assets/icons/IconSunHigh.svg";
import IconMenuDeep from "@/assets/icons/IconMenuDeep.svg";
import LinkButton from "./LinkButton.astro";
Expand Down
2 changes: 0 additions & 2 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ import IconInstagram from "@/assets/icons/instagram-brands.svg";
import IconLinkedin from "@/assets/icons/linkedin-brands.svg";
import IconTwitter from "@/assets/icons/x-twitter-brands.svg";
import IconMastodon from "@/assets/icons/mastodon-brands.svg";
import IconBluesky from "@/assets/icons/bluesky-brands.svg";
import IconStackOverflow from "@/assets/icons/stack-overflow-brands.svg";
import IconYouTube from "@/assets/icons/youtube-brands.svg";
import IconSteam from "@/assets/icons/steam-brands.svg";
import { SITE } from "@/config";
import type { GiscusProps } from "@giscus/react";

export const SOCIALS = [
Expand Down
3 changes: 1 addition & 2 deletions src/layouts/PostDetails.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import Footer from "@/components/Footer.astro";
import Tag from "@/components/Tag.astro";
import Datetime from "@/components/Datetime.astro";
import EditPost from "@/components/EditPost.astro";
import ShareLinks from "@/components/ShareLinks.astro";
import BackButton from "@/components/BackButton.astro";
import Comments from "@/components/Comments";
import { getPath } from "@/utils/getPath";
Expand Down Expand Up @@ -112,7 +111,7 @@ const nextPost =
</ul>

<div class="flex flex-col items-center justify-between gap-6 sm:flex-row sm:items-end sm:gap-4">
<EditPost {post} />
<EditPost {post} {hideEditPost} />
<button
id="back-to-top"
class="focus-outline py-1 whitespace-nowrap hover:opacity-75"
Expand Down
1 change: 0 additions & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import LinkButton from "@/components/LinkButton.astro";
import Card from "@/components/Card.astro";
import Hr from "@/components/Hr.astro";
import getSortedPosts from "@/utils/getSortedPosts";
import IconRss from "@/assets/icons/IconRss.svg";
import IconArrowRight from "@/assets/icons/IconArrowRight.svg";
import { SITE } from "@/config";
import { SOCIALS } from "@/constants";
Expand Down
Loading