From 2394ddb4386bc2e01cf169f9af75e99820bbd434 Mon Sep 17 00:00:00 2001 From: Jack Hall Date: Tue, 3 Nov 2026 07:08:56 -0600 Subject: [PATCH] build(deps-dev): bump prettier-plugin-astro to 1.1.2 Supersedes Dependabot #110, whose build job failed at `format:check`: 1.x formats .astro files differently (long class attributes stay on one line, `{expr && (...)}` and `.map()` hug the brace, inline whitespace is made explicit with `{" "}`). Re-formatted the 7 affected files with `prettier --write`. `astro build` output (dist/) is byte-identical before and after the reformat. No config change was needed; the peer range is prettier ^3.5.3. Refs: #117 Co-Authored-By: Claude Opus 5.5 --- package-lock.json | 42 +++++++++------- package.json | 2 +- src/components/Welcome.astro | 44 ++++++++-------- src/pages/about.astro | 43 +++++----------- src/pages/blog/[...slug].astro | 28 ++++------- src/pages/blog/index.astro | 92 ++++++++++++++++------------------ src/pages/login.astro | 8 +-- src/pages/register.astro | 8 +-- src/pages/schedule.astro | 30 ++++------- 9 files changed, 126 insertions(+), 171 deletions(-) diff --git a/package-lock.json b/package-lock.json index d80503c..1284c2f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -49,7 +49,7 @@ "jsdom": "^30.1.3", "playwright": "^1.58.2", "prettier": "^3.8.1", - "prettier-plugin-astro": "^0.14.1", + "prettier-plugin-astro": "^1.1.2", "prettier-plugin-tailwindcss": "^0.8.1", "storybook": "^10.3.3", "typescript": "^5.9.3", @@ -153,13 +153,6 @@ "typescript": "^5.0.0 || ^6.0.0" } }, - "node_modules/@astrojs/compiler": { - "version": "2.13.1", - "resolved": "https://registry.npmjs.org/@astrojs/compiler/-/compiler-2.13.1.tgz", - "integrity": "sha512-f3FN83d2G/v32ipNClRKgYv30onQlMZX1vCeZMjPsMMPl1mDpmbl0+N5BYo4S/ofzqJyS5hvwacEo0CCVDn/Qg==", - "dev": true, - "license": "MIT" - }, "node_modules/@astrojs/compiler-binding": { "version": "0.5.2", "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding/-/compiler-binding-0.5.2.tgz", @@ -3477,6 +3470,13 @@ "dev": true, "license": "MIT" }, + "node_modules/@prettier/parse-srcset": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@prettier/parse-srcset/-/parse-srcset-3.1.0.tgz", + "integrity": "sha512-FIRv2rZotO9NP/r66taYqD1zICpPiBbrECqjKV/xqNotqDxF7fLzzUeK+1RSRx9Tenk0DajR/GcRmTJ2qtHaKQ==", + "dev": true, + "license": "MIT" + }, "node_modules/@react-aria/focus": { "version": "3.22.1", "resolved": "https://registry.npmjs.org/@react-aria/focus/-/focus-3.22.1.tgz", @@ -8986,18 +8986,21 @@ } }, "node_modules/prettier-plugin-astro": { - "version": "0.14.1", - "resolved": "https://registry.npmjs.org/prettier-plugin-astro/-/prettier-plugin-astro-0.14.1.tgz", - "integrity": "sha512-RiBETaaP9veVstE4vUwSIcdATj6dKmXljouXc/DDNwBSPTp8FRkLGDSGFClKsAFeeg+13SB0Z1JZvbD76bigJw==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/prettier-plugin-astro/-/prettier-plugin-astro-1.1.2.tgz", + "integrity": "sha512-vKyJW7Bb/QcIPUebEehbG+Tn+3yTIhoJ8ecm6NyJgcOj5T2xP+eF1IxY4zv809YyA69nV4ZFj+H9mdpC5cTaQA==", "dev": true, "license": "MIT", "dependencies": { - "@astrojs/compiler": "^2.9.1", - "prettier": "^3.0.0", - "sass-formatter": "^0.7.6" + "@astrojs/compiler-rs": "^0.5.2", + "@prettier/parse-srcset": "^3.1.0", + "sass-formatter": "^0.8.0" }, "engines": { - "node": "^14.15.0 || >=16.0.0" + "node": ">=22.12.0" + }, + "peerDependencies": { + "prettier": "^3.5.3" } }, "node_modules/prettier-plugin-tailwindcss": { @@ -9463,13 +9466,16 @@ "license": "MIT" }, "node_modules/sass-formatter": { - "version": "0.7.9", - "resolved": "https://registry.npmjs.org/sass-formatter/-/sass-formatter-0.7.9.tgz", - "integrity": "sha512-CWZ8XiSim+fJVG0cFLStwDvft1VI7uvXdCNJYXhDvowiv+DsbD1nXLiQ4zrE5UBvj5DWZJ93cwN0NX5PMsr1Pw==", + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/sass-formatter/-/sass-formatter-0.8.0.tgz", + "integrity": "sha512-Nf4eMGE2O5vnJG7KPCRyksWS9gVKSYoUWtPeMXRRxwZSPVQhSGtL602xVYS65LvMkHmkvKa7xpauF0+/5pPwrg==", "dev": true, "license": "MIT", "dependencies": { "suf-log": "^2.5.3" + }, + "bin": { + "sass-formatter": "dist/cli.js" } }, "node_modules/satteri": { diff --git a/package.json b/package.json index dad12a5..dc7de7d 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "jsdom": "^30.1.3", "playwright": "^1.58.2", "prettier": "^3.8.1", - "prettier-plugin-astro": "^0.14.1", + "prettier-plugin-astro": "^1.1.2", "prettier-plugin-tailwindcss": "^0.8.1", "storybook": "^10.3.3", "typescript": "^5.9.3", diff --git a/src/components/Welcome.astro b/src/components/Welcome.astro index cc13d45..5a592f6 100644 --- a/src/components/Welcome.astro +++ b/src/components/Welcome.astro @@ -7,40 +7,40 @@ import background from "../assets/background.svg";
- Astro Homepage + + Astro Homepage +

- To get started, open the
src/pages
directory in your - project. + To get started, open the{" "} + +
src/pages
+
{" "} + directory in your project.

- + + fill="#111827" + > +

What's New in Astro 5.0?

From content layers to server islands, click to learn more about the new diff --git a/src/pages/about.astro b/src/pages/about.astro index 173af29..5616af4 100644 --- a/src/pages/about.astro +++ b/src/pages/about.astro @@ -34,14 +34,13 @@ import Footer from "../components/Footer"; fill="url(#about-pattern)" width="100%" height="100%" - stroke-width={0}> + stroke-width={0} + >

-

+

About CSCS

@@ -57,9 +56,7 @@ import Footer from "../components/Footer";

-

+

Our Mission

@@ -75,18 +72,12 @@ import Footer from "../components/Footer";
-

+

What We Do

-
-

+
+

Book Club

@@ -102,12 +93,8 @@ import Footer from "../components/Footer";

-
-

+ -
-

+
+

Community Meetups

@@ -149,9 +132,7 @@ import Footer from "../components/Footer";

-
+

Get Involved

diff --git a/src/pages/blog/[...slug].astro b/src/pages/blog/[...slug].astro index 8a50d7c..d4aab50 100644 --- a/src/pages/blog/[...slug].astro +++ b/src/pages/blog/[...slug].astro @@ -65,25 +65,19 @@ const blogPostSchema = { > {formatDate(post.data.pubDate)} - { - post.data.tags.map((tag) => ( - - {tag} - - )) - } + {post.data.tags.map((tag) => ( + + {tag} + + ))}
-

+

{post.data.title}

{post.data.description}

-
+

By {post.data.author} @@ -92,9 +86,7 @@ const blogPostSchema = {

-
+
@@ -118,9 +110,7 @@ const blogPostSchema = { > Share on Twitter - +
diff --git a/src/pages/blog/index.astro b/src/pages/blog/index.astro index 5ef4b9d..4a7de89 100644 --- a/src/pages/blog/index.astro +++ b/src/pages/blog/index.astro @@ -27,9 +27,7 @@ function formatDate(date: Date) {
-

+

Blog

@@ -40,56 +38,52 @@ function formatDate(date: Date) {

- { - posts.map((post) => ( -
-
-
- - {post.data.tags.slice(0, 2).map((tag) => ( - - {tag} - - ))} -
-
-

- - - {post.data.title} - -

-

- {post.data.description} -

-
+ {posts.map((post) => ( +
+
+
+ + {post.data.tags.slice(0, 2).map((tag) => ( + + {tag} + + ))}
-
-
-

- {post.data.author} -

-
+
+

+ + + {post.data.title} + +

+

+ {post.data.description} +

-
- )) - } +
+
+
+

+ {post.data.author} +

+
+
+
+ ))}
- { - posts.length === 0 && ( -
-

- No blog posts yet. Check back soon! -

-
- ) - } + {posts.length === 0 && ( +
+

+ No blog posts yet. Check back soon! +

+
+ )}
diff --git a/src/pages/login.astro b/src/pages/login.astro index f595c2f..7905c1d 100644 --- a/src/pages/login.astro +++ b/src/pages/login.astro @@ -14,9 +14,7 @@ const description = "Sign in to your CSCS account";
-
+
Sign in to your account @@ -29,9 +27,7 @@ const description = "Sign in to your CSCS account";
- + Don't have an account?{" "}