forked from emissary-ingress/emissary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.editorconfig
67 lines (50 loc) · 1.39 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
root = true
[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
; JSON ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[*.json]
insert_final_newline = false
indent_style = space
indent_size = 4
[package.json]
; The various tools (npm, yarn, ...) that edit package.json files all
; seem to use 2-space indent, not 4.
indent_size = 2
; YAML ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[{*.yaml,*.yml}]
indent_style = space
indent_size = 2
; Python ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[*.py]
indent_style = space
indent_size = 4
; Flynn's style is to wrap things at 100 columns, so mimic that.
max_line_length = 100
; Go ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[*.go]
indent_style = tab
; mimic gofmt's go/printer.printer.funcBody().maxSize
max_line_length = 100
; mimic gofmt's cmd/gofmt.tabWidth
tab_width = 8
[{go.mod,go.sum}]
indent_style = tab
; Misc ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[{Makefile,*.mk}]
; If somehow this gets set to not-tab, then the resulting Makefile
; won't work.
indent_style = tab
[*.sh]
indent_style = space
indent_size = 4
[*.el]
indent_style = space
[*.js]
indent_style = tab
[*.md]
; Emacs markdown-mode gets mixed tabs/spaces wrong, and so I have zero
; faith that any other tool gets it right.
indent_style = space