aboutsummaryrefslogtreecommitdiff
path: root/.editorconfig
blob: 38dff8ade5d95fa9bf5df62e4bf8950231d54639 (plain)
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
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true


# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 4
max_line_length = 10000

# TypeScript/JavaScript config
[**.{ts,js}]
indent_size = 2

# Json config
[**.json]
indent_size = 2

# Lua config
[*.lua]
indent_size = 2
tab_width = 2
# none/single/double
quote_style = single
# [line break]
break_all_list_when_line_exceed = false
auto_collapse_lines = false
break_before_braces = false
# [preference]
ignore_space_after_colon = false
remove_call_expression_list_finish_comma = false
end_statement_with_semicolon = keep

# Python config
[*.py]
indent_size = 4

# Bash config
[*.bash]
indent_size = 4

# Yaml config
[*.yml]
indent_size = 2

# Latex config
[**.tex]
trim_trailing_whitespace = false

# Markdown config
[**.md]
indent_size = 2
trim_trailing_whitespace = false

# Textfile config
[**.txt]
trim_trailing_whitespace = false
insert_final_newline = false

# Snippets config
[**.snippets]
indent_style = tab