Skip to content

Commit 467fa3a

Browse files
committed
Add an .editorconfig file
This helps contributors get the basic formatting options in their IDEs automatically set right. (The setting for PHP files complies to the PSR-12 standard.) This change does not autoformat any files with these settings, though.
1 parent 892fb9c commit 467fa3a

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.editorconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# top-most EditorConfig file
2+
root = true
3+
4+
# Unix-style newlines with a newline ending every file, and with same defaults
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
indent_style = space
11+
indent_size = 4
12+
max_line_length = 120
13+
14+
[*.md]
15+
max_line_length = 80
16+
17+
[*.css]
18+
indent_style = tab

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/.editorconfig export-ignore
12
/.gitattributes export-ignore
23
/.github/ export-ignore
34
/.gitignore export-ignore

0 commit comments

Comments
 (0)