Skip to content

Commit 1bedb0f

Browse files
authored
Enforce line endings at save and on commit (#144)
1 parent bc92307 commit 1bedb0f

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
8+
[*.bat]
9+
end_of_line = crlf
10+
11+
[*.cmd]
12+
end_of_line = crlf

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
* text=auto eol=lf
2+
3+
*.bat text eol=crlf
4+
*.cmd text eol=crlf

0 commit comments

Comments
 (0)