Ideally, a configuration file should be easy to read and write/modify by a user of the application. A lot of applications just stick with ini like formats because it meets both requirements.
If anything, YAML is harder to read because the indentation is important, yet deliberately invisible.
Whitespace with inconsistent rules is awful.
I really struggle to write yaml. I end up writing it as json and converting it. I agree about ini though.
Since valid JSON is also valid YAML with the same semantics, it is impossible for it to be harder to write YAML than JSON, and no conversion is necessary.
* C++ - Boost.JSON/RapidJSON/DAW JSONLink have options for both, nlohmann has an option to allow comments
* Python, I only know doing it via jsmin first
* Javascript, use jsmin also
These are the ones I have used or seen. It comes up so often that parser writers get issues over and over until they support them. nlohmann did not for years. But people want them for config files and such. Them being an extension is nice in that they are not officially supported and how they are handled isn't specified.