Skip to content

Commit 0dacfa0

Browse files
committed
build: add .editorconfig
1 parent ca4ed2a commit 0dacfa0

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.editorconfig

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
2+
# EditorConfig is awesome: http://EditorConfig.org
3+
4+
# top-most EditorConfig file
5+
root = true
6+
7+
# Unix-style newlines with a newline ending every file
8+
[*]
9+
end_of_line = lf
10+
insert_final_newline = true
11+
12+
# Matches multiple files with brace expansion notation
13+
# Set default charset
14+
[*.{js,py}]
15+
charset = utf-8
16+
17+
# 4 space indentation
18+
[*.py]
19+
indent_style = space
20+
indent_size = 4
21+
22+
# Tab indentation (no size specified)
23+
[Makefile]
24+
indent_style = tab
25+
26+
# Indentation override for all JS under lib directory
27+
[*.{js,ts}]
28+
indent_style = space
29+
indent_size = 2
30+
31+
# Matches the exact files either package.json or .travis.yml
32+
[{package.json,.travis.yml}]
33+
indent_style = space
34+
indent_size = 2

0 commit comments

Comments
 (0)