Skip to content

Commit 9010926

Browse files
Add .editorconfig with common settings for consistent coding styles
Co-authored-by: kimchanhyung98 <60088641+kimchanhyung98@users.noreply.github.com>
1 parent 6b7b4d7 commit 9010926

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.editorconfig

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# EditorConfig helps maintain consistent coding styles across various editors and IDEs
2+
# https://editorconfig.org
3+
4+
root = true
5+
6+
# Default settings for all files
7+
[*]
8+
end_of_line = lf
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
charset = utf-8
12+
indent_style = space
13+
indent_size = 4
14+
15+
# Makefile requires tab indentation
16+
[Makefile]
17+
indent_style = tab
18+
19+
# Shell scripts
20+
[*.sh]
21+
indent_style = space
22+
indent_size = 4
23+
24+
# JSON files
25+
[*.json]
26+
indent_style = space
27+
indent_size = 2
28+
29+
# YAML files
30+
[*.{yml,yaml}]
31+
indent_style = space
32+
indent_size = 2
33+
34+
# Markdown files
35+
[*.md]
36+
trim_trailing_whitespace = false

0 commit comments

Comments
 (0)