-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.editorconfig
More file actions
97 lines (78 loc) · 2.05 KB
/
.editorconfig
File metadata and controls
97 lines (78 loc) · 2.05 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
root = true
############################################################
# Repository-wide defaults
############################################################
[ * ]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
max_line_length = 120
############################################################
# Go files - use tabs (gofmt/gofumpt will canonicalize formatting)
############################################################
[*.go]
indent_style = tab
tab_width = 4
[go.mod]
indent_style = tab
tab_width = 4
[go.sum]
indent_style = tab
tab_width = 4
############################################################
# Makefiles must keep tabs
############################################################
[Makefile]
indent_style = tab
############################################################
# Shell scripts (sh/bash/zsh)
############################################################
[*.sh]
indent_style = space
indent_size = 2
[*.bash]
indent_style = space
indent_size = 2
[*.zsh]
indent_style = space
indent_size = 2
############################################################
# JSON / JSONC / YAML / TOML / INI / XML and other config
############################################################
[*.json]
indent_style = space
indent_size = 2
[*.jsonc]
indent_style = space
indent_size = 2
[*.yml]
indent_style = space
indent_size = 2
[*.yaml]
indent_style = space
indent_size = 2
[*.toml]
indent_style = space
indent_size = 2
[*.ini]
indent_style = space
indent_size = 2
[*.xml]
indent_style = space
indent_size = 2
############################################################
# Markdown and text files
############################################################
[*.md]
trim_trailing_whitespace = false
max_line_length = 100
[README.md]
trim_trailing_whitespace = false
############################################################
# Binary / vendor / build artifacts (no formatting)
############################################################
[*.min.*]
trim_trailing_whitespace = false
[vendor/**]
trim_trailing_whitespace = false