From 783ee265d94ab0b7fbe7b041c87c8f30fe79a8c8 Mon Sep 17 00:00:00 2001 From: Alan Ye Date: Wed, 28 Aug 2024 20:45:59 +0800 Subject: [PATCH] fix(lint): parsing error and `no-unused-vars` --- src/components/Footer.astro | 1 - src/components/Header.astro | 1 - src/consts.ts | 2 +- src/pages/index.astro | 1 - 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 5bc241f..0fcfad3 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -1,6 +1,5 @@ --- import Container from "@components/Container.astro"; -import { SITE } from "@consts"; import BackToTop from "@components/BackToTop.astro"; --- diff --git a/src/components/Header.astro b/src/components/Header.astro index 56f3c4e..483d2fa 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -22,7 +22,6 @@ import { SITE } from "@consts"; GitHub - diff --git a/src/consts.ts b/src/consts.ts index cfd8e4d..4105795 100644 --- a/src/consts.ts +++ b/src/consts.ts @@ -1,4 +1,4 @@ -import type { Site, Metadata, Socials } from "@types"; +import type { Site, Metadata } from "@types"; export const SITE: Site = { NAME: "c13n", diff --git a/src/pages/index.astro b/src/pages/index.astro index 4ffb912..a893d52 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -4,7 +4,6 @@ import Container from "@components/Container.astro"; import PageLayout from "@layouts/PageLayout.astro"; import ArrowCard from "@components/ArrowCard.astro"; import Link from "@components/Link.astro"; -import { dateRange } from "@lib/utils"; import { SITE, HOME } from "@consts"; const blog = (await getCollection("blog"))