Skip to content

Commit 891138c

Browse files
committed
chore: add .editorconfig for consistent code style
Introduce a top-level .editorconfig file to enforce consistent indentation, line endings, charset, and whitespace handling across editors. Special rules are included for Markdown files and Makefiles to accommodate their formatting requirements.
1 parent b3d4823 commit 891138c

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.editorconfig

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
; EditorConfig is awesome: http://EditorConfig.org
2+
3+
; top-most EditorConfig file
4+
root = true
5+
6+
; base rules
7+
[*]
8+
indent_style = space
9+
indent_size = 2
10+
end_of_line = lf
11+
charset = utf-8
12+
trim_trailing_whitespace = true
13+
insert_final_newline = true
14+
15+
; Dont remove trailing whitespace from markdown
16+
; files since it messes up newlines
17+
[*.md]
18+
trim_trailing_whitespace = false
19+
20+
; Make does not work without tabs
21+
[Makefile]
22+
indent_style = tab

0 commit comments

Comments
 (0)