# EditorConfig: https://editorconfig.org
# In VS Code, install the "EditorConfig for VS Code" extension (EditorConfig.EditorConfig).

root = true

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

[*.{py,pyi}]
indent_size = 4
max_line_length = 88

[*.{mojo,🔥}]
indent_size = 4
max_line_length = 88

[*.rs]
indent_size = 4
max_line_length = 100

[{Cargo.toml,Cargo.lock,rustfmt.toml,.rustfmt.toml,clippy.toml}]
indent_size = 4

[{mojoproject.toml,pixi.toml,pixi.lock}]
indent_size = 4

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

[*.{json,jsonc,json5}]
indent_size = 2

[*.sql]
indent_style = space
indent_size = 2

[*.{js,jsx,mjs,cjs,ts,tsx,css,scss,less,html,vue,svelte}]
indent_size = 2

[*.{toml,ini,cfg}]
indent_size = 4

[*.xml]
indent_size = 2

[*.{md,markdown}]
indent_size = 2
trim_trailing_whitespace = false

[*.{sh,bash,zsh}]
indent_size = 2

[{Makefile,makefile,*.mk}]
indent_style = tab

[*.go]
indent_style = tab

[*.{bat,cmd,ps1}]
end_of_line = crlf

[{Dockerfile,Dockerfile.*,*.dockerfile}]
indent_size = 4

[*.{tf,tfvars,hcl}]
indent_size = 2

[LICENSE*]
insert_final_newline = false

[*.{diff,patch}]
trim_trailing_whitespace = false

[*.min.{js,css}]
insert_final_newline = unset
trim_trailing_whitespace = unset
