# https://editorconfig.org
# Top-level config for the primer repo.
root = true

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

[*.py]
indent_size = 4
max_line_length = 88

# Web console source (vanilla JSX, no build step) uses 2-space indent.
[*.{js,jsx,ts,tsx,css,html}]
indent_size = 2

[*.{json,yml,yaml,toml}]
indent_size = 2

[*.md]
# Markdown can use trailing whitespace for hard line breaks.
trim_trailing_whitespace = false

[Makefile]
indent_style = tab
