Skip to content

fix: Make plugin.json prettier-stable after release-please bumps#68

Merged
matz3 merged 1 commit into
mainfrom
fix-prettier-plugin-json
Jun 3, 2026
Merged

fix: Make plugin.json prettier-stable after release-please bumps#68
matz3 merged 1 commit into
mainfrom
fix-prettier-plugin-json

Conversation

@matz3
Copy link
Copy Markdown
Member

@matz3 matz3 commented Jun 3, 2026

release-please's JSON updater re-stringifies the file with JSON.stringify(obj, null, indent), which always expands arrays to multi-line. The inline "skills": ["./skills/"] in plugin.json was therefore reformatted to multi-line on every release, and the subsequent prettier:check failed because prettier collapsed it again.

Switch the prettier parser to json-stringify for **/plugin.json (same parser prettier already uses for package.json), which keeps every array multi-line — matching what release-please produces. Reformat the four plugin.json files in source so the check passes today.

release-please's JSON updater re-stringifies the file with
JSON.stringify(obj, null, indent), which always expands arrays to
multi-line. The inline "skills": ["./skills/"] in plugin.json was
therefore reformatted to multi-line on every release, and the
subsequent prettier:check failed because prettier collapsed it again.

Switch the prettier parser to json-stringify for **/plugin.json (same
parser prettier already uses for package.json), which keeps every array
multi-line — matching what release-please produces. Reformat the four
plugin.json files in source so the check passes today.
@matz3 matz3 merged commit d6f3783 into main Jun 3, 2026
7 checks passed
@matz3 matz3 deleted the fix-prettier-plugin-json branch June 3, 2026 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants