EditorConfig
https://editorconfig.org/logo.png
https://editorconfig.org/
ホームディレクトリにおいておくとだいたい間違いないやつ。
効果を発揮させるには使ってるエディタに EditorConfig の拡張を入れること。
code:.editorconfig
root = true
*
indent_size = 2
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
Makefile
indent_style = tab
*.php
indent_size = 4
*.md
trim_trailing_whitespace = false