EditorConfig is cool.

Applying EditorConfig settings to all files in a directory

DO NOT use the editorconfig-tools fix command, it will mess up and truncate files seemingly randomly.