-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.editorconfig
More file actions
133 lines (83 loc) · 1.69 KB
/
.editorconfig
File metadata and controls
133 lines (83 loc) · 1.69 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# Editor config standardizes the settings for programming languages for all editors.
#
# VScode : https://marketplace.visualstudio.com/items/?itemName=EditorConfig.EditorConfig
#
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
trim_trailing_whitespace = true
indent_size = 4
#| Shell scripts – 2-space is typical
[*.sh]
indent_size = 2
[*.bash]
indent_size = 2
#| Markdown – 2-space is typical and trailing whitespace must be kept
[*.md]
trim_trailing_whitespace = false
indent_size = 2
#| C / C++ – 4-space is typical
[*.c]
indent_size = 4
[*.cpp]
indent_size = 4
[*.h]
indent_size = 4
#| JS(X) / TS(X) / JSON – 2-space is typical
[*.json]
indent_size = 2
[*.js]
indent_size = 2
[*.ts]
indent_size = 2
[*.tsx]
indent_size = 2
[*.jsx]
indent_size = 2
#| CSS / SCSS / Less – 2-space is typical
[*.css]
indent_size = 2
[*.scss]
indent_size = 2
[*.less]
indent_size = 2
#| HTML / XML – 2-space is typical
[*.html]
indent_size = 2
[*.xml]
indent_size = 2
#| YAML / TOML – 2-space is typical
[*.yml]
indent_size = 2
[*.yaml]
indent_size = 2
[*.toml]
indent_size = 2
#| Go / Makefile – tabs only
[*.go]
indent_style = tab
[Makefile]
indent_style = tab
#| Rust – 2-space is typical
[*.rs]
indent_size = 2
#| Nix – 2-space is typical
[*.nix]
indent_size = 2
#| Lock files and Licence files are generated and should not be checked
[*.lock]
charset = unset
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
[LICENSE]
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
[LICENSE*]
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset