Skip to content

Commit 1e0e7e6

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 0071230 commit 1e0e7e6

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
# GitHub-flavored markdown uses two spaces and the end of a line to indicate a linebreak.
17+
trim_trailing_whitespace = false

.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)