-
Notifications
You must be signed in to change notification settings - Fork 3
/
.editorconfig
56 lines (44 loc) · 1.03 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
# https://editorconfig.org/
root = true
[*]
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf
charset = utf-8
[*.conf]
indent_size = 2
[*.md]
#inside code block, indentation could be anything
indent_size = unset
[*.rs]
# https://github.com/rust-dev-tools/fmt-rfcs/blob/master/guide/guide.md
indent_size = 4
# officially the limit is 100, but we have long url (unsplittable) in comment
max_line_length = 200
[{*.bazel,*.bzl,BUILD,WORKSPACE}]
indent_size = 4
# The JSON files contain newlines inconsistently
[*.json]
insert_final_newline = unset
[**/vendor/**]
indent_style = unset
indent_size = unset
insert_final_newline = unset
# Minified JavaScript files shouldn't be changed
[**.min.js]
indent_style = unset
indent_size = unset
insert_final_newline = unset
# Makefiles always use tabs for indentation
[Makefile]
indent_style = tab
indent_size = 4
[justfile]
indent_style = space
indent_size = 4
# Batch files use tabs for indentation
[*.bat]
indent_style = tab
indent_size = 4