Instead of making people change their editor settings to contribute to phpBB, this plugin available in a tonne of editors enforces the settings without them having to be changed.
It's used in pretty much every front-end project I've worked with in ages (both Google Web Starter Kit and Bootstrap use it), and Symfony also uses it.
I propose the following .editorconfig:
Code: Select all
# EditorConfig is awesome: http://EditorConfig.org
root = true
[*]
end_of_line = lf
indent_size = 4
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true
[*.md]
trim_trailing_whitespace = false
[*.yml]
indent_size = 4
indent_style = space