Last active
September 1, 2021 14:20
-
-
Save davidB/34260e0cd33e8afabf7f1aef71e4eec1 to your computer and use it in GitHub Desktop.
.editorconfig
This file contains hidden or 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
# https://editorconfig.org/ | |
root = true | |
[*] | |
indent_style = space | |
indent_size = 2 | |
insert_final_newline = true | |
trim_trailing_whitespace = true | |
end_of_line = lf | |
charset = utf-8 | |
[*.py] | |
indent_size = 4 | |
# 88 is the default for black formatter | |
# 79 is PEP8's recommendation | |
# 119 is django's recommendation | |
max_line_length = 88 | |
[*.rs] | |
# try to align with rustfmt | |
indent_size = 4 | |
[{*.bazel,*.bzl,BUILD,WORKSPACE}] | |
indent_size = 4 | |
[*.java] | |
# try to align with https://github.com/diffplug/spotless (https://github.com/google/google-java-format) | |
indent_size = 4 | |
max_line_length = 100 | |
# The JSON files contain newlines inconsistently | |
[*.json] | |
insert_final_newline = unset | |
[**/vendor/**] | |
indent_style = unset | |
indent_size = unset | |
insert_final_newline = unset | |
# Minified JavaScript files shouldn't be changed | |
[**.min.js] | |
indent_style = unset | |
indent_size = unset | |
insert_final_newline = unset | |
# Makefiles always use tabs for indentation | |
[Makefile] | |
indent_style = tab | |
indent_size = 4 | |
# Batch files use tabs for indentation | |
[*.bat] | |
indent_style = tab | |
indent_size = 4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment