GitShow/withastro/prettier-plugin-astro
withastro

prettier-plugin-astro

Prettier plugin for Astro

by withastro
astroformatterpluginprettier
Star on GitHubForknpm

TypeScript

603 stars45 forks34 contributorsQuiet · 8mo agoSince 2021v0.14.1

Meet the team

See all 34 on GitHub →
jasikpark
jasikpark65 contributions
Princesseuh
Princesseuh63 contributions
dependabot[bot]Bot
dependabot[bot]49 contributions
github-actions[bot]Bot
github-actions[bot]39 contributions
antonyfaris
antonyfaris21 contributions
drwpow
drwpow5 contributions
alex-grover
alex-grover2 contributions
delucis
delucis2 contributions

Languages

View on GitHub →
TypeScript92.8%
JavaScript7.2%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

5 of 6 standards met

Community profile →
87
✓README✓License✓Contributing✓Code of Conduct○Issue Template✓PR Template

Recent PRs & issues

Quiet · Last activity 8mo ago
See all on GitHub →
hasparus
A single unformattable <style> block aborts formatting of the whole file (Tailwind v4 @reference/@apply/nesting)OpenIssue

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.

hasparus · 17h ago
andersk
fix: format long last child of block parent idempotentlyOpenPR

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.

andersk · 2w ago
andersk
🐛 BUG: Non-idempotency on `<p><em>aaa…aaa</em></p>`OpenIssue

Describe the Bug Steps to Reproduce

andersk · 2w ago

Recent fixes

View closed PRs →
kitschpatrol
Fix conditional script tag formattingMergedPR

WIP... https://github.com/withastro/prettier-plugin-astro/issues/452 https://github.com/withastro/prettier-plugin-astro/issues/454

kitschpatrol · 2mo ago
Structured data for AI agents

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.

·@ofershap

Replace github.com with gitshow.dev