# Consistent coding styles between different editors and IDEs
# editorconfig.org

root = true

[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 4

[*.md]
# double whitespace at end of line
# denotes a line break in Markdown
trim_trailing_whitespace = false

[*.yml]
indent_size = 2

# Ignore diffs/patches
[*.{diff,patch}]
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset

[*.{json,lock,md,nix,pl,pm,py,rb,sh,xml}]
indent_style = space

[*.{json,lock,md,nix,rb}]
indent_size = 2

[*.{toml}]
indent_size = 2

[justfile]
# Newline ending every file
insert_final_newline = true
# Soft tabs
indent_style = space
# Two-space indentation
indent_size = 2
# Trim trailing whitespace
trim_trailing_whitespace = true

[*.rs]
indent_style = space
indent_size = 4

[*.toml]
indent_style = space
indent_size = 4

# Ignore generated files
[*.lock]
indent_size = unset
