Last active
January 25, 2025 09:38
-
-
Save knbknb/56fd4e2faddea2225eb749c23c69f058 to your computer and use it in GitHub Desktop.
Editorconfog boilerplate
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
# http://editorconfig.org | |
# directory where .editorconfig resides is top level of project | |
root = true | |
[*] | |
indent_style = space | |
indent_size = 2 | |
end_of_line = lf | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true | |
# Use 4 spaces for Python files | |
[*.py] | |
indent_size = 4 | |
max_line_length = 120 | |
# JSON files contain newlines inconsistently | |
[*.json] | |
insert_final_newline = ignore | |
# Minified JavaScript files shouldn't be changed | |
[**.min.js] | |
indent_style = ignore | |
insert_final_newline = ignore | |
# Batch files use tabs for indentation | |
[*.bat] | |
indent_style = tab | |
## Markdown files should NOT have trailing whitespace removed | |
## (double space often used for line breaks) | |
[*.md] | |
trim_trailing_whitespace = false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment