Skip to content

Instantly share code, notes, and snippets.

@yuriploc
Last active September 4, 2018 18:10
Show Gist options
  • Save yuriploc/ea7fbc5c3853319495195642a4dc9625 to your computer and use it in GitHub Desktop.
Save yuriploc/ea7fbc5c3853319495195642a4dc9625 to your computer and use it in GitHub Desktop.
An editorconfig template
# https://editorconfig.org
# Yuri's default
root = true
[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2
[*.js]
indent_style = space
indent_size = 2
# Minified JavaScript files shouldn't be changed
[**.min.js]
indent_style = ignore
indent_size = ignore
insert_final_newline = ignore
# The JSON files contain newlines inconsistently
[*.json]
indent_size = 2
insert_final_newline = ignore
[*.{md,markdown}]
trim_trailing_whitespace = false
# Use 2 spaces for the HTML files
[*.html]
indent_size = 2
# Docstrings and comments use max_line_length = 79
[*.py]
max_line_length = 119
indent_size = 4
[Makefile]
indent_style = tab
indent_size = 4
# [*.txt]
# max_line_length = 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment