Skip to content

Instantly share code, notes, and snippets.

@Brontojoris
Created August 12, 2020 05:52
Show Gist options
  • Save Brontojoris/06ded832d15e3347d35535ad2632c253 to your computer and use it in GitHub Desktop.
Save Brontojoris/06ded832d15e3347d35535ad2632c253 to your computer and use it in GitHub Desktop.
Editor Configuration File
# http://editorconfig.org
root = true
[*]
indent_style = tab
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
# Use 4 spaces for the Python files
[*.py]
indent_size = 4
max_line_length = 80
# The 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
[*.{js,tsx}]
charset = utf-8
indent_style = tab
indent_size = 4
# Makefiles always use tabs for indentation
[Makefile]
indent_style = tab
# Batch files use tabs for indentation
[*.bat]
indent_style = tab
[*.md]
trim_trailing_whitespace = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment