# https://editorconfig.org/

root = true

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

# Docstrings and comments use max_line_length = 79
[*.html]
indent_size = 2

[*.vue]
indent_size = 2

[*.js]
indent_size = 2

# The JSON files contain newlines inconsistently
[*.json]
insert_final_newline = false
indent_size = 2

[**/admin/js/vendor/**]
indent_style = unset
indent_size = unset

# Minified JavaScript files shouldn't be changed
[**.min.js]
indent_style = unset
insert_final_newline = unset

# Makefiles always use tabs for indentation
[Makefile]
indent_style = tab

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