Skip to content

Commit f905d40

Browse files
committed
cfg: add .editorconfig
1 parent 8b8e38d commit f905d40

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.editorconfig

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = false
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
trim_trailing_whitespace = true
9+
end_of_line = lf
10+
insert_final_newline = true
11+
charset = utf-8
12+
indent_style = space
13+
indent_size = 4
14+
15+
# 4 space indentation
16+
[*.py]
17+
indent_style = space
18+
indent_size = 4
19+
20+
# Tab indentation (no size specified)
21+
[Makefile]
22+
indent_style = tab
23+
24+
# Matches the exact files either package.json or .travis.yml
25+
[*.{json,yml,yaml,toml}]
26+
indent_style = space
27+
indent_size = 2

0 commit comments

Comments
 (0)