Check your YAML parses, and print it with consistent indentation.
The YAML is parsed first, including multi document files, and the first syntax error is reported with its line and column. If it parses, Prettier prints it with uniform indentation, normalized quoting and consistent spacing in flow sequences, while comments are kept.
Indentation errors are the most frequent YAML problem, since tabs are not allowed and a single misplaced space changes meaning. Formatting makes that structure visible.
The specification only allows spaces for indentation, because tabs render differently in different editors and would make the structure ambiguous.
Yes. The formatter preserves comments, unlike a conversion through JSON.
Use the JSON to YAML Converter and switch the direction to YAML to JSON.