Merge pull request #2289 from gitbutlerapp/add-editorconfig-file

add .editorconfig
This commit is contained in:
Qix 2024-01-17 16:28:13 +01:00 committed by GitHub
commit ccf28f4d44
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

37
.editorconfig Normal file
View File

@ -0,0 +1,37 @@
root = true
[*]
indent_style = space
indent_size = 4
tab_width = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[{*.gyp,*.yml,*.yaml}]
indent_style = space
indent_size = 2
[{*.py,*.asm}]
indent_style = space
[*.py]
indent_size = 4
[*.asm]
indent_size = 8
[{*.md,*.tsv}]
trim_trailing_whitespace = false
# Ideal settings - some plugins might support these.
[*.js]
quote_type = single
[{*.c,*.cc,*.h,*.hh,*.cpp,*.hpp,*.m,*.mm,*.mpp,*.js,*.java,*.go,*.rs,*.php,*.ng,*.jsx,*.ts,*.d,*.cs,*.swift}]
curly_bracket_next_line = false
spaces_around_operators = true
spaces_around_brackets = outside
# close enough to 1TB
indent_brace_style = K&R