You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From what I understand, prettier uses this package to format yaml files but the default it formats by given children the same indentation as their parent.
parent:
- child: 1
- child: 2
But I would like the format to indent all children:
parent:
- child: 1
- child: 2
Is there a flag for this? Or is this specific to the the prettier project.
For reference, I want to use this project for autoformatting but maintain the behavior of yaml_formatter_indent_collection flag in the vim-yaml-formatter
The text was updated successfully, but these errors were encountered:
There is not yet a flag for the indent formatting, but it would be a good idea. Prettier uses the lower-level CST API of this library, and builds their own formatter on top of that.
From what I understand,
prettier
uses this package to formatyaml
files but the default it formats by given children the same indentation as their parent.But I would like the format to indent all children:
Is there a flag for this? Or is this specific to the the
prettier
project.For reference, I want to use this project for autoformatting but maintain the behavior of
yaml_formatter_indent_collection
flag in the vim-yaml-formatterThe text was updated successfully, but these errors were encountered: