Code style: update `.editorconfig` file to match PSR-12
Krzysztof Andrzej Sikorski

Krzysztof Andrzej Sikorski commited on 2022-03-25 22:40:56
Showing 1 changed files, with 15 additions and 3 deletions.


Details:
- split filetype sections to separate sections per file type
- update PHP section to match PSR-12 standard
... ...
@@ -8,9 +8,21 @@ trim_trailing_whitespace = true
8 8
 indent_style = space
9 9
 indent_size = 2
10 10
 
11
-[*.{php,html,twig,yaml}]
11
+[*.md]
12
+max_line_length = 80
13
+
14
+[*.html]
15
+indent_size = 4
16
+
17
+[*.php]
18
+# settings required by PSR-12 standard
19
+end_of_line = LF
12 20
 indent_style = space
13 21
 indent_size = 4
22
+max_line_length = 120
14 23
 
15
-[*.md]
16
-max_line_length = 80
24
+[*.twig]
25
+indent_size = 4
26
+
27
+[*.yaml]
28
+indent_size = 4
17 29