[Misc] add .editorconfig (#5246)

* add .editorconfig

* add .js files to editorconfig, fix insert_final_newline

* Remove stray .editorconfig in src/tests
This commit is contained in:
Sirz Benjie 2025-02-03 11:55:44 -06:00 committed by GitHub
parent 3f71f79d7b
commit 45f4bf3f13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

12
.editorconfig Normal file
View File

@ -0,0 +1,12 @@
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
[src/*.{js,ts}]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true