Improve xml prettyfier #224
Labels
enhancement
New feature or request
no stale
Use this label to prevent the automated stale action from closing this PR/Issue.
prettier's xml pluggin now supports a much better XML autoformatting mode. See prettier/plugin-xml#138 (comment).
Below are my findings on how to make it work.
You need a
.prettierrc.cjs
instead of.prettierrc.yml
, so prettier can load the plugin even when run from pre-commit:And the pre-commit config needs to be adapted like so:
The text was updated successfully, but these errors were encountered: