Skip to content

Commit f039d4f

Browse files
author
Philippe SEGATORI
committed
Improve editorconfig to standardize more formats
1 parent 7e8fa1e commit f039d4f

File tree

1 file changed

+55
-9
lines changed

1 file changed

+55
-9
lines changed

.editorconfig

+55-9
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,68 @@
1-
; This file is for unifying the coding style for different editors and IDEs.
2-
; More information at http://editorconfig.org
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
34

45
root = true
56

67
[*]
7-
charset = utf-8
8-
indent_size = 4
8+
# Change these settings to your own preference
99
indent_style = space
10+
indent_size = 4
11+
12+
# We recommend you to keep these unchanged
1013
end_of_line = lf
11-
insert_final_newline = true
14+
charset = utf-8
1215
trim_trailing_whitespace = true
16+
insert_final_newline = true
17+
18+
[*.{js,html}]
19+
indent_style = space
20+
indent_size = 2
21+
22+
[*.json]
23+
indent_style = space
24+
indent_size = 2
1325

1426
[*.md]
1527
trim_trailing_whitespace = false
16-
max_line_length = 80
1728

18-
[Makefile]
19-
indent_style=tab
29+
[*.php]
30+
indent_style = space
31+
indent_size = 4
32+
33+
[*.sh]
34+
indent_style = tab
35+
indent_size = 4
36+
37+
[*.xml{,.dist}]
38+
indent_style = space
39+
indent_size = 4
2040

21-
[*.yml]
41+
[*.{yaml,yml}]
42+
indent_style = space
43+
indent_size = 4
44+
trim_trailing_whitespace = false
45+
46+
[.github/workflows/*.yml]
47+
indent_style = space
2248
indent_size = 2
49+
50+
[.php_cs{,.dist}]
51+
indent_style = space
52+
indent_size = 4
53+
54+
[.travis.yml]
55+
indent_style = space
56+
indent_size = 2
57+
58+
[composer.json]
59+
indent_style = space
60+
indent_size = 4
61+
62+
[docker-compose{,.*}.{yaml,yml}]
63+
indent_style = space
64+
indent_size = 2
65+
66+
[Dockerfile]
67+
indent_style = tab
68+
indent_size = 4

0 commit comments

Comments
 (0)