Skip to content

Instantly share code, notes, and snippets.

@johnsardine
Last active November 3, 2016 12:20
Show Gist options
  • Save johnsardine/bf37af242021d9d9c9354c9f0fe56423 to your computer and use it in GitHub Desktop.
Save johnsardine/bf37af242021d9d9c9354c9f0fe56423 to your computer and use it in GitHub Desktop.
.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
trim_trailing_whitespace = true
indent_style = space
indent_size = 2
# Set default charset
[*.{css,less,js,html,php,py}]
charset = utf-8
# JavaScript files
[*.{js,json}]
indent_style = space
# Python
[*.py]
indent_size = 4
[**/js/vendor/**]
indent_style = ignore
indent_size = ignore
# Minified JavaScript files shouldn't be changed
[**.min.js]
indent_style = ignore
insert_final_newline = ignore
# Markdown files
[*.md]
trim_trailing_whitespace = false
@kepler
Copy link

kepler commented Nov 3, 2016

[*.py]
indent_size = 4
charset = utf-8

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