-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy patheditorconfig-defaults.json
133 lines (126 loc) · 3.79 KB
/
editorconfig-defaults.json
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
{
"schema_version": "0.1",
"version": "0.1.0",
"matches": {
"*.{md,rmd,mkd,mkdn,mdwn,mdown,markdown,litcoffee}": {
"description": "Markdown",
"comment": "List of extensions from https://github.com/github/markup/blob/9fe05362ecd3ea5257b1699a3f3d09a0d6c3f646/lib/github/markup/markdown.rb#L32",
"flavors": {
"standard": {
"description": "CommonMark Spec",
"comment": "tabs behave as if they were replaced by spaces with a tab stop of 4 characters",
"reference": "https://spec.commonmark.org/0.28/#tabs",
"editorconfig": {
"tab_width": 4
}
}
}
},
"*.{yml,yaml}": {
"description": "YAML",
"flavors": {
"standard": {
"description": "YAML Specification 1.2",
"comment": "indent_size based on common use",
"reference": "http://www.yaml.org/spec/1.2/spec.html#Syntax",
"editorconfig": {
"indent_style": "space",
"indent_size": 2
}
}
}
},
"*.js": {
"description": "JavaScript",
"flavors": {
"mozilla": {
"description": "Mozilla Developer Guide Coding Style",
"reference": "https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style",
"editorconfig": {
"indent_style": "space",
"indent_size": 2,
"trim_trailing_whitespace": true,
"end_of_line": "lf",
"max_line_length": 80
}
},
"jquery": {
"description": "jQuery Style Guide",
"reference": "https://contribute.jquery.org/style-guide/js",
"editorconfig": {
"indent_style": "tab",
"indent_size": 4,
"trim_trailing_whitespace": true,
"max_line_length": 100
}
},
"node-felix": {
"description": "Felix's Node.js Style Guide",
"reference": "https://github.com/felixge/node-style-guide",
"editorconfig": {
"indent_style": "space",
"indent_size": 2,
"trim_trailing_whitespace": true,
"insert_final_newline": true,
"end_of_line": "lf",
"charset": "utf-8",
"max_line_length": 80
}
}
}
},
"{Makefile,*.mak}": {
"description": "Make",
"flavors": {
"standard": {
"comment": "Make only works with tab indentation",
"reference": "https://www.gnu.org/software/make/manual/make.html",
"editorconfig": {
"indent_style": "tab"
}
}
}
},
"*.py": {
"description": "Python",
"flavors": {
"pep-8": {
"description": "PEP 8 - Style Guide for Python Code",
"reference": "https://www.python.org/dev/peps/pep-0008/",
"editorconfig": {
"indent_style": "space",
"indent_size": 4,
"trim_trailing_whitespace": true,
"max_line_length": 80
}
}
}
},
"*.cs": {
"description": "C#",
"flavors": {
"convention": {
"description": "Microsoft suggested code convention",
"reference": "https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/inside-a-program/coding-conventions",
"editorconfig": {
"indent_style": "space",
"indent_size": 4
}
}
}
},
"{*.{csproj,vcxproj,vcxproj.user}}": {
"description": "Visual Studio Project Files",
"comment": "List of extensions is incomplete",
"flavors": {
"common": {
"editorconfig": {
"indent_style": "space",
"indent_size": 2,
"end_of_line": "crlf"
}
}
}
}
}
}