Skip to content

Commit d266e6b

Browse files
committed
check fix
1 parent 7237998 commit d266e6b

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

astro.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { defineConfig } from "astro/config";
33
import tailwind from "@tailwindcss/vite";
44

55
import mdx from "@astrojs/mdx";
6-
import icon from "astro-icon";
76
import sitemap from "@astrojs/sitemap";
7+
import icon from "astro-icon";
88
// import { visualizer } from "rollup-plugin-visualizer";
99

1010
// https://astro.build/config

lefthook.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
pre-commit:
22
parallel: true
33
commands:
4-
prettier:
4+
check:
55
glob: "*.{js,ts,jsx,tsx,html,svelte,css,md,mdx,astro}"
6-
run: bun prettier --write {staged_files}
6+
run: bun fix:staged {staged_files}
77
stage_fixed: true
88
sync:
99
run: bun sync

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
"prepare": "lefthook install && bun sync",
1313
"sync": "astro sync",
1414
"dev": "astro dev",
15-
"check": "biome check . && astro check",
16-
"fix": "biome lint . --fix --unsafe",
15+
"check": "biome check . && astro check && bun prettier --check .",
16+
"fix": "biome check . --fix --unsafe && bun prettier . --write",
17+
"fix:staged": "biome check . --fix && astro check && bun prettier --write",
1718
"build": "astro build",
1819
"preview": "astro preview"
1920
},

src/layouts/GlobalLayout.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
import Footer from "../components/Footer.astro";
33
import Header from "../components/Header.astro";
4+
import Logo from "../images/favicon.png";
45
import type { Focus } from "../schema";
56
import Meta from "./meta.astro";
6-
import Logo from "../images/favicon.png";
77
88
interface Props {
99
title: string | null;
@@ -16,7 +16,7 @@ const { title, description, focus, image } = Astro.props;
1616
---
1717

1818
<html lang="ja" class="bg-gray-50 text-gray-800" data-theme="light">
19-
<Meta {title} {description} image={image ?? Logo.src} />
19+
<Meta {title} {description} image={image ?? Logo} />
2020
<body class="min-h-full w-full">
2121
<Header {focus} />
2222
<slot />

0 commit comments

Comments
 (0)