Skip to content

Commit

Permalink
[FEATURE] Add an .editorconfig file
Browse files Browse the repository at this point in the history
This allows IDEs to automatically set the basic code formatting options.

Fixes #781
  • Loading branch information
oliverklee committed Nov 22, 2020
1 parent a7a1fbd commit db01531
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# top-most EditorConfig file
root = true

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

# PHP files
[*.php]
indent_style = space
indent_size = 4

# MD files
[*.md]
indent_style = space
indent_size = 4

# XML files
[*.xml]
indent_style = space
indent_size = 4
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
## x.y.z

### Added
- Add an `.editorconfig` file
([#940](https://github.com/MyIntervals/emogrifier/pull/940))
- Move more development tools to Phive
([#894](https://github.com/MyIntervals/emogrifier/pull/894),
[#907](https://github.com/MyIntervals/emogrifier/pull/907))
Expand Down

0 comments on commit db01531

Please sign in to comment.