-
Notifications
You must be signed in to change notification settings - Fork 2
/
.editorconfig
54 lines (44 loc) · 1.26 KB
/
.editorconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
root = true
# Unix-style newlines with a newline ending every file
# with no excess whitespace ending lines, no indentation preference.
[*]
charset = utf8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
# 2 spaces for list indenting, 2 'tabs' for code blocks if not fenced.
# Don't trim line whitespace as it's significant in markdown.
[*.md]
trim_trailing_whitespace = false
indent_style = space
indent_size = 2
[*.{yaml,yml}]
indent_style = space
indent_size = 2
# A personal preference for hybrid indentation in sources I generate:
# Tabs for indent, spaces for alignment. It's the typeographer in me.
# Tab width of 3 is my 'Goldilocks' zone of indentation and until I can grep
# indention spaces explicitly, Tabs it will be. Opinionated? Absolutely!
[*.{coffee,js,JavaScript,json,es6}]
indent_style = tab
indent_size = 3
[*.{py,go}]
indent_style = tab
indent_size = 3
[*.{c,h,ino,cpp}]
indent_style = tab
indent_size = 3
[*.{fish,sh,pl}]
indent_style = tab
indent_size = 4
[package.json]
insert_final_newline = false
indent_style = space
indent_size = 2
[.eslintrc.{js,json}]
indent_style = space
indent_size = 2
# 2 space indents when required. rc's should really be in package.json
[{.esformatter,.jshintrc}]
indent_style = space
indent_size = 2