Use ESLint
This commit is contained in:
@ -5,8 +5,6 @@ import { findPostsByIds } from "~/utils/posts";
|
||||
import { findImage } from "~/utils/images";
|
||||
import { getPermalink } from "~/utils/permalinks";
|
||||
|
||||
const {} = Astro.props;
|
||||
|
||||
const ids = [
|
||||
"get-started-website-with-astro-tailwind-css",
|
||||
"how-to-customize-astrowind-to-your-brand",
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
const {} = Astro.props;
|
||||
---
|
||||
|
||||
<script is:inline>
|
||||
@ -33,7 +32,7 @@ const {} = Astro.props;
|
||||
document.getElementById("menu")?.classList.toggle("hidden");
|
||||
});
|
||||
|
||||
attachEvent("[data-aw-toggle-color-scheme]", "click", function (elem) {
|
||||
attachEvent("[data-aw-toggle-color-scheme]", "click", function () {
|
||||
document.documentElement.classList.toggle("dark");
|
||||
localStorage.theme = document.documentElement.classList.contains("dark") ? "dark" : "light";
|
||||
});
|
||||
|
@ -9,7 +9,7 @@ const attrs = partytown ? { type: "text/partytown" } : {};
|
||||
<script is:inline define:vars={{ id }} {...attrs}>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag() {
|
||||
dataLayer.push(arguments);
|
||||
window.dataLayer.push(arguments);
|
||||
}
|
||||
gtag("js", new Date());
|
||||
gtag("config", id);
|
||||
|
@ -24,6 +24,7 @@ try {
|
||||
})
|
||||
}
|
||||
catch (e) {
|
||||
// continue regardless of error
|
||||
}
|
||||
|
||||
const { image = {}, sources = [] } = picture || {}
|
||||
|
@ -1,7 +1,5 @@
|
||||
---
|
||||
import { Icon } from "astro-icon";
|
||||
|
||||
const {} = Astro.props;
|
||||
---
|
||||
|
||||
<section class="relative">
|
||||
|
@ -1,7 +1,5 @@
|
||||
---
|
||||
import { getHomePermalink } from "~/utils/permalinks";
|
||||
|
||||
const {} = Astro.props;
|
||||
---
|
||||
|
||||
<section class="flex items-center h-full p-16">
|
||||
|
@ -1,8 +1,6 @@
|
||||
---
|
||||
import { Icon } from "astro-icon";
|
||||
|
||||
const {} = Astro.props;
|
||||
|
||||
const items = [
|
||||
[
|
||||
{
|
||||
|
@ -1,8 +1,6 @@
|
||||
---
|
||||
import { Icon } from "astro-icon";
|
||||
|
||||
const {} = Astro.props;
|
||||
|
||||
const items = [
|
||||
{
|
||||
title: "Headers",
|
||||
|
@ -1,6 +1,4 @@
|
||||
---
|
||||
const {} = Astro.props;
|
||||
|
||||
const items = [
|
||||
[
|
||||
{
|
||||
|
@ -1,7 +1,5 @@
|
||||
---
|
||||
import { Icon } from "astro-icon";
|
||||
|
||||
const {} = Astro.props;
|
||||
---
|
||||
|
||||
<section>
|
||||
|
@ -1,9 +1,6 @@
|
||||
---
|
||||
import { Icon } from "astro-icon";
|
||||
|
||||
import { getHomePermalink } from "~/utils/permalinks";
|
||||
|
||||
const {} = Astro.props;
|
||||
---
|
||||
|
||||
<footer>
|
||||
|
@ -5,8 +5,6 @@ import ToggleTheme from "~/components/core/ToggleTheme.astro";
|
||||
import ToggleMenu from "~/components/core/ToggleMenu.astro";
|
||||
|
||||
import { getPermalink, getBlogPermalink, getHomePermalink } from "~/utils/permalinks";
|
||||
|
||||
const {} = Astro.props;
|
||||
---
|
||||
|
||||
<header
|
||||
|
@ -1,8 +1,6 @@
|
||||
---
|
||||
import { Icon } from "astro-icon";
|
||||
import Picture from "~/components/core/Picture.astro";
|
||||
|
||||
const {} = Astro.props;
|
||||
---
|
||||
|
||||
<section>
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
const {} = Astro.props;
|
||||
---
|
||||
|
||||
<div class="px-4 py-8 md:py-16 sm:px-6 mx-auto md:px-24 lg:px-8 lg:py-20 max-w-6xl">
|
||||
|
@ -1,8 +1,6 @@
|
||||
---
|
||||
import { Icon } from "astro-icon";
|
||||
import Picture from "~/components/core/Picture.astro";
|
||||
|
||||
const {} = Astro.props;
|
||||
---
|
||||
|
||||
<section class="px-4 py-16 sm:px-6 mx-auto lg:px-8 lg:py-20 max-w-6xl">
|
||||
|
Reference in New Issue
Block a user