From a6d794000ab5ee77ffe3f0d26d33de0447550442 Mon Sep 17 00:00:00 2001 From: Max Schmidt Date: Tue, 15 Aug 2023 21:06:28 +0200 Subject: [PATCH] add astro prettier plugin Signed-off-by: Max Schmidt --- astro/package.json | 1 + astro/src/layouts/Layout.astro | 30 +++++++++++++++--------------- astro/yarn.lock | 15 ++++++++++++--- 3 files changed, 28 insertions(+), 18 deletions(-) diff --git a/astro/package.json b/astro/package.json index 3e91bb2..e881481 100644 --- a/astro/package.json +++ b/astro/package.json @@ -21,6 +21,7 @@ }, "devDependencies": { "prettier": "^3.0.2", + "prettier-plugin-astro": "^0.11.1", "prettier-plugin-tailwindcss": "^0.5.3" } } diff --git a/astro/src/layouts/Layout.astro b/astro/src/layouts/Layout.astro index 0d06c22..dd53cbd 100644 --- a/astro/src/layouts/Layout.astro +++ b/astro/src/layouts/Layout.astro @@ -18,22 +18,22 @@ const { title } = Astro.props; - - + + diff --git a/astro/yarn.lock b/astro/yarn.lock index aa22fd4..bfee50f 100644 --- a/astro/yarn.lock +++ b/astro/yarn.lock @@ -20,7 +20,7 @@ "@jridgewell/gen-mapping" "^0.3.0" "@jridgewell/trace-mapping" "^0.3.9" -"@astrojs/compiler@^1.0.1", "@astrojs/compiler@^1.4.2", "@astrojs/compiler@^1.8.0": +"@astrojs/compiler@^1.0.1", "@astrojs/compiler@^1.4.2", "@astrojs/compiler@^1.5.5", "@astrojs/compiler@^1.8.0": version "1.8.1" resolved "https://registry.yarnpkg.com/@astrojs/compiler/-/compiler-1.8.1.tgz#43575b1a35b16cb8ffe56792870b00e5306c673f" integrity sha512-C28qplQzgIJ+JU9S+1wNx+ue2KCBUp0TTAd10EWAEkk4RsL3Tzlw0BYvLDDb4KP9jS48lXmR4/1TtZ4aavYJ8Q== @@ -3368,6 +3368,15 @@ preferred-pm@^3.0.3: path-exists "^4.0.0" which-pm "2.0.0" +prettier-plugin-astro@^0.11.1: + version "0.11.1" + resolved "https://registry.yarnpkg.com/prettier-plugin-astro/-/prettier-plugin-astro-0.11.1.tgz#4b56671f25b94dbfef1c384aba1be46b6d1367d2" + integrity sha512-28sf624jQz9uP4hkQiRPRVuG1/4XJpnS6DfoXPgeDAeQ+eQ1o21bpioUbxze57y2EN+BCHeEw6x3a1MhM08Liw== + dependencies: + "@astrojs/compiler" "^1.5.5" + prettier "^3.0.0" + sass-formatter "^0.7.6" + prettier-plugin-astro@^0.9.1: version "0.9.1" resolved "https://registry.yarnpkg.com/prettier-plugin-astro/-/prettier-plugin-astro-0.9.1.tgz#237d2f536d66501c3a351614c43c2372baca7411" @@ -3388,7 +3397,7 @@ prettier@^2.8.3, prettier@^2.8.8: resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da" integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q== -prettier@^3.0.2: +prettier@^3.0.0, prettier@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.2.tgz#78fcecd6d870551aa5547437cdae39d4701dca5b" integrity sha512-o2YR9qtniXvwEZlOKbveKfDQVyqxbEIWn48Z8m3ZJjBjcCmUy3xZGIv+7AkaeuaTr6yPXJjwv07ZWlsWbEy1rQ== @@ -3672,7 +3681,7 @@ safe-buffer@^5.0.1, safe-buffer@~5.2.0: resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== -sass-formatter@^0.7.5: +sass-formatter@^0.7.5, sass-formatter@^0.7.6: version "0.7.7" resolved "https://registry.yarnpkg.com/sass-formatter/-/sass-formatter-0.7.7.tgz#13159083a1ca3a752a537ad25fe1b66e16a4a1d2" integrity sha512-axtQ7c7Cf4UgHsD8e4okhIkkc90+tdgBIfUMx69+qJuMNq9EOo2k+RH/mDKj0XeA5z3nC1Ca5TCntuxRhI+1MA==