add .editorconfig to improve multiple developers working

pull/17/head
chiba 2024-03-04 23:27:42 +08:00
parent a7fd414ce6
commit 882d04f50c
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
# Matches multiple files: .ts, .json, .svelte .sass
[*.{json,svelte,ts,sass}]
indent_style = space
indent_size = 2
# Markdown files (e.g., README.md) often use a line length of 80 characters
[*.md]
max_line_length = 80
trim_trailing_whitespace = false