.editorconfig file template

root = true

[*]
indent_style = tab
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
indent_style = space
indent_size = 2
trim_trailing_whitespace = false

[*.rb]
indent_style = space
indent_size = 2

donwload template file

curl https://www.ndxbn.tokyo/editorconfig/editorconfig -O .editorconfig