Last 12 weeks · 0 commits
5 of 6 standards met
Summary When a `prettier-plugin-astro.astro@reference@apply&:global()cssprettier-plugin-astroprettier.astroprettier --check@apply:global()@reference{ / comment / }lang === undefinedembedStylewrapParserTryCatchcssscsslessembedStyleembedStylecssscsslessundefinedUnexpectedNodeErrorSyntaxError: Unexpected tokenembedStyletextToDocpnpm patchpatch-packageembedStyleUnexpectedNodeError` crashes.
Changes Previously we’d omit the before the closing of the last child of a block parent. But if that child doesn’t fit on one line, neither does the parent, so we add a line break before the parent’s closing tag. Then on a second formatting run, that child won’t be the last child anymore, and the second result will be different. Remove this unnecessary special case so we jump directly to the final result in one step. Fixes #457. Testing Added tests from #457. All other tests still pass. Docs This is a bug fix only. Code that was stable under previous formatting will stay unchanged.
Repository: withastro/prettier-plugin-astro. Description: Prettier plugin for Astro Stars: 603, Forks: 45. Primary language: TypeScript. Languages: TypeScript (92.8%), JavaScript (7.2%). Topics: astro, formatter, plugin, prettier. Latest release: v0.14.1 (1y ago). Open PRs: 4, open issues: 35. Last activity: 8mo ago. Community health: 87%. Top contributors: jasikpark, Princesseuh, dependabot[bot], github-actions[bot], antonyfaris, drwpow, alex-grover, delucis, nylexar-sudo, natemoo-re and others.