-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy path.editorconfig
More file actions
56 lines (49 loc) · 1.16 KB
/
.editorconfig
File metadata and controls
56 lines (49 loc) · 1.16 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
# EditorConfig - Ensures consistent coding styles across editors and IDEs
# https://editorconfig.org
root = true
# Swift files
[*.swift]
charset = utf-8
indent_style = space
indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = false # CRITICAL: Preserve whitespace on blank lines
max_line_length = 140
# YAML files (Fastlane, workflows, configs)
[*.{yml,yaml}]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
# JSON files (Xcode assets, configs)
[*.json]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
# Markdown files
[*.md]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = false # Preserve trailing spaces (used for line breaks)
# Makefiles (MUST use tabs)
[Makefile]
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true
# Shell scripts
[*.sh]
charset = utf-8
indent_style = space
indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true