Skip to content

Commit

Permalink
Add .editorconfig to help developers to indent files correctly. (roun…
Browse files Browse the repository at this point in the history
…dcube#7848)

EditorConfig[1] helps maintain consistent coding styles for multiple
developers working on the same project across various editors and IDEs.
It will reduce the amount of requests to reindent files, as the eidtors
directly knows the correct settings.

[1] https://editorconfig.org

[skip ci]

Co-authored-by: Sandro Knauß <hefee@debian.org>
  • Loading branch information
hefee and hefee authored Jan 30, 2021
1 parent 5975742 commit 7dc5219
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true

[*.{json, php, sh}]
charset = utf-8
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

0 comments on commit 7dc5219

Please sign in to comment.