Skip to content

Commit

Permalink
Standardise newline and trailing whitespace conventions
Browse files Browse the repository at this point in the history
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/
  • Loading branch information
moreati committed May 11, 2020
1 parent 39cb2c1 commit c32ea10
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# https://editorconfig.org/

[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_newspace = true

0 comments on commit c32ea10

Please sign in to comment.