1 | # EditorConfig is awesome: http://EditorConfig.org
|
2 |
|
3 | # top-most EditorConfig file
|
4 | root = true
|
5 |
|
6 | # Unix-style newlines with a newline ending every file
|
7 | [*]
|
8 | charset = utf-8
|
9 | continuation_indent_size = 4
|
10 | curly_bracket_next_line = false
|
11 | end_of_line = lf
|
12 | indent_brace_style = Stroustrup
|
13 | indent_size = 2
|
14 | indent_style = space
|
15 | insert_final_newline = true
|
16 | spaces_around_brackets = outside
|
17 | spaces_around_operators = true
|
18 | trim_trailing_whitespace = true
|
19 |
|
20 | # Python
|
21 | [*.{py,robot}]
|
22 | indent_style = space
|
23 | indent_size = 4
|
24 |
|
25 | # Javascript
|
26 | [*.{js,jsx,ts,tsx}]
|
27 | indent_style = space
|
28 | indent_size = 2
|
29 | max_line_length = 120
|
30 | quote_type = single
|
31 |
|
32 | [*.json]
|
33 | indent_style = space
|
34 | indent_size = 2
|
35 |
|
36 | [*.yml]
|
37 | indent_style = space
|
38 | indent_size = 2
|
39 |
|
40 | # CSS
|
41 | [*.{css,scss,less}]
|
42 | indent_style = space
|
43 | indent_size = 2
|
44 | max_line_length = 120
|
45 | quote_type = single
|
46 |
|
47 | # Tab indentation (no size specified)
|
48 | [Makefile]
|
49 | indent_style = tab
|
50 |
|
51 | # Windows files
|
52 | [{*.bat,*reg,*.ps1,*.vbs,*.cs,*.fs,*.ahk}]
|
53 | end_of_line = crlf
|
54 |
|
55 | # Markdown
|
56 | [*.{md,mdwn,mdown,markdown,apib}]
|
57 | indent_size = 4
|
58 | indent_style = space
|
59 | insert_final_newline = true
|
60 | trim_trailing_whitespace = false
|