-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Description
What problem does this address?
Follow-up for #30714.
I tested
npm run fixtures:regenerate
with all the formatting applied and it looks like it uses different formatting so definitely something to look at:![]()
It is not only
ranges
that is formatted differently but it also usesspaces
for indentation ...
Follow-up for #30715.
npx prettier --write **/*.md
doesn't play nicely withnpm run docs:build
. @nosolosw, is it possible to include formatting in the process of generating automated docs with@wordpress/docgen
or is better to run code formatting as the post-processing step inside the shell script we use?
What is your proposed solution?
It looks like npm run fixtures:regenerate
command conflicts with what npx prettier --write **/*.json
does for all JSON files. We should update npm run fixtures:regenerate
to produce output that is aligned with Prettier formatting.
npx prettier --write **/*.md
doesn't play nicely with npm run docs:build
. We should update @wordpress/docgen
to align both.