-
Notifications
You must be signed in to change notification settings - Fork 21
/
.editorconfig
57 lines (48 loc) · 1.1 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
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
tab_width = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
# max_line_length = 140
[*.md]
trim_trailing_whitespace = true
insert_final_newline = true
[*.json]
indent_style = space
indent_size = 2
max_line_length = 140
[{*.yml, *.yaml}]
indent_style = space
indent_size = 2
max_line_length = 140
# [{.github/workflows/*.yml, .github/workflows/*.yaml}]
# indent_style = space
# indent_size = 4
# max_line_length = 140
[*.sh]
# like -i=4
indent_style = space
indent_size = 2
shell_variant = sh # like -ln=posix
binary_next_line = true # like -bn
switch_case_indent = true # like -ci
space_redirects = true # like -sr
keep_padding = true # like -kp
#function_next_line = true # like -fn
[Makefile]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = tab
tab_width = 2
[*.go]
indent_style = tab
indent_size = 4