repo: add editorconfig && format

This commit is contained in:
Guanran Wang 2024-02-15 14:21:59 +08:00
parent 9fe34a4377
commit 9f9fe8cb8f
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
8 changed files with 31 additions and 10 deletions

21
.editorconfig Normal file
View file

@ -0,0 +1,21 @@
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
# Ignore diffs/patches
[*.{diff,patch}]
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
# Nix
[*.nix]
indent_size = 2
indent_style = space