-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Expand file tree
/
Copy path.editorconfig
More file actions
25 lines (22 loc) · 588 Bytes
/
Copy path.editorconfig
File metadata and controls
25 lines (22 loc) · 588 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
# Top-most EditorConfig file
root = true
# Every file should according to these default configurations if not specified
[*]
# Use UNIX-style line endings
end_of_line = LF
# Use utf-8 file encoding
charset = utf-8
# 4 space indent
indent_style = space
indent_size = 4
# Ensure file ends with a newline when saving(prevent `no newline at EOF`)
insert_final_newline = true
# Remove any whitespace characters preceding newline characters
trim_trailing_whitespace = true
# For YAML
[*.{yml,yaml}]
indent_size = 2
# For Go files
[*.go]
# `gofmt` uses tabs for indentation
indent_style = tab