-
Notifications
You must be signed in to change notification settings - Fork 1
/
.editorconfig
103 lines (77 loc) · 2.49 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
96
97
98
99
100
101
102
103
root = true
### UNIVERSAL RULES ###
# General default settings
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
# max_line_length - probably better to leave to language specific tools
# Ignore binaries
[*.{so,pdb,dylib,dll,cache,a,zip,tar,7z,gz,xz,jpg,jpeg,png,gif,bmp,ico,webp,webm,mp4,avi,mkv,exe,bin}]
charset = unset
end_of_line = unset
indent_size = unset
indent_style = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
# files to keep directories in version systems, usually empty
[*.{,git,hg}{keep,empty}]
insert_final_newline = false
# Makefiles must be indented using tabs
[*{makefile,Makefile,.make}]
indent_style = tab
# Trailing whitespace is generally permitted in markdown
# But it is rarely used by me, and I prefer trimming such whitespace regardless
# [*.md]
# trim_trailing_whitespace = false
### Documentation and Configuration # ###
[*.{css,htm,html,j2,jinja,jinja2,less,liquid,sass,scss,sdef,svg,textlintrc,toml,xhtml,xlf,xml,yaml,yml}]
indent_size = 2
[*.{md,mdown,markdown}]
indent_size = 2
# Multiline comments
[*.{html,htm}]
block_comment_end = -->
block_comment_start = <!--
# C-style languages multiline comments
[*.{c,cc,C,cpp,cxx,c++,h,hh,H,hpp,hxx,h++,m,mm,M,swift,js,ts,jsx,tsx,php,java,scala,sc,kt,ktm,kts,cs,fs}]
block_comment = *
block_comment_end = */
block_comment_start = /*
### Apple ecosystem ###
[*{Fastfile,Podfile,Cartfile}{,.resolved}]
indent_size = 2
[*.{plist,entitlements,stringsdict,strings,storyboard,xib,pbxproj,xcworkspacedata,xcscheme}]
indent_size = 2
### JavaScript ecosystem ###
[*.{js,ts,jsx,tsx}]
indent_size = 2
# All jsons
[*.{json,json5,remarkrc,htmllintrc,htmlhintrc,eslintrc,babelrc,hintrc,ecrc}]
indent_size = 2
### Ruby ecosystem ###
# Indent Gemfile using 2 spaces
[*{Rakefile,Gemfile}]
indent_size = 2
# There is a bug that erronously outputs 3 spaces per indent for last few lines of Gemfile.lock
# Until it is fixed (and fixed versions available everywhere) ignoring this issue seems to be the only way
# relevant: https://github.com/rubygems/rubygems/issues/3326
[Gemfile.lock]
indent_size = unset
### .NET/Windows ecosystem ###
# Encoding exception for VisualStudio project files
[*.{cs,csx,vb,vbx,csproj,njsproj,sln}]
charset = utf-8-bom
# config files indent differently
[*.{csproj,njsproj,Config,config,targets}]
indent_size = 2
[*.sln]
indent_style = tab
[*.bat]
end_of_line = crlf
### Java/JVM/Android ecosystem ###
[gradlew]
indent_size = 2