; EditorConfig is awesome: https://EditorConfig.org ;top-most EditorConfig file root = true ; Ruby style as default ; UTF-8 charset ; Unix-style newlines with a newline ending every file ; 2 space indent ; Trim trailing whitespace [*] indent_style = space indent_size = 2 end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true ; Markdown ; 4 space indent ; Trailing whitespace is potentially meaningful, leave it [*.md] indent_size = 4 trim_trailing_whitespace = false ; Shell scripts & Python ; 4 space indent [*.{sh,py}] indent_size = 4 [Makefile] indent_style = tab ; The JSON files contain newlines inconsistently [*.json] insert_final_newline = ignore [*.{ps1,psm1}] indent_size = 4