til

Today I Learned: collection of notes, tips and tricks and stuff I learn from day to day working with computers and technology as an open source contributor and product manager

View project on GitHub

EditorConfig for YAML

I am using the basic EditorConfig configuration for YAML files.

[*.{yml,yaml}]
indent_style = space
indent_size = 2
insert_final_newline = true
  • insert_final_newline

Non-empty YAML files should end with a newline🔗 There are some edge cases where different YAML parsers will disagree on the meaning of a YAML file when it doesn’t end with a newline.

It’s best to end your YAML files with a newline. Most editors can be configured to add a newline at the end of the file.

Do it.

References