Skip to content

Instantly share code, notes, and snippets.

@nwlucas
Created March 9, 2017 13:56
Show Gist options
  • Save nwlucas/40026f620d0162c44adcc2aed80ac7b4 to your computer and use it in GitHub Desktop.
Save nwlucas/40026f620d0162c44adcc2aed80ac7b4 to your computer and use it in GitHub Desktop.
Base Editorconfig
# http://editorconfig.org
root = true
[*]
indent_style = space
end_of_line = lf
charset = utf-8
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
[*.c]
indent_size = 4
[Makefile]
indent_style = tab
indent_size = 4
# Docstrings and comments use max_line_length = 79
[*.py]
max_line_length = 119
indent_size = 4
[*.{yaml,yml}]
indent_size = 2
# Use 2 spaces for the HTML files
[*.html]
indent_size = 2
# The JSON files contain newlines inconsistently
[*.json]
indent_size = 2
# Minified JavaScript files shouldn't be changed
[**.min.js]
indent_style = ignore
# Batch files use tabs for indentation
[*.bat]
indent_style = tab
[*.md]
trim_trailing_whitespace = false
[*.hbs]
insert_final_newline = false
[*.js]
indent_size = 2
[Makefile]
indent_style = tab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment