File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ # EditorConfig is awesome: https://editorconfig.org
2+ # This file helps editors keep style consistent with PSR-12
3+
4+ root = true
5+
6+ # Base defaults for all files
7+ [* ]
8+ end_of_line = lf
9+ charset = utf-8
10+ insert_final_newline = true
11+ trim_trailing_whitespace = true
12+
13+ # PHP files — PSR-12
14+ [* .php ]
15+ indent_style = space
16+ indent_size = 4
17+ # Keep tab width consistent for editors that display tabs
18+ tab_width = 4
19+ max_line_length = 120
20+
21+ # JSON and YAML (commonly 2 spaces)
22+ [* .{json,yml,yaml} ]
23+ indent_style = space
24+ indent_size = 2
25+
26+ # Markdown — keep trailing spaces (used for hard line breaks)
27+ [* .md ]
28+ trim_trailing_whitespace = false
29+
30+ # Makefiles use hard tabs by convention
31+ [Makefile ]
32+ indent_style = tab
You can’t perform that action at this time.
0 commit comments