Skip to content

Commit 33e165b

Browse files
committed
feat: standardize editor configs for cross-platform development
Signed-off-by: yuluo-yx <[email protected]>
1 parent b5e81f4 commit 33e165b

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.editorconfig

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
insert_final_newline = true
9+
indent_style = space
10+
indent_size = 2
11+
max_line_length = 80
12+
trim_trailing_whitespace = true
13+
14+
[*.{yml,yaml}]
15+
indent_style = space
16+
indent_size = 2
17+
18+
[*.md]
19+
insert_final_newline = false
20+
trim_trailing_whitespace = false
21+
22+
[Makefile]
23+
indent_style = tab

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
* text eol=lf

0 commit comments

Comments
 (0)