# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

# Matches multiple files with brace expansion notation
# Set default charset
[*.{js,jsx,ts,tsx,py,rust,css,html}]
charset = utf-8

# 4 space indentation
[*.rs]
indent_style = space
indent_size = 4

# 2 space indentation
[*.toml]
indent_style = space
indent_size = 2

# Matches the exact files either
[{Cargo.lock, .gitignore}]
indent_style = space
indent_size = 2
