Skip to content

Commit cd952bc

Browse files
Merge pull request #11 from kimchanhyung98/copilot/add-common-editorconfig-file
chore(config): add .editorconfig for consistent coding styles
2 parents c04345e + c3f793c commit cd952bc

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.editorconfig

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
# JSON files
20+
[*.json]
21+
indent_style = space
22+
indent_size = 2
23+
24+
# YAML files
25+
[*.{yml,yaml}]
26+
indent_style = space
27+
indent_size = 2
28+
29+
# Markdown files
30+
[*.md]
31+
trim_trailing_whitespace = false

0 commit comments

Comments
 (0)