Skip to content

Instantly share code, notes, and snippets.

@arvilmena
Last active April 17, 2018 16:37
Show Gist options
  • Save arvilmena/23927dd1c51f687c3724b301ec700db0 to your computer and use it in GitHub Desktop.
Save arvilmena/23927dd1c51f687c3724b301ec700db0 to your computer and use it in GitHub Desktop.
Universal .editorconfig
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
charset = utf-8
# 4 space indentation
[*.py]
indent_size = 4
[*.{js,scss}]
indent_size = 2
trim_trailing_whitespace = true
[*.{css,html}]
indent_size = 2
# Matches the exact files either package.json or .travis.yml
[{package.json,.travis.yml}]
indent_size = 2
[composer.{json,lock}]
indent_size = 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment