-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.editorconfig
56 lines (47 loc) · 1.18 KB
/
.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# EditorConfig:
# - http://EditorConfig.org
# - https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties
# top-most EditorConfig file
root = true
# Some defaults for every file
[*]
charset = utf-8
end_of_line = lf
# 2 spaces is the default prettier indentation, and we should follow convention
# over configuration for tooling where possible.
# YAML files also rely on 2 spaces for indentation.
indent_size = 2
indent_style = space
insert_final_newline = true
max_line_length = 80
tab_width = 2
trim_trailing_whitespace = true
# do not wrap text
[*.md,gitcommit,*.txt]
max_line_length = off
trim_trailing_whitespace = false
# PSR-12 enforces 4 space indentation
[*.php,*.phar]
indent_size = 4
indent_style = space
tab_width = 4
# autopep8 uses 4 space indentation
[*.py]
indent_size = 4
indent_style = space
tab_width = 4
# Rust style is 4 spaces
[*.rs]
indent_size = 4
indent_style = space
tab_width = 4
# Go's styleguide uses tabs for indentation
[*.go]
indent_style = tab
# Makefile by default uses a tab to signify a command,
# it's easiest to think of this as the indentation
[{Makefile,**.mk}]
indent_style = tab
# CSV files can have any line length
[*.csv]
max_line_length = off