chore: Add .editorconfig to enforce consistent styling (#12021)

Github respects editorconfig settings. Adding indent_size as 4 in
settings makes github indent code to 4 columns.
This commit is contained in:
Leela vadlamudi 2020-12-01 16:34:19 +05:30 committed by GitHub
parent 0620e9deef
commit e760c39c68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

14
.editorconfig Normal file
View file

@ -0,0 +1,14 @@
# Root editor config file
root = true
# Common settings
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
# python, js indentation settings
[{*.py,*.js}]
indent_style = tab
indent_size = 4