-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.editorconfig
84 lines (70 loc) · 1.57 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# 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 = 80
[*.md]
trim_trailing_whitespace = true
insert_final_newline = true
[*.js]
quote_type = single
indent_size = 4
[*.json]
indent_style = space
indent_size = 2
max_line_length = 140
[Makefile]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = tab
tab_width = 2
# indent_size = 2
[{.github/workflows/*.yml, .github/workflows/*.yaml}]
indent_style = space
indent_size = 4
max_line_length = 140
[*.yml]
indent_style = space
indent_size = 2
max_line_length = 140
[*.yaml]
indent_style = space
indent_size = 2
max_line_length = 140
# [{*.json,*.json.example,*.gyp,*.yml,*.yaml}]
# indent_style = space
# indent_size = 2
# [*.rs]
# end_of_line = lf
# charset = utf-8
# trim_trailing_whitespace = true
# insert_final_newline = true
# # indent_style = space
# # indent_size = 4
[*.go]
indent_style = tab
indent_size = 4
# Matches the exact files either package.json or .travis.yml
[{package.json,.travis.yml}]
indent_style = space
indent_size = 2
[*.sh]
# like -i=4
indent_style = space
indent_size = 2
shell_variant = bash # 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