# Editor config is quite quite nice.
# For more info see: http://editorconfig.org
root = true

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

[Makefile]
# Use tabs for indentation (Makefiles require tabs)
indent_style = tab
max_line_length = off

# Bash Files
[*.sh]
end_of_line = lf
indent_style = space
indent_size = 2
max_line_length = 80

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


# Markdown Files
[*.{md,mdx}]
trim_trailing_whitespace = false

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

[*.{py,pyi,pyx}]
indent_style = space
indent_size = 4

[*.{js,jsx,ts,tsx,cjs,mjs,cts,mts,ctsx,mtsx}]
indent_style = space
indent_size = 2
max_line_length = 80

[*.{graphql,gql}]
indent_style = space
indent_size = 2
max_line_length = 80

[*.{json,json5,ndjson,jsonc,webmanifest}]
indent_size = 2
indent_style = space

[*.{yml,yaml}]
indent_style = space
indent_size = 2
end_of_line = lf
max_line_length = 120
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = true

[*.xml]
indent_size = 2

# Misc webfiles
[*.{htm,html,js,jsm,ts,tsx,cjs,cts,ctsx,mjs,mts,mtsx,css,sass,scss,less,pcss,svg,vue}]
indent_size = 2

# Visual studio solution file(s)
[*.sln]
indent_style = tab

# Visual Studio XML Project Files
[*.{csproj,vbproj,vcxproj.filters,proj,projitems,shproj}]
indent_size = 2
