Standardise newline and trailing whitespace conventions

This change aims to reduce incidental changes in pull requests caused by
configuration and UI differences in text editors. The chosen conventions
are

- unix line endings
- trim trailing whitespace
- terminate files with a newline

editorconfig is an informal convention that indicates preferred line and
file terminations to text editors and other tools. Several editors have
builtin support, and many more have plugins available.

More info at https://editorconfig.org/
This commit is contained in:
Alex Willmer 2020-05-11 20:31:59 +01:00
parent 39cb2c1eb0
commit c32ea10fca
1 changed files with 6 additions and 0 deletions

6
.editorconfig Normal file
View File

@ -0,0 +1,6 @@
# https://editorconfig.org/
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_newspace = true