Skip to content

Commit ec785c4

Browse files
committed
Set up editorconfig
1 parent 0a21541 commit ec785c4

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.editorconfig

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
indent_style = space
7+
indent_size = 4
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
end_of_line = lf
11+
charset = utf-8
12+
tab_width = 4
13+
max_line_length = 120
14+
15+
# Use 2 spaces for the HTML files
16+
[*.html]
17+
indent_size = 2
18+
19+
# The JSON files contain newlines inconsistently
20+
[*.json]
21+
indent_size = 2
22+
23+
# Minified JavaScript files shouldn't be changed
24+
[**.min.js]
25+
26+
# Makefiles always use tabs for indentation
27+
[Makefile]
28+
indent_style = tab
29+
30+
# Batch files use tabs for indentation
31+
[*.bat]
32+
indent_style = tab
33+
34+
[*.md]
35+
trim_trailing_whitespace = false
36+
37+
[*.{yaml,yml}]
38+
indent_size = 2

0 commit comments

Comments
 (0)