-
Notifications
You must be signed in to change notification settings - Fork 2
/
.editorconfig
42 lines (33 loc) · 991 Bytes
/
.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
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
# Universal defaults
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2
# Python files
[*.py]
indent_size = 4 # Python conventionally uses four spaces
# Markdown files (allow trailing whitespace for line breaks)
[*.md]
trim_trailing_whitespace = false
# Configuration files often have their own specified formats
[{*.json, *.yml, *.yaml, *.toml}]
indent_style = space
indent_size = 2
# HTML, CSS, and JavaScript/TypeScript
[{*.html, *.css, *.scss, *.js, *.jsx, *.ts, *.tsx}]
indent_size = 2
# Restrict trailing whitespace and ensure final newlines in shell scripts
[*.sh]
indent_size = 2
# ReStructuredText files, used often with Sphinx
[*.rst]
indent_size = 3
# Ignore binary files and other non-text formats
[{*.png, *.jpg, *.jpeg, *.bmp, *.gif, *.ico, *.mov, *.mp4, *.mp3, *.flv, *.exe}]
charset = none