37 lines
664 B
INI
37 lines
664 B
INI
# EditorConfig helps maintain consistent coding styles across different editors
|
|
# See https://editorconfig.org
|
|
|
|
# Top-most EditorConfig file
|
|
root = true
|
|
|
|
# Default settings for all files
|
|
[*]
|
|
charset = utf-8
|
|
end_of_line = lf
|
|
insert_final_newline = true
|
|
trim_trailing_whitespace = true
|
|
|
|
# YAML files - 2 spaces
|
|
[*.{yml,yaml}]
|
|
indent_style = space
|
|
indent_size = 2
|
|
|
|
# JSON files - 2 spaces
|
|
[*.json]
|
|
indent_style = space
|
|
indent_size = 2
|
|
|
|
# JavaScript/TypeScript - 2 spaces
|
|
[*.{js,jsx,ts,tsx}]
|
|
indent_style = space
|
|
indent_size = 2
|
|
|
|
# Python - 4 spaces (PEP 8)
|
|
[*.py]
|
|
indent_style = space
|
|
indent_size = 4
|
|
|
|
# Markdown - no trimming
|
|
[*.md]
|
|
trim_trailing_whitespace = false
|