Skip to content

Commit 5ea4412

Browse files
authored
chore: add editorconfig (#24)
1 parent 3af42b9 commit 5ea4412

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.editorconfig

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
# Unix-style newlines at the bottom of every file
8+
end_of_line = lf
9+
charset = utf-8
10+
11+
# indentation style and size
12+
indent_style = space
13+
indent_size = 2
14+
15+
# Make sure every file has a blank line at the end
16+
insert_final_newline = true
17+
18+
# Remove any whitespace characters preceding newline characters
19+
trim_trailing_whitespace = true
20+
21+
# Give operators breathing room, but not brackets
22+
spaces_around_operators = true
23+
spaces_around_brackets = false
24+
25+
# 4 space indentation
26+
[*.{py,java}]
27+
indent_size = 4
28+
29+
[*.json]
30+
indent_size = 4
31+
32+
# 2 space indentation
33+
[*.{js,html}]
34+
indent_size = 2
35+
36+
[*.{tf}]
37+
indent_size = 2
38+
39+
[*.rb]
40+
indent_size = 2
41+
42+
[*.yml]
43+
indent_size = 2
44+
45+
[*.yaml]
46+
indent_size = 2
47+
48+
[*.{md}]
49+
indent_size = unset
50+
trim_trailing_whitespace = false

0 commit comments

Comments
 (0)