-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.editorconfig
More file actions
48 lines (41 loc) · 1.19 KB
/
Copy path.editorconfig
File metadata and controls
48 lines (41 loc) · 1.19 KB
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
# Indicates that this is the main .editorconfig file
root = true
# Global configuration for all files
[*]
charset = utf-8
indent_style = tab
indent_size = 2
tab_width = 2
end_of_line = lf
max_line_length = 120
insert_final_newline = true
trim_trailing_whitespace = true
ij_continuation_indent_size = 2
ij_visual_guides = 80, 120
ij_smart_tabs = true
ij_wrap_on_typing = true
# Configuration for YAML files (common in Symfony projects)
[{compose*.{yml,yaml},.github/workflows/*.{yml,yaml}}]
indent_size = 2
indent_style = space
# Configuration for JSON and XML files
[*.{json,xml}]
indent_size = 2
# Configuration for Twig files
[*.twig]
indent_size = 2
# Configuration for Markdown files
[*.{md,md.dist}]
trim_trailing_whitespace = false
max_line_length = off
indent_style = space
# Configuration for test files
[*.test]
indent_style = space
insert_final_newline = false
trim_trailing_whitespace = false
# Configuration for yaml config files
[{config,**/config}/**/*.{yaml,yml}]
indent_style = space
indent_size = 4
tab_width = 4