Skip to content

Instantly share code, notes, and snippets.

@thiagobraga
Created September 19, 2018 15:08
Show Gist options
  • Save thiagobraga/81964649cf4a5eca457c796f15c40c03 to your computer and use it in GitHub Desktop.
Save thiagobraga/81964649cf4a5eca457c796f15c40c03 to your computer and use it in GitHub Desktop.
EditorConfig rules
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.php]
indent_size = 4
[*.md]
trim_trailing_whitespace = false
@thiagobraga
Copy link
Author

The current environment I'm using:

  • spaces over tabs
  • unix line endings and UTF-8 for all
  • 2 spaces for everything
  • 4 spaces for PHP files
  • keeping trailing whitespaces on Markdown files to avoid break lines corruption

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment