Skip to content

Commit 0b45618

Browse files
committed
"Refactor .editorconfig files to simplify indentation rules
Unified `indent_size` across all `*.editorconfig` files by removing redundant per-filetype overrides. Set the default `indent_size` to 2 spaces globally while retaining 4 spaces for PHP files. This reduces duplication and ensures consistent code formatting rules across all referenced repositories. Removed unnecessary `indent_size` declarations for specific file types (e.g., HTML, CSS, JS) and maintained essential formatting attributes like `trim_trailing_whitespace` and `max_line_length` where relevant. This change streamlines configuration management and promotes centralized control of indentation standards."
1 parent 1f784fb commit 0b45618

1 file changed

Lines changed: 2 additions & 52 deletions

File tree

.editorconfig

Lines changed: 2 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ root = true
77
charset = utf-8
88
end_of_line = lf
99
indent_style = space
10-
indent_size = 4
10+
indent_size = 2
1111
trim_trailing_whitespace = true
1212
insert_final_newline = false
1313
max_line_length = 120
@@ -16,73 +16,23 @@ max_line_length = 120
1616
[*.php]
1717
indent_size = 4
1818

19-
# HTML files
20-
[*.html]
21-
indent_size = 2
22-
23-
# CSS / SCSS files
24-
[*.{css,scss}]
25-
indent_size = 2
26-
27-
# JavaScript / TypeScript files
28-
[*.{js,ts}]
29-
indent_size = 2
30-
3119
# Text files
3220
[*.txt]
3321
trim_trailing_whitespace = false
3422
max_line_length = off
3523

3624
# Markdown files
3725
[*.md]
38-
indent_size = 2
3926
trim_trailing_whitespace = false
4027
max_line_length = off
4128

4229
# Twig files
4330
[*.twig]
44-
indent_size = 2
4531
max_line_length = off
4632

4733
[*.svg]
48-
indent_size = 2
4934
max_line_length = off
5035

51-
# YAML / YML files
52-
[*.{yml,yaml}]
53-
indent_size = 2
54-
55-
# JSON files
56-
[*.json]
57-
indent_size = 2
58-
59-
# XML files
60-
[*.xml]
61-
indent_size = 2
62-
63-
# INI files
64-
[*.ini]
65-
indent_size = 2
66-
6736
# ENV files
6837
[*.env]
69-
trim_trailing_whitespace = false
70-
71-
# CFF files
72-
[*.cff]
73-
indent_size = 2
74-
75-
# Shell scripts
76-
[*.sh]
77-
indent_style = space
78-
indent_size = 2
79-
80-
# Windows scripts
81-
[*.bat]
82-
indent_style = space
83-
indent_size = 2
84-
85-
# PowerShell scripts
86-
[*.ps1]
87-
indent_style = space
88-
indent_size = 2
38+
trim_trailing_whitespace = false

0 commit comments

Comments
 (0)