stylix: add editorconfig (#945)

Add EditorConfig complementary to the existing formatter checks:

> EditorConfig helps maintain consistent coding styles for multiple
> developers working on the same project across various editors and
> IDEs.
>
> -- EditorConfig, https://editorconfig.org

Link: https://github.com/danth/stylix/pull/945

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
This commit is contained in:
awwpotato 2025-03-07 11:55:29 -08:00 committed by GitHub
parent 6fada03cd5
commit 7fc0a8716e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

20
.editorconfig Normal file
View file

@ -0,0 +1,20 @@
# http://editorconfig.org
root = true
[*]
end_of_line = lf
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
[*.{diff,patch}]
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
[*.{md,nix,hx,json,css,html,xml,svg,tmTheme}{,.mustache}]
indent_size = 2
[*.{bash,py,sh}{,.mustache}]
indent_size = 4