Skip to content

Commit

Permalink
Define editorconfig file
Browse files Browse the repository at this point in the history
This file can be used by editors and IDEs to determine whitespace
usage within a file. Line-endings, tabs vs spaces, etc are defined.

I set this file up so that the PHP files are use PSR-2 whitespaces.
  • Loading branch information
ericpoe committed Oct 19, 2016
1 parent f4132ac commit 7ce6f05
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .editorconfig
@@ -0,0 +1,22 @@
# See http://EditorConfig.org for more information

# top-most EditorConfig file
root = true

# Every File
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
indent_style = space
indent_size = 4

[*.{yml,md}]
indent_size = 2

[*.md]
trim_trailing_whitespace = false

[*.twig]
insert_final_newline = false

0 comments on commit 7ce6f05

Please sign in to comment.