add: editorconfig to enforce consistent styles

This commit is contained in:
Kyle Affolder
2025-02-05 18:40:10 -05:00
parent 3b1d95b71b
commit fd790003d1
+50
View File
@@ -0,0 +1,50 @@
# EditorConfig helps maintain consistent coding styles between editors
root = true
# Default settings for all files
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2
# Svelte files
[*.svelte]
indent_style = space
indent_size = 2
trim_trailing_whitespace = false
# JavaScript and TypeScript
[*.{js,ts}]
indent_style = space
indent_size = 2
# JSON files (package.json, config files, etc.)
[*.json]
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = false
# YAML files (e.g., GitHub Actions, Lint configs)
[*.yaml]
indent_style = space
indent_size = 2
# Markdown files
[*.md]
trim_trailing_whitespace = false
# Dockerfile
[Dockerfile*]
indent_style = space
indent_size = 4
insert_final_newline = false
# Ignore binary files
[*.{png,jpg,jpeg,gif,ico,svg,woff,woff2,eot,ttf,otf}]
charset = unset
trim_trailing_whitespace = false
insert_final_newline = false