forked from AuroraEditor/AuroraEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.editorconfig
82 lines (69 loc) · 1.63 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
# This file is used to maintain consistent coding styles between different editors and IDEs
# This is the default configuration for Aurora Editor
# root = true will prevent the editor from looking for a .editorconfig file in sub directories
root = true
# This is the default configuration for all files (unless overridden by a more specific selector)
[*]
indent_style=space
indent_size=2
tab_width=2
end_of_line=lf
charset=utf-8
trim_trailing_whitespace=true
insert_final_newline=true
max_line_length=100
# JSON and YAML files
[*.{json,yml}]
indent_style = space
indent_size = 2
# JavaScript, TypeScript, JSX, and TSX files, as well as HTML, CSS, and SCSS files
[*.{js,jsx,ts,tsx,html,css,scss,html}]
indent_style = space
indent_size = 2
# Text files
[*.txt]
indent_style = tab
indent_size = 4
# Markdown files
[*.{diff,md,markdown}]
trim_trailing_whitespace = false
# PHP files
[*.php]
indent_style = space
indent_size = 4
quote_type = single
# Python files
[*.py]
indent_style = space
indent_size = 4
# Unit test 1
[.unit_test_1]
indent_style=space
indent_size=2
tab_width=2
end_of_line=lf
charset=utf-8
trim_trailing_whitespace=true
insert_final_newline=true
max_line_length=100
# Unit test 2
[.unit_test_2]
indent_style = space
indent_size = 2
tab_width = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 100
# Indentation override for all JS under lib directory
[lib/**.js]
indent_style = space
indent_size = 2
# UNIT TESTS FOR AURORA EDITOR
# testWildcardCharacter
[file?.wcUnitTest]
indent_size = wcUnitTest
# testMultipleMatchesNumberic
[file{0..9}.mnUnitTest]
indent_size = mnUnitTest