From 0990420a5f9d82a4309fcd43012efb27056b7347 Mon Sep 17 00:00:00 2001 From: charlesLoder Date: Wed, 5 Aug 2026 14:12:33 -0400 Subject: [PATCH] fix: astro check warning --- eslint.config.js | 3 ++- netlify/edge-functions/check-theme.ts | 2 +- src/components/SchemaOrg/SchemaOrg.astro | 5 ++--- src/layouts/MainLayout.astro | 3 ++- src/lib/schemaSerialization.ts | 4 ++-- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index 51d7676..129bc88 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,11 +1,12 @@ // eslint.config.js import js from "@eslint/js"; import svelte from "eslint-plugin-svelte"; +import { defineConfig } from "eslint/config"; import globals from "globals"; import ts from "typescript-eslint"; import svelteConfig from "./svelte.config.js"; -export default ts.config( +export default defineConfig( { ignores: ["dist/", ".netlify", ".astro", ".vscode", "test-results"], }, diff --git a/netlify/edge-functions/check-theme.ts b/netlify/edge-functions/check-theme.ts index 9834636..e4ba66d 100644 --- a/netlify/edge-functions/check-theme.ts +++ b/netlify/edge-functions/check-theme.ts @@ -1,6 +1,6 @@ import type { Config, Context } from "@netlify/edge-functions"; -export default async (request: Request, context: Context) => { +export default async (_: Request, context: Context) => { const response = await context.next(); const contentType = response.headers.get("content-type"); diff --git a/src/components/SchemaOrg/SchemaOrg.astro b/src/components/SchemaOrg/SchemaOrg.astro index 0d1e2e4..956bdf2 100644 --- a/src/components/SchemaOrg/SchemaOrg.astro +++ b/src/components/SchemaOrg/SchemaOrg.astro @@ -1,7 +1,6 @@ --- interface Props { type: "webapplication" | "about"; - url?: string; } const SITE_NAME = "Hebrew Transliteration App"; @@ -10,7 +9,7 @@ const SITE_URL = "https://hebrew-transliteration.app"; const description = "Accurate Hebrew transliteration app for academic, religious, or personal needs, along with a suite of other tools for dealing with Hebrew texts."; -const { type, url = SITE_URL } = Astro.props; +const { type } = Astro.props; const baseSchema = { "@context": "https://schema.org", @@ -64,4 +63,4 @@ const schema = }; --- -