chore(editorconfig): initial setup

See https://editorconfig.org/. `.editorconfig` should help contributors
by not having them to set up configs on their own sides for their code
editor of choice. Editorconfig also has plugins for most commonly used
code editors
This commit is contained in:
Yaksh Bariya 2023-02-09 18:12:41 +05:30 committed by Leonid Pliushch
parent 665ae2b8b0
commit 9384f947f3
1 changed files with 35 additions and 0 deletions

35
.editorconfig Normal file
View File

@ -0,0 +1,35 @@
[*]
trim_trailing_whitespace = true
[*.{patch,.diff,.patch.*}]
trim_trailing_whitespace = false
[*.sh]
indent_style = tab
[*.py]
indent_style = space
indent_size = 4
[repo.json]
indent_style = space
indent_size = 2
[Dockerfile]
indent_style = tab
[scripts/profile.json]
indent_style = space
indent_size = 4
[*.md]
trim_trailing_whitespace = true
indent_style = space
indent_size = 2
[*.{yml,yaml}]
indent_style = space
indent_size = 2
[ndk-patches/*.h]
indent_style = tab