This repository has been archived by the owner on Mar 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.editorconfig
70 lines (54 loc) · 1.97 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
# EditorConfig is awesome: https://EditorConfig.org
# Must be specified in the preamble.
# Set to true to stop the .editorconfig file search on the current file.
# The value is case insensitive.
root = true
# Unix-style newlines with a newline ending every file
[*]
# Set to latin1, utf-8, utf-8-bom, utf-16be or utf-16le to control the character set.
# Use of utf-8-bom is discouraged.
charset = utf-8
# Set to lf, cr, or crlf to control how line breaks are represented.
# The values are case insensitive.
end_of_line = lf
# Set to tab or space to use hard tabs or soft tabs respectively.
# The values are case insensitive.
indent_style = space
# Set to a whole number defining the number of columns used for each indentation level
# and the width of soft tabs (when supported).
# If this equals tab, the indent_size shall be set to the tab size,
# which should be tab_width (if specified); else, the tab size set by the editor.
# The values are case insensitive.
#indent_size = 2
# Set to a whole number defining the number of columns used to represent a tab character.
# This defaults to the value of indent_size and should not usually need to be specified.
#tab_width = 4
# Set to true to remove all whitespace characters
# preceding newline characters in the file and false to ensure it doesn’t.
#trim_trailing_whitespace = true
# Set to true ensure file ends with a newline when saving and false to ensure it doesn’t.
insert_final_newline = true
# Matches multiple files with brace expansion notation
[*.txt]
end_of_line = crlf
[*.md]
indent_size = 4
trim_trailing_whitespace = false
[*.{htm, html}]
indent_size = 2
trim_trailing_whitespace = true
[*.{css, sass, scss, less}]
indent_size = 2
trim_trailing_whitespace = true
[*.{js, jsx, ts, tsx, vue}]
indent_size = 2
trim_trailing_whitespace = true
[*.{json, xml}]
indent_size = 4
trim_trailing_whitespace = true
[*.{php, py}]
indent_size = 4
trim_trailing_whitespace = true
[*.{yml, yaml}]
indent_size = 2
trim_trailing_whitespace = true