diff --git a/.editorconfig b/.editorconfig
index 671cfbe78fcdd90fbb38ca49ce7278791f98045d..af8f6e8f22d848c400f983fbb69ae310bfcffc33 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -5,7 +5,8 @@ charset = utf-8
 end_of_line = lf
 indent_size = 4
 indent_style = space
-insert_final_newline = false
+insert_final_newline = true
+trim_trailing_whitespace = true
 max_line_length = 120
 tab_width = 4
 ij_continuation_indent_size = 8