.editorconfigを最小限の設定でリポジトリに入れる

先日、RuboCop JP に立てた Issue に pocke さんが回答してくれた話の流れのひとつで、.editorconfig を Rails アプリケーションのリポジトリで管理することにした。

github.com

プログラミング言語やスタイルといった部分を差し引いた、最小のスタートケースでの適用はこんなところだと思っている。

# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true