# 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 = 4
charset = utf-8

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

# Bash Files
[*.sh]
end_of_line = lf

# 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}]
indent_style = space
indent_size = 2
max_line_length = 120

[*.{graphql,gqp}]
indent_style = space
indent_size = 2
max_line_length = 120

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

[*.{yml,yaml}]
indent_style = space
indent_size = 2
end_of_line = lf
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
