Skip to content

Commit 2914752

Browse files
committed
formatting: Create a .editorconfig to nudge more consistent formatting
I checked all hand written text file extensions in use and most of them already use 4 space indent majorly. The only exceptions are *.sh, which is a wild chaos were any arbitrary decision will do, and *.nix where two space indenting is prevalent in the Nix community (i.e., Nixpkgs). See https://editorconfig.org/ for the specification and the goals of `.editorconfig` files.
1 parent e73e1ce commit 2914752

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
root = true
2+
3+
# We let Git handle end_of_line such that this setting is effectively platform
4+
# dependent but still normalized in the Git store. See .gitattributes
5+
6+
[*]
7+
charset = utf-8
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
indent_style = space
11+
indent_size = 4
12+
13+
[*.nix]
14+
indent_size = 2

0 commit comments

Comments
 (0)