From 5a3b16708bffae74dda6094dcfb22775ddd04bab Mon Sep 17 00:00:00 2001 From: Ciffelia Date: Tue, 5 Dec 2023 17:34:14 +0900 Subject: [PATCH 1/4] =?UTF-8?q?.prettierignore=E3=81=AE=E6=8C=87=E5=AE=9A?= =?UTF-8?q?=E3=82=92=E6=AD=A3=E7=A2=BA=E3=81=AB=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .prettierignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.prettierignore b/.prettierignore index 9d51669..fb3ce06 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1 +1 @@ -src/content/blogs/ +/src/content/blogs From 964cd32b22780ea579dfab9b77fb8d37ed13f27b Mon Sep 17 00:00:00 2001 From: Ciffelia Date: Tue, 5 Dec 2023 18:03:36 +0900 Subject: [PATCH 2/4] =?UTF-8?q?Prettier=E3=82=92=E3=82=A2=E3=83=83?= =?UTF-8?q?=E3=83=97=E3=83=87=E3=83=BC=E3=83=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 16 ++++++++-------- package.json | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index 347d9ae..ab80db6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,8 +22,8 @@ "typescript": "^5.2.2" }, "devDependencies": { - "prettier": "^3.0.3", - "prettier-plugin-astro": "^0.12.1", + "prettier": "^3.1.0", + "prettier-plugin-astro": "^0.12.2", "schema-dts": "^1.1.2", "ts-node": "^10.9.1" } @@ -5751,9 +5751,9 @@ } }, "node_modules/prettier": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz", - "integrity": "sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.0.tgz", + "integrity": "sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw==", "devOptional": true, "bin": { "prettier": "bin/prettier.cjs" @@ -5766,9 +5766,9 @@ } }, "node_modules/prettier-plugin-astro": { - "version": "0.12.1", - "resolved": "https://registry.npmjs.org/prettier-plugin-astro/-/prettier-plugin-astro-0.12.1.tgz", - "integrity": "sha512-1mlNIU/cV+25oB4z5wXzOz2fSDcawG3MsVUwgw2i8VSy7voLSENMSpR1juu3U5MAVUo3owuyax11QuylbpuqOQ==", + "version": "0.12.2", + "resolved": "https://registry.npmjs.org/prettier-plugin-astro/-/prettier-plugin-astro-0.12.2.tgz", + "integrity": "sha512-1OXSEht27zrnX7rCa0bEpLdspeumFW4hnj4+JzPuG5bRlSOAhD0rbXBNZfRD9q0Qbr00EcCcnjd6k6M8q+GfTA==", "devOptional": true, "dependencies": { "@astrojs/compiler": "^1.5.5", diff --git a/package.json b/package.json index 79b0d9b..d6a18bb 100644 --- a/package.json +++ b/package.json @@ -29,8 +29,8 @@ "typescript": "^5.2.2" }, "devDependencies": { - "prettier": "^3.0.3", - "prettier-plugin-astro": "^0.12.1", + "prettier": "^3.1.0", + "prettier-plugin-astro": "^0.12.2", "schema-dts": "^1.1.2", "ts-node": "^10.9.1" } From f31f3d944226bf17aeaafa032d7d0dcff3290a52 Mon Sep 17 00:00:00 2001 From: Ciffelia Date: Tue, 5 Dec 2023 18:03:56 +0900 Subject: [PATCH 3/4] =?UTF-8?q?Prettier=E3=81=AE=E8=A8=AD=E5=AE=9A?= =?UTF-8?q?=E3=82=92ESM=E3=81=AB=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- prettier.config.cjs => prettier.config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) rename prettier.config.cjs => prettier.config.js (60%) diff --git a/prettier.config.cjs b/prettier.config.js similarity index 60% rename from prettier.config.cjs rename to prettier.config.js index 6cfb5a8..11f5300 100644 --- a/prettier.config.cjs +++ b/prettier.config.js @@ -1,7 +1,8 @@ -module.exports = { +/** @type {import("prettier").Config} */ +export default { semi: false, singleQuote: true, - plugins: [require.resolve('prettier-plugin-astro')], + plugins: ['prettier-plugin-astro'], overrides: [ { files: '*.astro', From 4940cc0c8fec7424348f896905e39197ef0c09b3 Mon Sep 17 00:00:00 2001 From: Ciffelia Date: Tue, 5 Dec 2023 18:04:31 +0900 Subject: [PATCH 4/4] format --- src/pages/blog/authors/[slug]/index.astro | 8 ++++---- src/pages/blog/tags/[slug]/index.astro | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pages/blog/authors/[slug]/index.astro b/src/pages/blog/authors/[slug]/index.astro index eef02e9..ef85058 100644 --- a/src/pages/blog/authors/[slug]/index.astro +++ b/src/pages/blog/authors/[slug]/index.astro @@ -22,10 +22,10 @@ const ogpPath = author.data.github ? `https://github.com/${author.data.github}.png` : author.data.image.type === 'svg' - ? `/authors/${author.id}/ogp.png` - : author.data.image.type === 'external-url' - ? author.data.image.url - : unreachable(author.data.image) + ? `/authors/${author.id}/ogp.png` + : author.data.image.type === 'external-url' + ? author.data.image.url + : unreachable(author.data.image) const isShowAboutSection = author.data.description || author.data.github --- diff --git a/src/pages/blog/tags/[slug]/index.astro b/src/pages/blog/tags/[slug]/index.astro index 6e004b3..9420589 100644 --- a/src/pages/blog/tags/[slug]/index.astro +++ b/src/pages/blog/tags/[slug]/index.astro @@ -28,8 +28,8 @@ const isShowAbout = tag.description || tag.site || tag.document || tag.github image={tag.image.type === 'svg' ? `/blog/tags/${id}/ogp.png` : tag.image.type === 'external-url' - ? tag.image.url - : unreachable(tag.image)} + ? tag.image.url + : unreachable(tag.image)} summarySize="summary" >