-
-
Notifications
You must be signed in to change notification settings - Fork 44
/
.editorconfig
68 lines (54 loc) · 1.32 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
# 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
[*.py]
indent_size = 4
# 88 is the default for black formatter
# 79 is PEP8's recommendation
# 119 is django's recommendation
max_line_length = 88
[*.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
[*.java]
# try to align with https://github.com/diffplug/spotless (https://github.com/google/google-java-format)
indent_size = 4
max_line_length = 100
# 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