-
Notifications
You must be signed in to change notification settings - Fork 0
/
.editorconfig
95 lines (73 loc) · 2.08 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
# Generic options
# list = true # List files whose formatting differs from shfmt's
# diff = true # Error with a diff when the formatting differs
# Parser options
#shell_variant = posix # --language-variant # Language dialect (bash/posix/mksh/bats, default auto)
# --language-dialect str bash/posix/mksh/bats, default "auto"
# Printer options
binary_next_line = true # Binary ops like && and | may start a line
case_indent = true # --case-indent # Switch cases will be indented
#space_redirects = true # Redirect operators will be followed by a space
keep_padding = true # Keep column alignment paddings
#function_next_line = true # --func-next-line # Function opening braces are placed on a separate line
## Ignore the entire "third_party" directory.
#[third_party/**]
#ignore = true
# from https://github.com/catppuccin/catppuccin/blob/main/.editorconfig
root = true
[*]
charset = utf-8
end_of_line = lf
quote_type = auto
# Tab indentation
indent_brace_style = K&R
indent_size = 3
# Make sure every file has a blank line at the end
insert_final_newline = true
# Remove any whitespace characters preceding newline characters
trim_trailing_whitespace = true
# Give operators breathing room, but not brackets
spaces_around_operators = true
spaces_around_brackets = false
# Max line length (not supported by all editors)
max_line_length = 150
[**.git/COMMIT_EDITMSG]
indent_style = space
max_line_length = 72
[{*.sh,.shellrc.d**}]
indent_size = 3
[*.y{,a}ml]
indent_size = 2
indent_style = space
quote_type = single
[*.js{,on}]
indent_size = 2
indent_style = space
max_line_length = unset
quote_type = single
# go
[*.go]
indent_size = 4
indent_style = space
# python
[*.{ini,py,py.tpl,rst}]
indent_size = 4
indent_style = space
# rust
[*.rs]
indent_size = 4
indent_style = space
# documentation, utils
[*.{md{,.tpl},mdx,diff}]
indent_size = unset
indent_style = space
trim_trailing_whitespace = false
# windows shell scripts
[*.{cmd,bat,ps1}]
end_of_line = crlf
indent_style = space
# vim swap files
[*.sw*]
max_line_length = unset
insert_final_newline = false
end_of_line = unset