-
Notifications
You must be signed in to change notification settings - Fork 51
/
.editorconfig
88 lines (71 loc) · 1.91 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
# EditorConfig: http://EditorConfig.org
# top-most EditorConfig file
root = true
# default settings for most files, including .java, .groovy, .kt
[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
# Note that continuation_indent_size is IntelliJ-specific.
# IDEA doesn't support `continuation_indent_size` for all these
# languages, but it's easier to ensure the continuation rule is
# consistent if we just set it everywhere `indent_size` is set.
continuation_indent_size = 8
[{Makefile,makefile,*.mk}]
indent_style = tab
trim_trailing_whitespace = false
[LICENSE*.txt]
indent_style = unset
indent_size = unset
trim_trailing_whitespace = false
[{.babelrc,.stylelintrc,.eslintrc,*.json,*.jsb3,*.jsb2,*.bowerrc}]
indent_style = space
indent_size = 2
continuation_indent_size = 4
[{*.bat,*.cmd}]
end_of_line = crlf
[{*.css,*.less,*.sass,*.scss}]
indent_style = space
indent_size = 2
continuation_indent_size = 4
[{db.changelog-[123]*.xml,*_baseline.sql}]
indent_style = unset
indent_size = unset
trim_trailing_whitespace = false
[{*.ddl,*.sql}]
indent_style = space
indent_size = 2
continuation_indent_size = 4
[{*.groovy,Jenkinsfile}]
indent_style = space
indent_size = 2
tab_width = 2
[{*.js,*.jsx,*.ts,*.tsx}]
indent_style = space
indent_size = 2
continuation_indent_size = 2
[{jshint.json,*.jshintrc}]
indent_style = space
indent_size = 2
continuation_indent_size = 4
[{*.md}]
# two spaces at EOL means <br>
trim_trailing_whitespace = false
[{*.min.js}]
indent_style = unset
indent_size = unset
insert_final_newline = unset
trim_trailing_whitespace = false
[{*.xml,*.xhtml,*.html,*.xlf}]
indent_style = space
indent_size = 2
continuation_indent_size = 4
[{*.yml,*.yaml}]
indent_style = space
indent_size = 2
# Can be significant if strings aren't quoted (although they should be quoted):
trim_trailing_whitespace = false
continuation_indent_size = 4