-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.editorconfig
91 lines (72 loc) · 1.93 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
# EditorConfig
# http://EditorConfig.org
# Don't search any further up the directory tree
root = true
# Baseline
[*]
charset = utf-8
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
insert_final_newline = true
# JavaScript
[*.js]
indent_size = 2
# Markdown
[*.md]
trim_trailing_whitespace = false
# Windows Registry
[*.reg]
indent_size = 2
# XML documents & schemas
[*.{xml,xsd}]
insert_final_newline = false
# ConEmu configuration
[conemu/*.xml]
indent_style = tab
# Fiddler scripts
[fiddler/Scripts/*.{cs,js}]
charset = utf-8-bom
insert_final_newline = false
# Git configuration
[.gitconfig*]
indent_style = tab
# Onetastic file
[*.onetastic]
insert_final_newline = false
# PowerShell XML file
[*.ps1xml]
insert_final_newline = false
# Shell scripts
[{*.sh,*.bash,.bashrc,.mk-sbuild.rc,.quiltrc,.startxwinrc,user-dirs.dirs}]
max_line_length = 79
keep_padding = true # shfmt: -kp
space_redirects = true # shfmt: -sr
switch_case_indent = true # shfmt: -ci
# Shell scripts: POSIX
[{.mk-sbuild.rc,.quiltrc,.startxwinrc,user-dirs.dirs}]
shell_variant = posix # shfmt: -p
# Shell scripts: bin/
#
# Matching on a pattern with a path separator alongside other patterns
# via curly braces doesn't appear to be possible. So sadly, we have to
# duplicate the above section for matching files under "bin/" dirs.
[**/bin/*]
max_line_length = 79
keep_padding = true # shfmt: -kp
space_redirects = true # shfmt: -sr
switch_case_indent = true # shfmt: -ci
# Windows Event Viewer filter
[windows/Event Viewer/**.{xml,xsd}]
indent_size = 2
# Windows Performance Recorder configuration
[windows/Windows Performance Recorder/*.xml]
indent_size = 2
# Windows Sandbox configuration
[*.wsb]
indent_size = 2
insert_final_newline = false
# XDG user directories locale
[xdg-user-dir/.config/user-dirs.locale]
insert_final_newline = false
# vim: syntax=dosini cc=80 tw=79 ts=4 sw=4 sts=4 et sr