-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path.editorconfig
More file actions
112 lines (89 loc) · 2.34 KB
/
Copy path.editorconfig
File metadata and controls
112 lines (89 loc) · 2.34 KB
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# EditorConfig
# https://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]
charset = utf-16le
indent_size = 2
# XML
[*.{xml,xsd}]
insert_final_newline = false
# ConEmu
[conemu/*.xml]
indent_style = tab
# Fiddler
[fiddler/Scripts/*.{cs,js}]
charset = utf-8-bom
insert_final_newline = false
# Git
[.gitconfig*]
indent_style = tab
# Onetastic
[*.onetastic]
insert_final_newline = false
# PowerShell
[*.ps1xml]
insert_final_newline = false
# Remote Desktop Connection
[{**.rdp,mstsc/Template.ini}]
charset = utf-16le
# Shell scripts
[*.sh]
max_line_length = 79
keep_padding = true # shfmt: -kp
space_redirects = true # shfmt: -sr
switch_case_indent = true # shfmt: -ci
# Matching on a pattern with a path separator alongside other patterns with the
# curly brace syntax doesn't appear to be possible, so we duplicate the earlier
# configuration to handle scripts under `bin` directories.
[**/bin/*]
max_line_length = 79
keep_padding = true # shfmt: -kp
space_redirects = true # shfmt: -sr
switch_case_indent = true # shfmt: -ci
[{.bash_logout,.mk-sbuild.rc,.profile,.quiltrc,.startxwinrc,.zlogout,user-dirs.dirs}]
max_line_length = 79
shell_variant = posix # shfmt: -p
space_redirects = true # shfmt: -sr
switch_case_indent = true # shfmt: -ci
[{*.bash,.bashrc}]
max_line_length = 79
shell_variant = bash # shfmt: -p
space_redirects = true # shfmt: -sr
switch_case_indent = true # shfmt: -ci
[{*.zsh,.zshrc}]
max_line_length = 79
shell_variant = zsh # shfmt: -p
space_redirects = true # shfmt: -sr
switch_case_indent = true # shfmt: -ci
# Windows Event Viewer
[windows/Event Viewer/**.{xml,xsd}]
indent_size = 2
# Windows Performance Recorder
[windows/Windows Performance Recorder/*.{xml,xsd}]
indent_size = 2
# Windows Sandbox
[*.wsb]
indent_size = 2
insert_final_newline = false
# XDG user directories
[xdg-user-dir/.config/user-dirs.locale]
insert_final_newline = false
# XLaunch
[*.xlaunch]
insert_final_newline = false
# vim: syntax=dosini cc=80 tw=79 ts=4 sw=4 sts=4 et sr