-
Notifications
You must be signed in to change notification settings - Fork 2
/
.editorconfig
45 lines (37 loc) · 1.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
# EditorConfig is awesome
# http://EditorConfig.org
#
# This file is based on The Common EditorConfig Template project
# https://github.com/Lin-Buo-Ren/the-common-editorconfig-template
#
# Copyright 2020 林博仁(Buo-ren, Lin) <[email protected]>
# SPDX-License-Identifier: WTFPL
# This is the top-most EditorConfig file
root = true
# Common settings
[*]
end_of_line = lf
indent_style = space
indent_size = 4
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true
# Markdown documents
[*.{md,mkd,mkdn,markdown}]
# Trailing whitespace means manual linebreaks
trim_trailing_whitespace = false
# YAML documents
[*.{yml,yaml}]
indent_size = 2
# Avoid git patch fail to apply due to stripped unmodified lines that contains only spaces
[/.git/**]
trim_trailing_whitespace = false
# Vagrant configuration file
[Vagrantfile]
indent_size = 2
# Makefiles for *Make
[{Makefile,*.mk}]
indent_style = tab
# Avoid git patch fail to apply due to the stripped unmodified lines that contains only spaces, which also matches as "trailing spaces"
[.git/**]
trim_trailing_whitespace = false