Skip to content

Instantly share code, notes, and snippets.

@dkarmalita
Last active February 26, 2018 20:34
Show Gist options
  • Save dkarmalita/a0e69aafa5f0337e681d295b6915b5c5 to your computer and use it in GitHub Desktop.
Save dkarmalita/a0e69aafa5f0337e681d295b6915b5c5 to your computer and use it in GitHub Desktop.
Standard .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
charset = utf-8
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
insert_final_newline = true
# Matches multiple files with brace expansion notation
# Set default charset
[*.{js,py}]
charset = utf-8
# 4 space indentation
[*.py]
indent_style = space
indent_size = 4
# Tab indentation (no size specified)
[Makefile]
indent_style = tab
# Indentation override for all JS and JSON files
[*.js, *.json]
indent_style = space
indent_size = 4
[*.md]
trim_trailing_whitespace = false
# Matches the exact files either package.json or .travis.yml
[{package.json,.travis.yml}]
indent_style = space
indent_size = 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment