-
-
Notifications
You must be signed in to change notification settings - Fork 397
Expand file tree
/
Copy path.editorconfig
More file actions
46 lines (35 loc) · 830 Bytes
/
Copy path.editorconfig
File metadata and controls
46 lines (35 loc) · 830 Bytes
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
# EditorConfig is awesome: https://editorconfig.org
# top-most EditorConfig file
root = true
[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
# Swift — matches existing source files
[*.swift]
indent_size = 4
# Objective-C, C, C++ — matches .clang-format (IndentWidth: 4)
[*.{m,h,c,mm,cpp,cc,hpp}]
indent_size = 4
# Ruby — standard Ruby convention
[*.{rb,podspec}]
indent_size = 2
[{Gemfile,Fastfile,Matchfile,Appfile}]
indent_size = 2
# Shell — matches existing scripts
[*.sh]
indent_size = 4
# Python — PEP 8
[*.py]
indent_size = 4
# YAML — matches dprint.json (indentWidth: 2)
[*.{yml,yaml}]
indent_size = 2
# JSON — matches dprint.json (indentWidth: 2)
[*.json]
indent_size = 2
# Makefiles require tabs
[Makefile]
indent_style = tab