Skip to content

Instantly share code, notes, and snippets.

@gaspanik
Created June 6, 2018 05:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gaspanik/84e0e2686ce00d9e91761d35991e25d5 to your computer and use it in GitHub Desktop.
Save gaspanik/84e0e2686ce00d9e91761d35991e25d5 to your computer and use it in GitHub Desktop.
# https://github.com/django/django/blob/master/.editorconfig
# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf
charset = utf-8
# Docstrings and comments use max_line_length = 79
[*.py]
max_line_length = 119
# Use 2 spaces for the HTML and CSS, JavaScript files
[*.{html,css,scss,js}]
indent_size = 2
# The JSON files contain newlines inconsistently
[*.json]
indent_size = 2
insert_final_newline = ignore
[**/admin/js/vendor/**]
indent_style = ignore
indent_size = ignore
# Minified JavaScript files shouldn't be changed
[**.min.js]
indent_style = ignore
insert_final_newline = ignore
# Makefiles always use tabs for indentation
[Makefile]
indent_style = tab
# Batch files use tabs for indentation
[*.bat]
indent_style = tab
# Markdown
[*.{md,mdown,markdown}]
indent_style = tab
indent_size = 2
trim_trailing_whitespace = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment