-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.editorconfig
More file actions
39 lines (32 loc) · 868 Bytes
/
.editorconfig
File metadata and controls
39 lines (32 loc) · 868 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
# EditorConfig - https://editorconfig.org
root = true
# Default: 2-space indent, UTF-8, LF, trim trailing whitespace
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2
# Python: 4-space indent, 88-char line (Black)
[*.py]
indent_size = 4
max_line_length = 88
# Go and Make: tabs
[*.go]
indent_style = tab
indent_size = 4
[{Makefile,*.mk}]
indent_style = tab
indent_size = 4
# Markdown: preserve trailing whitespace (line breaks)
[*.{md,markdown}]
trim_trailing_whitespace = false
max_line_length = 120
# Windows batch files: CRLF
[*.{bat,cmd}]
end_of_line = crlf
# Binary files: no text transformations
[*.{gpg,asc,pgp,p12,pfx,cer,der,png,jpg,jpeg,gif,ico,webp,svg,zip,tar,gz,tgz,bz2,7z,rar,ttf,otf,woff,woff2,eot}]
insert_final_newline = false
trim_trailing_whitespace = false