Skip to content

Commit 120a107

Browse files
committed
Add .editorconfig
Add .editorconfig file containing the editor configurations for common source files. Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
1 parent 3765014 commit 120a107

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.editorconfig

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# EditorConfig: https://editorconfig.org/
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# All (Defaults)
7+
[*]
8+
charset = utf-8
9+
end_of_line = lf
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
max_line_length = 100
13+
14+
# Git commit messages
15+
[COMMIT_EDITMSG]
16+
max_line_length = 75
17+
18+
# Dockerfile
19+
[Dockerfile*]
20+
indent_style = tab
21+
indent_size = 8
22+
23+
# Shell Script
24+
[*.sh]
25+
indent_style = space
26+
indent_size = 2
27+
28+
# YAML
29+
[*.{yml,yaml}]
30+
indent_style = space
31+
indent_size = 2

0 commit comments

Comments
 (0)