-
Notifications
You must be signed in to change notification settings - Fork 10
/
.editorconfig
81 lines (66 loc) · 1.66 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
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org
; top-most EditorConfig file
root = true
; define basic and global for any file
[*]
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
max_line_length = off
trim_trailing_whitespace = true
curly_bracket_next_line = false
spaces_around_operators = true
; DOS/Windows batch scripts -
[*.{bat,cmd}]
indent_size = 4
end_of_line = crlf
; JavaScript/TypeScript files -
[*.{js,ts}]
curly_bracket_next_line = true
quote_type = single
; JSON files (normal and commented version) -
[*.{json,jsonc}]
indent_size = 2
quote_type = double
; Java/Kotlin and it enviroment files -
[*.{java,kt,groovy,gradle}]
indent_style = tab
indent_size = 4
quote_type = double
[*.{properties}]
indent_style = space
indent_size = 4
quote_type = double
[{pom,orm,persistence}.xml]
indent_style = space
indent_size = 4
quote_type = double
; Make - match it own default syntax
[Makefile]
indent_style = tab
; Markdown files - preserve trail spaces that means break line
[*.{md,markdown}]
trim_trailing_whitespace = false
; PowerShell - match defaults for New-ModuleManifest and PSScriptAnalyzer Invoke-Formatter
[*.{ps1,psd1,psm1}]
charset = utf-8-bom
end_of_line = crlf
indent_size = 4
; Python sources - match it own default syntax
[*.py]
indent_size = 4
indent_style = space
; Tab separated values - preserve separator
[*.tsv]
indent_style = tab
; XML and it enviroment files -
[*.{xml,svg,xsl,xslt,xsd,dtd}]
indent_style = space
indent_size = 4
quote_type = double
; YML config files - match it own default syntax
[*.{yaml,yml}]
indent_size = 2