-
Notifications
You must be signed in to change notification settings - Fork 1
/
.editorconfig
57 lines (45 loc) · 1.13 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
55
56
57
# # Space or Tabs?
# https://stackoverflow.com/questions/35649847/objective-reasons-for-using-spaces-instead-of-tabs-for-indentation
# https://stackoverflow.com/questions/12093748/how-to-use-tabs-instead-of-spaces-in-a-shell-script
#
# Note: VIM users should use alternate marks [[[ and ]]] as the original ones can confuse nested substitutions, e.g.: ${${${VAR}}}
#
# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
# vim: ft=zsh sw=2 ts=2 et
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[**.{md,rst}]
trim_trailing_whitespace = false
[*.{sh,bash,zsh,fish}]
indent_style = space
indent_size = 2
tab_width = 2
[Makefile]
indent_style = tab
indent_size = 4
[*.{xml,json}]
indent_style = space
indent_size = 2
[*.{css,less}]
indent_style = space
indent_size = 2
[*.{js,jsx,html,sass}]
indent_style = tab
indent_size = 4
[*.{py,rb}]
indent_style = space
indent_size = 4
[*.{go,java,scala,groovy,kotlin}]
indent_style = tab
indent_size = 4
[*.{yml,yaml}]
indent_style = space
indent_size = 2
tab_width = 2
[CHANGELOG.md]
indent_style = tab
indent_size = 4