Created
March 9, 2017 13:56
-
-
Save nwlucas/40026f620d0162c44adcc2aed80ac7b4 to your computer and use it in GitHub Desktop.
Base Editorconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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