Skip to content

Commit

Permalink
Updates after prettier upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztofzuraw committed Jul 28, 2024
1 parent 7cfbee6 commit 74367fc
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 27 deletions.
16 changes: 0 additions & 16 deletions .prettierrc.cjs

This file was deleted.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
},
"scripts": {
"astro": "astro",
"build": "astro build",
"build": "pnpm lint && astro build",
"dev": "astro dev",
"format:all": "prettier . --write",
"lint": "astro check",
"post:new": "./scripts/post.sh",
"prepare": "husky",
Expand Down Expand Up @@ -48,7 +49,7 @@
"prettier": "3.3.3",
"prettier-plugin-astro": "0.14.1",
"prettier-plugin-pkg": "0.18.1",
"prettier-plugin-tailwindcss": "0.6.5",
"prettier-plugin-tailwindcss": "0.6.1",
"typescript": "5.5.4"
}
}
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions prettier.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
export default {
plugins: [
"prettier-plugin-astro",
"prettier-plugin-pkg",
"prettier-plugin-tailwindcss",
],
overrides: [
{
files: "*.astro",
options: {
parser: "astro",
},
},
],
};
2 changes: 1 addition & 1 deletion src/layouts/Base.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Meta from "@/components/Meta.astro";
</slot>
</head>
<body
class="mx-auto flex min-h-screen max-w-3xl flex-col gap-y-16 px-4 py-10 antialiased dark:bg-gray-900 dark:text-white sm:px-6 sm:py-12 lg:max-w-4xl lg:px-8 lg:py-16 lg:text-xl xl:max-w-6xl"
class="mx-auto flex min-h-screen max-w-3xl flex-col gap-y-16 px-4 py-10 antialiased sm:px-6 sm:py-12 lg:max-w-4xl lg:px-8 lg:py-16 lg:text-xl xl:max-w-6xl dark:bg-gray-900 dark:text-white"
>
<Header />
<main>
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/Post.astro
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const { frontmatter } = Astro.props;

<BaseLayout>
<Meta title={`${frontmatter.title} | ${TITLE}`} slot="meta" />
<article class="prose mx-auto dark:prose-invert lg:prose-xl">
<article class="prose mx-auto lg:prose-xl dark:prose-invert">
<h1>{frontmatter.title}</h1>
<p class="text-gray-600 dark:dark:text-gray-300">
Last updated:
Expand Down
2 changes: 1 addition & 1 deletion src/pages/404.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import BaseLayout from "@/layouts/Base.astro";
---

<BaseLayout>
<article class="prose mx-auto dark:prose-invert lg:prose-xl">
<article class="prose mx-auto lg:prose-xl dark:prose-invert">
<h1>Page not found</h1>
<p>Oops! The page you are looking for has been removed or relocated</p>
<a class="cursor-pointer" id="go-back">Go back</a>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/blogroll.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import BaseLayout from "@/layouts/Base.astro";
---

<BaseLayout>
<article class="prose mx-auto dark:prose-invert lg:prose-xl">
<article class="prose mx-auto lg:prose-xl dark:prose-invert">
<h1>Blogroll</h1>
<p>Here are some blogs I like to read.</p>
<ul>
Expand Down

0 comments on commit 74367fc

Please sign in to comment.