Repository navigation
prettier-plugin-tailwindcssを0.8.1に更新 (#3 Step 2) - #7
Merged
Merged
Conversation
prettier-plugin-astro は 0.14.1 のまま据え置く。 v1 と prettier-plugin-tailwindcss 0.8.1 の組み合わせでは .astro の クラス並べ替えが動かず、修正(tailwindlabs/prettier-plugin-tailwindcss#473)が未リリースのため。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 26, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
#3 の Step 2 のうち、Prettier のプラグインの更新です。
Refs #3
変更内容
prettier-plugin-astro を据え置く理由
prettier-plugin-tailwindcss の CHANGELOG の Unreleased に「Restore class sorting in Astro templates when using
prettier-plugin-astrov1(#473)」とあります。実際に試したところ、組み合わせによって次のようになりました。.astroのクラス並べ替え#473 を含む prettier-plugin-tailwindcss がリリースされたら、prettier-plugin-astro を v1 に上げます。そのときは、Astro 側の
compressHTML: trueに合わせて、.prettierrc.mjsにastroCompressHTML: trueを指定する必要があります(v1 の CHANGELOG より)。確認したこと
.astro/.ts/.mjs/.css/.md)について、更新前後の Prettier の出力を比べたsrc/styles/global.cssの@plugin '@tailwindcss/typography'→@plugin "@tailwindcss/typography"の1か所だけ(0.7.0 で入った引用符の整形)pnpm install --frozen-lockfileとpnpm run buildが成功するファイルの整形はしていません(この PR はツールの更新だけです)。
🤖 Generated with Claude Code