-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.editorconfig
98 lines (85 loc) · 2.75 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#==============================================================================
# EditorConfig [http://EditorConfig.org] - Enforce consistant style
# INI formated, requires your editor has a plug-in
#------------------------------------------------------------------------------
# Author: awmyhr <awmyhr@gmail.com>
# Revised: 20180921-122237
# Created: 2017-03-23
#==============================================================================
#-- General settings
[*]
# top-most EditorConfig file
root = true
charset = utf-8
# Unix-style newlines with a newline ending every file
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
#------------------------------------------------------------------------------
#-- Markdown Files
[*.md]
insert_final_newline = false
trim_trailing_whitespace = false
#------------------------------------------------------------------------------
#-- ReStructuredText files
[*.rst]
indent_size = 3
#------------------------------------------------------------------------------
#-- YAML files
[*.yml]
indent_size = 2
#------------------------------------------------------------------------------
#-- HTML files
[*.html]
indent_size = 2
#------------------------------------------------------------------------------
#-- CSS files
[*.{css,styl,scss,less,sass}]
indent_size = 2
#------------------------------------------------------------------------------
#-- Ruby files
[{*.rb,Rakefile,Gemfile*,config.ru}]
indent_size = 2
#------------------------------------------------------------------------------
#-- JSON files
[*.json]
indent_size = 2
insert_final_newline = ignore
#------------------------------------------------------------------------------
#-- Minified JavaScript files
[**.min.js]
indent_style = ignore
insert_final_newline = ignore
#------------------------------------------------------------------------------
#-- Go files
[*.go]
indent_style = tab
indent_size = 4
#------------------------------------------------------------------------------
#-- Makefiles
[{Makefile,*.mk}]
indent_style = tab
indent_size = ignore
trim_trailing_whitespace = false
#------------------------------------------------------------------------------
#-- Patch files
[*.patch.*]
trim_trailing_whitespace = false
#------------------------------------------------------------------------------
#-- Batch files
[*.bat]
indent_style = tab
indent_size = ignore
# Since batch files are typically Windows
end_of_line = crlf
#------------------------------------------------------------------------------
#-- Try not to mess with other peoples files
[{deps,tools}/**]
charset = ignore
end_of_line = ignore
indent_size = ignore
indent_style = ignore
insert_final_newline = ignore
trim_trailing_whitespace = ignore