Skip to content

Commit 7855301

Browse files
authored
chore: ensure consistent line endings (#659)
Adds editorconfig to keep our editors ending lines with LF and .gitattributes to get git to ensure LF line endings when the editor doesn't. License: MIT Signed-off-by: Oli Evans <[email protected]>
1 parent 85044b8 commit 7855301

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.editorconfig

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# top-most EditorConfig file
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
indent_size = 2
8+
indent_style = space
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
12+
[Makefile]
13+
indent_style = tab
14+
15+
[*.md]
16+
trim_trailing_whitespace = false

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto

0 commit comments

Comments
 (0)